Guides
Any tool that lets you set an OpenAI-compatible base URL, or an Anthropic base URL, can use TOKEN. Each guide below has the exact settings.
| Tool | API format | Guide |
|---|---|---|
| Claude Code | Anthropic Messages | Claude Code |
| Cursor | OpenAI | Cursor |
| Cline | OpenAI | Cline |
| OpenCode | OpenAI | OpenCode |
| OpenAI SDK (Python, TypeScript) | OpenAI | OpenAI SDK |
| LangChain (Python, JavaScript) | OpenAI | LangChain |
Choosing a model for coding agents: agents call tools on every step, so
pick a model with tool calling, such as moonshotai/kimi-k3,
zai-org/glm-5.3 or deepseek/deepseek-v4-pro. meta-llama/llama-4-maverick
has no tool calling and refuses requests with tools. The
models page shows each model’s capabilities.
Claude Code
Section titled “Claude Code”Set ANTHROPIC_BASE_URL=https://api.thetoken.dev, ANTHROPIC_AUTH_TOKEN to
your key and ANTHROPIC_MODEL to a TOKEN model.
Full guide.
Choose the OpenAI Compatible provider with base URL
https://api.thetoken.dev/v1. Full guide.
OpenCode
Section titled “OpenCode”Add a provider with @ai-sdk/openai-compatible to opencode.json.
Full guide.