内容纲要
一、claude code
1、安装插件
打开vscode或者其他编译器,打开extensions,插件市场,安装Claude Code for VS Code (anthropic)
2、通过npm安装claude code cli(claude核心引擎)
1、下载node.js
下载 node-v24.18.0-x64.msi
双击下载好的 .msi 文件,一路点击“Next”完成无脑安装。
https://nodejs.org/
2、验证是否安装成功
node -v
npm -v
3、解决 Windows 执行策略限制
在 Windows PowerShell 中运行 npm 全局命令时,可能会遇到执行策略报错。请在 PowerShell 中运行以下命令(以管理员身份运行效果最佳):
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
4、全局安装 Claude Code
(注:如果下载速度慢,可以先执行 npm config set registry https://registry.npmmirror.com/ 切换到国内镜像源后再安装)
npm install -g @anthropic-ai/claude-code
5、验证安装并启动
如果能正常输出版本号,说明安装成功。直接输入 claude 即可启动 CLI 并进行首次登录授权。
claude --version
3、修改C盘-用户-.claude-settings.json
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(npm run lint)",
"Bash(npm run test *)",
"Read(~/.zshrc)",
"Read(~/.bashrc)",
"Read(./**/*)",
"Write(./**/*)"
],
"deny": [
"Bash(curl *)",
"Bash(wget *)",
"Read(./.env)",
"Read(./.env.*)",
"Read(./secrets/**)"
]
},
"env": {
"ANTHROPIC_AUTH_TOKEN": "secret-key",
"ANTHROPIC_BASE_URL": "http://ai-network-qwen.top/anthropic",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2.5",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2.5",
"ANTHROPIC_SMALL_FAST_MODEL": "MiniMax-M2.5"
},
"language": "zh-CN",
"terminalExperience": "ui",
"theme": "dark",
"maxTokens": 8192,
"temperature": 0.1,
"model": "MiniMax-M2.5"
}
二、Continue
打开vscode或者其他编译器,打开extensions,插件市场,安装Continue。
修改C盘-用户-.continue-config.yaml
name: Local Config
version: 1.0.0
schema: v1
models:
- name: MiniMax-M2.5
provider: openai
model: MiniMax-M2.5
apiBase: http://ai-network-qwen.top/minimax/v1
apiKey: secret-key
roles:
- chat
- edit
- apply
capabilities:
- image_input
contextLength: 128000
completionOptions:
temperature: 0.1
stream: true
- name: MiniMax-M2.5 Autocomplete
provider: openai
model: MiniMax-M2.5
apiBase: http://ai-network-qwen.top/minimax/v1
apiKey: secret-key
roles:
- autocomplete
embeddingsProvider:
provider: transformers