Connect popular AI coding clients like Cursor, Continue, and Cline to TokenCode.
Cursor is an AI-powered code editor that supports custom API endpoints.
Cursor also supports connecting via the Anthropic protocol:
Continue is an open-source AI coding assistant IDE plugin for VS Code and JetBrains.
Edit ~/.continue/config.json:
{
"models": [
{
"title": "TokenCode GPT-4o",
"provider": "openai",
"model": "gpt-5.5",
"apiKey": "sk-your-api-key",
"apiBase": "https://tokencode.dev/v1"
},
{
"title": "TokenCode Claude",
"provider": "anthropic",
"model": "claude-sonnet-4-6",
"apiKey": "sk-your-api-key",
"apiBase": "https://tokencode.dev"
},
{
"title": "TokenCode Gemini",
"provider": "openai",
"model": "gemini-2.5-pro",
"apiKey": "sk-your-api-key",
"apiBase": "https://tokencode.dev/v1"
}
]
}
Cline is an autonomous AI coding assistant for VS Code.
Aider is a command-line AI coding tool.
# Use OpenAI Compatible mode
export OPENAI_API_KEY="sk-your-api-key"
export OPENAI_API_BASE="https://tokencode.dev/v1"
aider --model gpt-5.5
# Use OpenAI Compatible mode to call Claude
aider --model claude-sonnet-4-6
# Use Anthropic mode
export ANTHROPIC_API_KEY="sk-your-api-key"
export ANTHROPIC_BASE_URL="https://tokencode.dev"
aider --model anthropic/claude-sonnet-4-6
For open-source alternatives to GitHub Copilot (such as Copilot More, Twinny, etc.), most support configuring a custom OpenAI-compatible endpoint:
Most clients that support custom API endpoints follow a similar configuration pattern:
| Setting | Value |
|---|---|
| API Base URL | https://tokencode.dev/v1 |
| API Key | Your TokenCode API Key |
| Model Name | Any supported model ID |
| Setting | Value |
|---|---|
| API Base URL | https://tokencode.dev |
| API Key | Your TokenCode API Key |
| Model Name | Any supported model ID |
| Protocol | Use Case | Advantages |
|---|---|---|
| OpenAI Compatible | First choice for most clients | Widest compatibility, richest SDK ecosystem |
| Anthropic Compatible | Claude Code, native Claude clients | Supports Claude-specific features (e.g., Extended Thinking) |
| Gemini Compatible | Google AI SDK native clients | Supports Gemini native multimodal features |
All three protocols can call all models. TokenCode's automatic protocol conversion ensures seamless cross-protocol calls.