Integrate Other Clients

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

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 Puyun AI API Key in OpenAI API Key
  4. Enter https://ai.tracup.com/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-4o)
  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 Puyun AI API Key
  3. Enter https://ai.tracup.com 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": "Puyun AI GPT-4o",
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "sk-your-api-key",
      "apiBase": "https://ai.tracup.com/v1"
    },
    {
      "title": "Puyun AI Claude",
      "provider": "anthropic",
      "model": "claude-sonnet-4-6",
      "apiKey": "sk-your-api-key",
      "apiBase": "https://ai.tracup.com"
    },
    {
      "title": "Puyun AI Gemini",
      "provider": "openai",
      "model": "gemini-2.5-pro",
      "apiKey": "sk-your-api-key",
      "apiBase": "https://ai.tracup.com/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://ai.tracup.com/v1
    • API Key: Your Puyun AI API Key
    • Model: gpt-4o or other model names
  5. Configure Anthropic mode:
    • Base URL: https://ai.tracup.com
    • API Key: Your Puyun AI 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://ai.tracup.com/v1"
aider --model gpt-4o

# 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://ai.tracup.com"
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://ai.tracup.com/v1
  • API Key: Your Puyun AI 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

SettingValue
API Base URLhttps://ai.tracup.com/v1
API KeyYour Puyun AI API Key
Model NameAny supported model ID

Anthropic Protocol

SettingValue
API Base URLhttps://ai.tracup.com
API KeyYour Puyun AI API Key
Model NameAny supported model ID

Choosing a Protocol

ProtocolUse CaseAdvantages
OpenAI CompatibleFirst choice for most clientsWidest compatibility, richest SDK ecosystem
Anthropic CompatibleClaude Code, native Claude clientsSupports Claude-specific features (e.g., Extended Thinking)
Gemini CompatibleGoogle AI SDK native clientsSupports Gemini native multimodal features

All three protocols can call all models. Puyun AI's automatic protocol conversion ensures seamless cross-protocol calls.