Costs and budgets
You pay each provider directly. kunji helps you see what you’re spending and stop before it gets out of hand.
See costs as you go
Section titled “See costs as you go”Every answer ends with a line like:
claude-sonnet · 1,204 in · 380 out · $0.0093 · 3.4s/costin a chat shows this chat’s cost, today’s cost and the model’s price.- The bar at the bottom of the chat shows today’s total.
Usage reports
Section titled “Usage reports”kunji usage # last 7 dayskunji usage -d 30 # last 30 daysA table per provider and model with requests, tokens and cost. Usage is recorded on your computer only.
Daily budgets
Section titled “Daily budgets”kunji budget set openai 2 # OpenAI: max 2 per daykunji budget set all 5 # all providers together: max 5 per daykunji budget showkunji budget clear openai- At 80% of a budget, kunji warns you once per chat.
- At 100%, kunji stops sending messages to that provider until tomorrow (or until you raise the limit).
- Amounts are in your display currency.
Show costs in your currency
Section titled “Show costs in your currency”kunji config set display.currency INRkunji config set display.usd_rate 84 # how many rupees per 1 US dollarOr Settings → Currency in the menu. Prices are tracked in US dollars and converted with your rate, so update it now and then.
When a price is unknown
Section titled “When a price is unknown”If kunji doesn’t know a model’s price, the cost shows as — and the usage table marks it with
+?. You can set the price yourself (US dollars per million tokens) in config.toml:
# Example only: copy the real numbers from the provider's pricing page.[pricing."groq:llama-3.3-70b-versatile"]input = 0.59 # US dollars per 1 million input tokensoutput = 0.79 # US dollars per 1 million output tokensTake the numbers from the provider’s pricing page. See How costs are calculated.