Integration
Use Qwen Code with Tokens
Connect Qwen Code to Tokens through its OpenAI protocol in ~/.qwen/settings.json or with three environment variables, then switch between Tokens models with /model.
Set it up in three steps
02Create a key for Qwen Code
Give the key its own monthly spending cap, so a runaway session stops at the cap.
Open your keys03Follow the guide
Point Qwen Code at Tokens with the settings in the guide, then pick any model from the catalog.
Read the guide
What Qwen 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
5 min read
Ready to try Qwen Code on Tokens?
Create an account, make a key and send your first request in a couple of minutes.
