Claude Code Integration
English | 中文
English
Overview
Claude Code Integration is a VS Code extension that launches multiple Anthropic-compatible AI terminals (Qwen, Kimi, DeepSeek, Zhipu, Minimax, GitHub Copilot, Custom) right from the editor title bar. Icons stay hidden until a model is configured, keeping the toolbar clean.
Features
- Seven entries: Qwen, Kimi, DeepSeek, Zhipu, Minimax, GitHub Copilot, Custom (icons appear only after configuration)
- Quick Configure:
Claude Code Integration: Configure Claude Code Integrations shows status and opens per-model API key input (stored in VS Code Secret Storage)
- Per-model defaults: Pre-filled
ANTHROPIC_BASE_URL values; fallback to sensible defaults if settings are cleared
- Command override: If a custom command is set, it runs as-is; otherwise the extension injects env exports then runs
claude
- Theme-aware icons: Ships light/dark SVG variants for all built-in providers; VS Code switches automatically with your theme
- i18n: Auto switches between English and Chinese based on VS Code language
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Claude Code Integration"
- Click Install
Manual Installation
- Download the latest
.vsix file from releases
- Open VS Code
- Run
Extensions: Install from VSIX
- Select the downloaded
.vsix file
Usage
Quick Start
- Run
Claude Code Integration: Configure Claude Code Integrations (or click the gear icon in the editor title bar)
- Pick a model and paste its API Key (stored securely); adjust base URL or command if needed
- Open any file and click a model icon in the editor title bar to open a side terminal
- Configure other providers as needed; only configured models show icons
Commands
| Command |
Description |
Entry point |
Qwen |
Launch Qwen Code |
Editor title-bar icon |
Kimi |
Launch Kimi Code |
Editor title-bar icon |
DeepSeek |
Launch DeepSeek Code |
Editor title-bar icon |
Zhipu |
Launch Zhipu Code |
Editor title-bar icon |
Minimax |
Launch Minimax Code |
Editor title-bar icon |
GitHub Copilot |
Launch Copilot Code |
Editor title-bar icon |
Custom |
Launch Custom Code |
Editor title-bar icon |
Configure |
Open configuration UI |
Editor title-bar gear |
Configuration
Two ways:
- Command Palette:
Claude Code Integration: Configure Claude Code Integrations → pick a model → enter API Key (hidden) or clear it.
- Settings:
File > Preferences > Settings → search Claude Code Integration.
Default base URLs (override as needed):
| Model |
Default ANTHROPIC_BASE_URL |
| Qwen |
https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy |
| Kimi |
https://api.moonshot.cn/anthropic |
| DeepSeek |
https://api.deepseek.com/anthropic |
| Zhipu |
https://open.bigmodel.cn/api/anthropic |
| Minimax |
https://api.minimax.io/anthropic |
| GitHub Copilot |
(empty, see note below) |
| Custom |
(empty, fill your own) |
Complete Default Environment Variables
Each service comes with pre-configured model names and settings:
| Service |
ANTHROPIC_BASE_URL |
ANTHROPIC_DEFAULT_OPUS_MODEL |
ANTHROPIC_DEFAULT_SONNET_MODEL |
ANTHROPIC_DEFAULT_HAIKU_MODEL |
Additional Variables |
| Qwen |
https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy |
qwen3-coder-plus |
qwen3-coder-plus |
qwen3-coder-plus |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Kimi |
https://api.moonshot.cn/anthropic |
kimi-k2-turbo-preview |
kimi-k2-turbo-preview |
kimi-k2-turbo-preview |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| DeepSeek |
https://api.deepseek.com/anthropic |
deepseek-chat |
deepseek-chat |
deepseek-chat |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Zhipu |
https://open.bigmodel.cn/api/anthropic |
glm-4.6 |
glm-4.6 |
glm-4.6-air |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Minimax |
https://api.minimax.io/anthropic |
MiniMax-M2 |
MiniMax-M2 |
MiniMax-M2 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| GitHub Copilot |
(empty) [^copilot] |
claude-opus-4.5 |
claude-sonnet-4.5 |
claude-haiku-4.5 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Custom |
(empty) |
claude-3-opus-20240229 |
claude-3-sonnet-20240229 |
claude-3-haiku-20240307 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
Note: All services include CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 to optimize network usage.
[^copilot]: Use copilot-api to build your own GitHub Copilot proxy service.
Command override tips:
Development
Prerequisites
- Node.js 18+
- VS Code 1.102+
- pnpm (recommended) or npm
Setup
# Clone repository
git clone https://github.com/maskzh/vscode-extension-claude-code.git
cd vscode-extension-claude-code
# Install dependencies
pnpm install
# Compile TypeScript
pnpm run compile
# Watch for changes during development
pnpm run watch
# Run linting
pnpm run lint
# Package extension
pnpm run package
Debugging
- Open project in VS Code
- Press
F5 to open Extension Development Host
- Test the extension in the new window
License
This project is licensed under the MIT License - see the LICENSE file for details.
中文
概述
Claude Code Integration 是一个 VS Code 扩展,可在编辑器标题栏一键启动多家 Anthropic 兼容模型终端:通义千问、月之暗面、DeepSeek、智谱、Minimax、GitHub Copilot 以及自定义端点。只有完成配置的模型才会显示图标,避免工具栏冗余。
功能特性
- 七个内置入口:Qwen、Kimi、DeepSeek、Zhipu、Minimax、GitHub Copilot、Custom(未配置时自动隐藏图标)
- 快速配置面板:
Claude Code Integration: Configure Claude Code Integrations 列出各模型状态,可直接录入/清空 API Key(保存在 VS Code Secret Storage)
- 按模型预置 Base URL:默认填好
ANTHROPIC_BASE_URL,可随时修改
- 命令覆盖策略:若填写自定义命令则直接执行;否则注入环境变量后运行默认
claude
- 适配亮/暗主题:所有内置模型提供 light/dark SVG 图标,随 VS Code 主题自动切换
- 自动多语言:根据 VS Code 语言自动切换中英文提示
安装方式
从 VS Code 市场安装
- 打开 VS Code
- 进入扩展 (
Ctrl+Shift+X / Cmd+Shift+X)
- 搜索 "Claude Code Integration"
- 点击安装
手动安装
- 从 releases 下载最新
.vsix
- 打开 VS Code
- 运行
Extensions: Install from VSIX
- 选择下载的文件
使用指南
快速开始
- 运行命令面板
Claude Code Integration: Configure Claude Code Integrations(或点标题栏齿轮)
- 选择模型并粘贴 API Key;需要时修改 Base URL 或命令
- 打开任意文件,点击标题栏对应模型图标即可在侧边开启终端
- 对其他模型重复操作,未配置的模型不会显示图标
命令列表
| 命令 |
描述 |
默认入口 |
Qwen |
启动 Qwen Code |
编辑器标题栏图标 |
Kimi |
启动 Kimi Code |
编辑器标题栏图标 |
DeepSeek |
启动 DeepSeek Code |
编辑器标题栏图标 |
Zhipu |
启动 Zhipu Code |
编辑器标题栏图标 |
Minimax |
启动 Minimax Code |
编辑器标题栏图标 |
GitHub Copilot |
启动 Copilot Code |
编辑器标题栏图标 |
Custom |
启动自定义 Code |
编辑器标题栏图标 |
Configure |
打开扩展设置 |
编辑器标题栏齿轮 |
配置说明
两种入口:
- 命令面板:
Claude Code Integration: Configure Claude Code Integrations → 选择模型 → 输入或清空 API Key(输入会隐藏,存入 Secret Storage)。
- 设置页:
文件 > 首选项 > 设置,搜索 Claude Code Integration 逐项编辑。
默认 Base URL(可覆盖):
| 模型 |
默认 ANTHROPIC_BASE_URL |
| 通义千问 Qwen |
https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy |
| 月之暗面 Kimi |
https://api.moonshot.cn/anthropic |
| DeepSeek |
https://api.deepseek.com/anthropic |
| 智谱 Zhipu |
https://open.bigmodel.cn/api/anthropic |
| Minimax |
https://api.minimax.io/anthropic |
| GitHub Copilot |
(留空,见下方脚注) |
| Custom |
(留空,自行填写) |
完整的默认环境变量配置
每个服务都预配置了对应的模型名称和设置:
| 服务 |
ANTHROPIC_BASE_URL |
ANTHROPIC_DEFAULT_OPUS_MODEL |
ANTHROPIC_DEFAULT_SONNET_MODEL |
ANTHROPIC_DEFAULT_HAIKU_MODEL |
其他变量 |
| 通义千问 |
https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy |
qwen3-coder-plus |
qwen3-coder-plus |
qwen3-coder-plus |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| 月之暗面 |
https://api.moonshot.cn/anthropic |
kimi-k2-turbo-preview |
kimi-k2-turbo-preview |
kimi-k2-turbo-preview |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| DeepSeek |
https://api.deepseek.com/anthropic |
deepseek-chat |
deepseek-chat |
deepseek-chat |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| 智谱 |
https://open.bigmodel.cn/api/anthropic |
glm-4.6 |
glm-4.6 |
glm-4.6-air |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Minimax |
https://api.minimax.io/anthropic |
MiniMax-M2 |
MiniMax-M2 |
MiniMax-M2 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| GitHub Copilot |
(留空) [^copilot] |
claude-opus-4.5 |
claude-sonnet-4.5 |
claude-haiku-4.5 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
| Custom |
(留空) |
claude-3-opus-20240229 |
claude-3-sonnet-20240229 |
claude-3-haiku-20240307 |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 |
注意: 所有服务都包含 CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1 以优化网络使用。
[^copilot]: 使用 copilot-api 构建你自己的 GitHub Copilot 代理服务。
命令覆盖要点:
开发指南
环境要求
- Node.js 18+
- VS Code 1.102+
- pnpm(推荐)或 npm
开发设置
# 克隆仓库
git clone https://github.com/maskzh/vscode-extension-claude-code.git
cd vscode-extension-claude-code
# 安装依赖
pnpm install
# 编译 TypeScript
pnpm run compile
# 开发时监听文件变化
pnpm run watch
# 运行代码检查
pnpm run lint
# 打包扩展
pnpm run package
调试方法
- 在 VS Code 中打开项目
- 按
F5 打开扩展开发主机
- 在新窗口中测试扩展