工具栈全景
| 工具 | 类型 | 特点 |
|---|
| Claude Code | 终端 Agent | Anthropic 官方、TUI 完整、plugin 生态 |
| Codex CLI | 终端 Agent | OpenAI 官方、原生 o3/o4 模型 |
| OpenCode | 终端 Agent | 跨模型路由、Go 二进制、配置简单 |
| Cursor | IDE | VSCode fork、AI 深度集成 |
| IDEA 2026+ | IDE | JetBrains、Java 主力、ACP 集成 |
一、Claude Code
安装
1
2
3
4
5
6
| # Linux
curl -fsSL https://claude.ai/install.sh | bash
# 或固定版本
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
|
1
2
3
4
5
6
7
8
9
10
11
| # Windows
irm https://claude.ai/install.ps1 | iex
[Environment]::SetEnvironmentVariable("Path",
[Environment]::GetEnvironmentVariable("Path", "User") + ";%USERPROFILE%\.local\bin",
"User")
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_GIT_BASH_PATH",
"<DEV_DIR>\Git\bin\bash.exe",
[EnvironmentVariableTarget]::User)
# 验证
claude -v
|
默认目录
1
2
3
4
5
6
7
8
9
| ~/
├── .claude/
│ ├── backups/
│ ├── cache/
│ ├── downloads/
│ ├── telemetry/
│ ├── settings.json
│ └── CLAUDE.md # 全局配置
└── .claude.json # 状态 + 自定义配置
|
更新与卸载
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| # 更新
claude update
claude plugin marketplace update
# Linux 卸载
rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claude
rm -rf ~/.claude
rm ~/.claude.json
rm -rf .claude .mcp.json
# Windows 卸载
Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force
Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force
Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force
|
快捷键
| 键位 | 说明 |
|---|
| shift + tab | 切换权限模式(accept edits on) |
| alt + v | 上传图片(Windows CLI) |
| tab | 命令补全 |
用户级配置
1
2
| # 复制 CLAUDE.md 到全局
cp -r /path/to/claude-code/CLAUDE.md ~/.claude/
|
~/.claude.json 配置
hasCompletedOnboarding: 跳过引导mcpServers.MiniMax: 配置 MiniMax MCP(网络搜索 + 图片理解,支持 JPEG/PNG/GIF/WebP ≤ 20MB)
~/.claude/settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| {
"env": {
"CLAUDE_CODE_MAX_RETRIES": "50",
"FORCE_AUTOUPDATE_PLUGINS": "1",
"CLAUDE_CODE_USE_POWERSHELL_TOOL": "1",
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_GH_TOKEN>",
"CLAUDE_CODE_EFFORT_LEVEL": "max",
"API_TIMEOUT_MS": "3000000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"includeCoAuthoredBy": false,
"statusLine": {
"type": "command",
"command": "npx -y ccstatusline@latest",
"padding": 0
},
"skipWebFetchPreflight": true,
"autoUpdatesChannel": "latest",
"tui": "fullscreen",
"skipDangerousModePermissionPrompt": true
}
|
多 Provider 切换
DeepSeek:
1
2
3
4
5
6
7
| "ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<YOUR_DEEPSEEK_KEY>",
"ANTHROPIC_MODEL": "deepseek-chat",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-chat",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-chat",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-chat",
"CLAUDE_CODE_SUBAGENT_MODEL": "deepseek-chat"
|
MiniMax / Anthropic-compatible:
1
2
3
4
5
6
7
| "ANTHROPIC_BASE_URL": "https://api.minimaxi.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<YOUR_KEY>",
"ANTHROPIC_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2.7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2.7",
"CLAUDE_CODE_SUBAGENT_MODEL": "MiniMax-M2.7"
|
Plugin 生态
推荐安装
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| # 官方 plugin 集合
claude plugin install superpowers@claude-plugins-official
claude plugin install context7@claude-plugins-official
claude plugin install code-simplifier@claude-plugins-official
claude plugin install ralph-loop@claude-plugins-official
claude plugin install skill-creator@claude-plugins-official
# 第三方
claude plugin marketplace add tanweai/pua
claude plugin install pua@pua-skills
# Anthropic 官方
claude plugin marketplace add anthropics/skills
claude plugin install document-skills@anthropic-agent-skills
# 卸载
claude plugin uninstall <name>
/plugin uninstall <name>
|
oh-my-claudecode
1
2
3
4
5
6
7
8
9
| claude
/plugin marketplace add https://github.com/Yeachan-Heo/oh-my-claudecode
/plugin install oh-my-claudecode
/reload-plugins
# 重启后配置
/omc-setup
# 全局范围 / ultrawork + 关键词 fast parallel / 跳过 MCP
# Agent Teams 启用,最大 5
|
关键词:
| 关键词 | 效果 |
|---|
| ralph | 持久模式 |
| ralplan | 迭代规划 |
| ulw | 最大并行 |
| plan | 规划访谈 |
| team | 协调代理 |
claude-mem
1
2
3
4
5
6
7
8
9
| claude plugin marketplace add thedotmack/claude-mem
claude plugin install claude-mem
cd /home/user/.claude/plugins/cache/thedotmack/claude-mem/<version> && npm install
# 配置
"CLAUDE_MEM_MODE": "code--zh"
# Web UI
# http://localhost:37700
|
MCP 服务
draw-io
1
| npm install -g @drawio/mcp
|
1
2
3
4
5
6
7
8
| {
"mcpServers": {
"drawio": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@drawio/mcp"]
}
}
}
|
Custom 命令(Slash Commands)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| # ~/.claude/commands/fix-github-issue.md
请分析并修复 Github 问题:$ARGUMENTS。
按照这些步骤:
1. 使用 `gh issue view` 获取问题详情
2. 理解问题中描述的问题
3. 搜索代码库中的想上关文件
4. 实施必要的更改来修复问题
5. 编写并运行测试来验证修复
6. 确保代码通过代码检查和类型检查
7. 创建描述性的提交消息
8. 推送并创建 PR
# 用法
/fix-githhub-issue 1
|
二、Codex CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| # 安装
npm i -g @openai/codex
# 验证
codex --version
# codex-cli 0.122.0
# 更新
npm i -g @openai/codex@latest
# 配置
# ~/.codex
# 1. Sign in with ChatGPT
# 2. Sign in with Device Code
# 3. Provide Your Own API key
|
三、OpenCode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| # 1. 卸载原 opencode-ai 包
npm uninstall -g opencode-ai
# 2. 清理 npm 缓存
npm cache clean --force
# 3. 安装(用 bun)
bun install -g opencode-ai
curl -fsSL https://opencode.ai/install | bash
# Windows
scoop install opencode
opencode -v
# 卸载
bun remove -g opencode-ai
bun remove -g opencode-linux-x64
bun remove -g opencode-linux-x64-baseline opencode-linux-x64-musl
|
配置火山引擎
1
| cp -r opencode.json ~/.config/opencode/opencode.json
|
oh-my-openagent 插件
1
2
3
4
| bunx oh-my-openagent install
bunx oh-my-openagent -v
cp -r oh-my-openagent.json ~/.config/opencode/oh-my-openagent.json
|
四、Cursor IDE
1
| sudo dpkg -i ./cursor_3.3.30_amd64.deb # Linux
|
字体等宽问题
1
2
3
4
| {
"editor.fontFamily": "JetBrains Mono, Consolas, 'Courier New', monospace",
"editor.disableMonospaceOptimizations": true
}
|
五、IDEA 2026.1
2026.1 起社区版和旗舰版包已经全并了,激活就是旗舰。
1
2
3
4
| 下载:https://www.jetbrains.com/idea/download/?section=windows
安装不运行
激活工具:portable/single/bin/jetbrains-crack-toolbox.exe
运行,扫描 IDE 和插件,安装补丁,一键激活
|
Kali Linux 下 Cannot record performance: Cannot start the profiler: kernel variables are not configured。
1
2
3
4
5
| sudo sh -c 'echo 1 > /proc/sys/kernel/perf_event_paranoid'
echo 'kernel.perf_event_paranoid=1' | sudo tee -a /etc/sysctl.conf
echo 'kernel.kptr_restrict=0' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
|
或 IDEA 设置:Build, Execution, Deployment → Java Profiler → 取消勾选 “Enable async profiler”。
ACP:链接 Claude Code
1
| npm install -g @agentclientprotocol/claude-agent-acp
|
IDEA 设置 → Tools → AI Chat → Add Custom Agent:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| {
"default_mcp_settings": {},
"agent_servers": {
"Claude Code Local": {
"command": "npx.cmd",
"args": ["@agentclientprotocol/claude-agent-acp"],
"env": {
"ACP_PERMISSION_MODE": "bypassPermissions"
},
"use_idea_mcp": true,
"use_custom_mcp": true
}
}
}
|
IDEA 内置 MCP Server 端口 64342,可以用 SSE / HTTP stream 调用。
六、Obsidian 主题
- 主题:Blue Topaz
- 插件:Excalidraw、Outliner、Style Settings
下一步
- 想用 mmx-cli 生成封面图/调用 MiniMax 模型,看
.claude/skills/mmx-cli - 想把 Claude Code 接入飞书/Telegram,看 cc-connect 文档
参考资料
- Claude Code 官方:https://docs.claude.com/en/docs/claude-code
- Codex CLI:https://github.com/openai/codex
- OpenCode:https://opencode.ai
- Cursor:https://www.cursor.com
- IntelliJ IDEA:https://www.jetbrains.com/idea