Chat apps
Use TokenRex with Claude desktop — Code
Use TokenRex inside the Code section of the Claude desktop app.
Only the Code section is supported because it runs Claude Code. Regular Claude chats still use your Anthropic account and cannot use a custom API address.
Before you start
- Claude desktop with the Code section available
- A TokenRex API key
Step-by-step setup
- 1
Fully quit the Claude desktop app.
- 2
Create a TokenRex key on the API Keys page.
- 3
Add the settings below to ~/.claude/settings.json on your computer.
- 4
Replace tb_sk_... with your key, save the file, then reopen Claude desktop.
- 5
Open Code, choose a project folder and start a new coding session.
Configuration
json
// ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://tokenrex.ai/api/public",
"ANTHROPIC_AUTH_TOKEN": "tb_sk_...",
"ANTHROPIC_MODEL": "anthropic/claude-opus-5-5"
}
}Verify the connection
Send a message in the Code section and confirm the Claude request appears in your TokenRex Dashboard.