@gperezmz/bb-plugin-thread-usage
v0.5.1
Published
Per-thread usage and cost for bb, rolled up over child threads, with LiteLLM gateway support.
Readme
Thread Usage
A bb plugin that shows what a thread cost, in tokens and dollars, and adds up the cost of every thread it spawned. It works with any harness bb runs. When a LiteLLM gateway sits in front of the models, cost comes from the gateway, so its own prices and aliases come out right.
bb plugin install git:https://github.com/gperezmz/bb-plugins.git@main --plugin thread-usage- First run
- Connect a LiteLLM gateway for exact cost
- Set price overrides and model aliases
- Settings
bb thread-usage- The
thread_usageagent tool - Cost sources, prices, attribution and billing
- How Thread Usage counts tokens and cost
- Develop
Licence
MIT, see LICENSE. The packages bundled into dist/ and the price data are listed with their licences in THIRD_PARTY_NOTICES.md.
