No new tools.
Set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_MODEL, then run claude. Or let the Top Billing CLI write them for you.
Claude Code speaks the Anthropic Messages protocol, so it runs against Top Billing with three environment variables and a Top Billing key. Every request is billed per token from prepaid INR credits.
export ANTHROPIC_BASE_URL=https://api.topbilling.in
export ANTHROPIC_AUTH_TOKEN=$TB_API_KEY
export ANTHROPIC_MODEL=tb-claude-fable-5
claude
Set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_MODEL, then run claude. Or let the Top Billing CLI write them for you.
Each Claude Code request is billed like any other API request and shows up in Usage with its session id, so you can see what a coding session cost.
Prepaid INR credits by UPI, cards or net banking. No USD card, and a tax invoice with our GSTIN after every payment.
Sign up free. There is no subscription and no platform fee.
Top up from ₹100 by UPI, cards or net banking.
Create a live API key (tb_live_…) for your project in the console.
Export the base URL, your key and a model ID, then start claude.
Prices in INR per 1M tokens, before GST, from each model’s active pricing version. See every price.
More in the full FAQ.
Yes. Set ANTHROPIC_BASE_URL to https://api.topbilling.in, ANTHROPIC_AUTH_TOKEN to your Top Billing key and ANTHROPIC_MODEL to a model ID from the Models page. The Claude Code guide has the details.
Yes. Run npx @topbilling/cli claude and it writes the Claude Code settings for you. See Set up your tools.
Claude Code’s gateway model discovery only lists IDs containing claude or anthropic, and Top Billing model IDs are neutral (tb-…). Set ANTHROPIC_MODEL to the model ID explicitly.
Yes. Every Claude Code request is billed like any other API request and shows up in Usage with its session id.
No. Use a Top Billing key (tb_…). The gateway rejects credentials that are not Top Billing keys with a 401 and never forwards them.
Add credits on the Billing page with UPI, cards or net banking through Cashfree, our payment gateway. Card, UPI and bank details are entered with the gateway and never reach our servers.
Yes. GST is shown before you pay, and a tax invoice carrying our GSTIN is on the Billing page after every successful payment.
Create an account, add credits by UPI, create a key and point Claude Code at Top Billing in a minute.