SDK Reference · Claude Code
Claude Code
Configure Claude Code to use AllToken as its model provider.
Setup
Set these environment variables to route Claude Code through AllToken:
Environment variables
| 1 | ANTHROPIC_API_KEY=your_alltoken_api_key |
| 2 | ANTHROPIC_BASE_URL=https://api.alltoken.ai/anthropic |
Specify the model at launch:
Shell
$claude --model qwen3.6-plusRecommended models
Models that work well with Claude Code via AllToken:
qwen3.6-plus— fast, good at coding tasksminimax-m2.7— cost-effective for routine workclaude-sonnet-4— high quality reasoning and coding