Skip to content

Integration

Use Claude Code with Tokens

Connect Claude Code to Tokens through the Anthropic-compatible endpoint, map the opus, sonnet and haiku aliases to a Tokens model, and fix the usual gateway errors.
Works withClaude CodeTerminalVS Codeবাংলায় গাইড পড়ুন

Set it up in one command

The Tokens CLI signs you in through the browser, creates a key, lets you pick a model and writes Claude Code's settings, keeping a backup of the old file. It needs Node 18 or newer.

curl -fsSL https://tokens.bd/cli/tokens.mjs -o tokens.mjs && node tokens.mjs setup --base-url https://tokens.bd --agents claude

What Claude Code connects to

OpenAI-compatible base URL
https://tokens.bd/v1
Anthropic-compatible base URL
https://tokens.bd
API key
One Tokens key (tok_live_…), with its own spending cap
Models
Any id from the model catalog

What the guide covers

6 min read

  1. 01Quick setup with the Tokens CLI
  2. 02Set ANTHROPICBASEURL for Claude Code manually
  3. 03Switch models
  4. 04Verify it works
  5. 05Troubleshooting

Ready to try Claude Code on Tokens?

Create an account, make a key and send your first request in a couple of minutes.

Create an account