Integrate Other Clients

Connect popular AI coding clients like Cursor, Continue, and Cline to TokenCode.

Cursor

Cursor is an AI-powered code editor that supports custom API endpoints.

Configuration Steps

  1. Open Cursor Settings (Cmd+, / Ctrl+,)
  2. Search for Models or go to the Models page
  3. Enter your TokenCode API Key in OpenAI API Key
  4. Enter https://tokencode.dev/v1 in OpenAI Base URL
  5. Add the model names you want to use in the model list (e.g., claude-sonnet-4-6, gpt-5.5)
  6. Select the model you want to use

Using the Anthropic Protocol

Cursor also supports connecting via the Anthropic protocol:

  1. Find Anthropic API Key in Settings
  2. Enter your TokenCode API Key
  3. Enter https://tokencode.dev in Anthropic Base URL
  4. Add Claude model names

Continue

Continue is an open-source AI coding assistant IDE plugin for VS Code and JetBrains.

Configuration Steps

Edit ~/.continue/config.json:

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

Cline is an autonomous AI coding assistant for VS Code.

Configuration Steps

  1. Open the Cline sidebar in VS Code
  2. Click the settings icon
  3. Select API Provider as OpenAI Compatible or Anthropic
  4. Configure OpenAI Compatible mode:
    • Base URL: https://tokencode.dev/v1
    • API Key: Your TokenCode API Key
    • Model: gpt-5.5 or other model names
  5. Configure Anthropic mode:
    • Base URL: https://tokencode.dev
    • API Key: Your TokenCode API Key
    • Model: claude-sonnet-4-6

Aider

Aider is a command-line AI coding tool.

Configuration

bash
# 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

Copilot Alternatives

For open-source alternatives to GitHub Copilot (such as Copilot More, Twinny, etc.), most support configuring a custom OpenAI-compatible endpoint:

  • API Base URL: https://tokencode.dev/v1
  • API Key: Your TokenCode API Key
  • Model: Choose a model based on your needs

General Configuration Guide

Most clients that support custom API endpoints follow a similar configuration pattern:

OpenAI Protocol

Setting Value
API Base URL https://tokencode.dev/v1
API Key Your TokenCode API Key
Model Name Any supported model ID

Anthropic Protocol

Setting Value
API Base URL https://tokencode.dev
API Key Your TokenCode API Key
Model Name Any supported model ID

Choosing a Protocol

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.