工具公司官方首页
DeepSeek HarnessDeepSeekwww.deepseek.com
Qwen CodeAlibabaqwen.ai
QoderAlibabaqoder.com.cn
TraeByteDancewww.trae.cn
Claude CodeAnthropiccode.claude.com
OpenAI CodexOpenAIopenaicli.com
OpenCodeanomalycogithub.com
PiEarendilhttps://pi.dev/
CursorAnyspherecursor.com
GitHub CopilotMicroSoftgithub.com

排名不分先后

国内AI编程工具

DeepSeek Harness

平台通用安装指令ArchLinux安装指令
CLInpm i -g @deepseek-ai/dshyay -S deepseek-harness-bin

使用dsh web启动,并在浏览器中访问:http://127.0.0.1:3080

Qwen Code

平台通用安装指令ArchLinux安装指令
CLInpm i -g @qwen-code/qwen-codeyay -S qwen-code-bin
DesktopQwen Code Desktop-
VSCodeQwen Code Companion-

使用qwen serve启动,并在浏览器中访问:http://127.0.0.1:4170

Qoder

平台通用安装指令ArchLinux安装指令
IDEQoder CN IDEyay -S qoder-cn-bin
IDEQoder IDEyay -S qoder-bin
CLInpm i -g @qodercn-ai/qoderclicnyay -S qoder-cli-cn-bin
CLInpm i -g @qoder-ai/qodercliyay -S qodercli-bin
VSCodeQoder CN-
JetbrainsQoder CN-
JetbrainsQoder-

Trae

平台通用安装指令ArchLinux安装指令
IDETraeCodeyay -S trae-cn
VSCodeTRAE AI: Coding Assistant-
JetbrainsTRAE AI: Coding Assistant-

国际AI编程工具

Claude Code

平台通用安装指令ArchLinux安装指令
CLInpm i -g @anthropic-ai/claude-codeyay -S claude-code(国内无法访问)

使用cc-switch添加新的Claude供应商,或修改配置文件~/.claude/settings.json,使Claude Code连接第三方大模型服务。

(1)Localllama.cppOllama 等)

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://127.0.0.1:8080",
    "ANTHROPIC_AUTH_TOKEN": "EMPTY",
    "ANTHROPIC_MODEL": "modelscope.cn/Qwen/Qwen2.5-Coder-7B-Instruct-GGUF"
  }
}

也可以设置环境变量达到一样的效果:

export ANTHROPIC_BASE_URL=http://127.0.0.1:8080
export ANTHROPIC_AUTH_TOKEN=EMPTY
export ANTHROPIC_MODEL="modelscope.cn/Qwen/Qwen2.5-Coder-7B-Instruct-GGUF"

(2)DeepSeek

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "sk-xxxxxx",
    "ANTHROPIC_MODEL": "deepseek-v4-pro[1m]",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4-pro[1m]",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4-pro[1m]",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4-flash",
    "CLAUDE_CODE_SUBAGENT_MODEL": "deepseek-v4-flash",
    "CLAUDE_CODE_EFFORT_LEVEL": "max"
  }
}

(3)Qwen(阿里云百炼、千问AI平台)

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://dashscope.aliyuncs.com/apps/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "sk-ws-xxxxxx",
    "ANTHROPIC_MODEL": "qwen3.8-max",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.8-max",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.8-max",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.8-max"
  }
}

OpenAI Codex

平台通用安装指令ArchLinux安装指令
CLInpm i -g @openai/codexsudo pacman -S openai-codex
IDEChatGPT Desktop(国内无法访问)yay -S chatgpt-desktop

使用cc-switch添加新的OpenAI供应商,或修改配置文件~/.codex/config.toml~/.codex/auth.json,使OpenAI Codex连接第三方大模型服务。

(1)Localllama.cppOllama 等)

~/.codex/config.toml

model_provider = "custom"
model = "qwen2.5-coder-7b-instruct-q4_k_m.gguf"
model_reasoning_effort = "high"
disable_response_storage = true

[model_providers.custom]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "http://127.0.0.1:8080"

~/.codex/auth.json

{
  "OPENAI_API_KEY": "EMPTY"
}

(2)DeepSeek

~/.codex/config.toml

model_provider = "custom"
model = "deepseek-v4-flash"
model_reasoning_effort = "high"
disable_response_storage = true

[model_providers.custom]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "https://api.deepseek.com/v1"

~/.codex/auth.json

{
  "OPENAI_API_KEY": "sk-xxxxxx"
}

(3)Qwen(阿里云百炼、千问AI平台)

~/.codex/config.toml

model_provider = "custom"
model = "qwen3.8-max"
model_reasoning_effort = "high"
disable_response_storage = true

[model_providers.custom]
name = "custom"
wire_api = "responses"
requires_openai_auth = true
base_url = "https://dashscope.aliyuncs.com/compatible-mode/v1"

~/.codex/auth.json

{
  "OPENAI_API_KEY": "sk-ws-xxxxxx"
}

OpenCode

平台通用安装指令ArchLinux安装指令
CLInpm i -g opencode-aisudo pacman -S opencode
DesktopOpenCode Desktopyay -S opencode-desktop-bin

使用cc-switch添加新的OpenCode供应商,或修改配置文件~/.config/opencode/opencode.json,使OpenCode连接第三方大模型服务。

(1)Localllama.cppOllama 等)

CC-Switch配置JSON

{
  "npm": "@ai-sdk/openai-compatible",
  "options": {
    "baseURL": "http://127.0.0.1:8080",
    "apiKey": "EMPTY",
    "setCacheKey": true
  },
  "models": {
    "qwen2.5-coder-7b-instruct-q4_k_m.gguf": {
      "name": "qwen2.5-coder-7b-instruct-q4_k_m.gguf"
    }
  }
}

~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "local": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://127.0.0.1:8080",
        "apiKey": "EMPTY",
        "setCacheKey": true
      },
      "models": {
        "qwen2.5-coder-7b-instruct-q4_k_m.gguf": {
          "name": "qwen2.5-coder-7b-instruct-q4_k_m.gguf"
        }
      }
    }
  }
}

(2)DeepSeek

CC-Switch配置JSON

{
  "npm": "@ai-sdk/openai-compatible",
  "options": {
    "baseURL": "https://api.deepseek.com/v1",
    "apiKey": "sk-xxxxxx",
    "setCacheKey": true
  },
  "models": {
    "deepseek-v4-flash": {
      "name": "deepseek-v4-flash"
    },
    "deepseek-v4-pro": {
      "name": "deepseek-v4-pro"
    }
  }
}

(3)Qwen(阿里云百炼、千问AI平台)

CC-Switch配置JSON

{
  "npm": "@ai-sdk/openai-compatible",
  "name": "Bailian",
  "options": {
    "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
    "apiKey": "sk-ws-xxxxxx",
    "setCacheKey": true
  },
  "models": {
    "qwen3.8-max": {
      "name": "qwen3.8-max"
    }
  }
}

(4)OpenCode Connect命令

  • 启动opencode
  • 输入/connect
  • 选择provider,如:DeepSeek
  • 输入API KEY,如:sk-xxxxxx

Pi

平台通用安装指令ArchLinux安装指令
CLInpm i -g --ignore-scripts @earendil-works/pi-coding-agentyay -S pi-coding-agent

使用cc-switch添加新的Pi供应商,或修改配置文件~/.pi/agent/models.json,使Pi连接第三方大模型服务。

(1)Localllama.cppOllama 等)

CC-Switch配置JSON

{
  "name": "Local",
  "baseUrl": "http://127.0.0.1:8080",
  "api": "openai-completions",
  "apiKey": "EMPTY",
  "models": [
    {
      "id": "qwen2.5-coder-7b-instruct-q4_k_m.gguf",
      "name": "qwen2.5-coder-7b-instruct-q4_k_m.gguf",
      "reasoning": false,
      "input": [
        "text"
      ],
      "contextWindow": 8192,
      "maxTokens": 2048
    }
  ]
}

~/.pi/agent/models.json

{
  "providers": {
    "local": {
      "name": "Local",
      "baseUrl": "http://127.0.0.1:8080",
      "api": "openai-completions",
      "apiKey": "EMPTY",
      "models": [
        {
          "id": "qwen2.5-coder-7b-instruct-q4_k_m.gguf",
          "name": "qwen2.5-coder-7b-instruct-q4_k_m.gguf",
          "reasoning": false,
          "input": [
            "text"
          ],
          "contextWindow": 8192,
          "maxTokens": 2048
        }
      ]
    }
  }
}

(2)DeepSeek

CC-Switch配置JSON

{
  "name": "DeepSeek",
  "baseUrl": "https://api.deepseek.com/v1",
  "api": "openai-completions",
  "apiKey": "sk-xxxxxx",
  "models": [
    {
      "name": "DeepSeek V4 Pro",
      "reasoning": true,
      "input": [
        "text"
      ],
      "contextWindow": 1000000,
      "maxTokens": 384000,
      "id": "deepseek-v4-pro",
      "thinkingLevelMap": {
        "minimal": null,
        "low": null,
        "medium": null,
        "high": "high",
        "max": "max"
      }
    },
    {
      "name": "DeepSeek V4 Flash",
      "reasoning": true,
      "input": [
        "text"
      ],
      "contextWindow": 1000000,
      "maxTokens": 384000,
      "id": "deepseek-v4-flash",
      "thinkingLevelMap": {
        "minimal": null,
        "low": null,
        "medium": null,
        "high": "high",
        "max": "max"
      }
    }
  ]
}

(3)Qwen(阿里云百炼、千问AI平台)

CC-Switch配置JSON

{
  "name": "Bailian",
  "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
  "api": "openai-completions",
  "apiKey": "sk-ws-xxxxxx",
  "models": [
    {
      "id": "qwen3.8-max",
      "name": "qwen3.8-max",
      "reasoning": false,
      "input": [
        "text"
      ],
      "contextWindow": 1000000,
      "maxTokens": 65536
    }
  ]
}

GitHub Copilot

平台通用安装指令ArchLinux安装指令
VSCodeGitHub Copilot Chat-
CLInpm i -g @github/copilotyay -S github-copilot-cli

Cursor

平台通用安装指令ArchLinux安装指令
IDECursoryay -S cursor-bin
CLICursor CLIyay -S cursor-cli

附录

(1)基于cc-switch管理大模型配置

sudo pacman -S cc-switch