返回工具箱共 12 个客户端 OpenAI GitHub Claude Code Docs OpenCode Docs Gemini CLI GitHub Qwen Code GitHub Cursor Docs Aider Docs Goose Docs Continue Docs Amp Manual Crush GitHub Cline Docs
AI Coding CLI
AI 编程客户端安装命令合集
Codex、Claude Code、OpenCode、Gemini CLI、Qwen Code 等常用 AI 编程工具一页整理。按工具和系统分类,复制后即可安装或检查版本。
12
客户端
73
可复制命令
3
系统分类
install.sh
$codexready
$claudeready
$opencodeready
$geminiready
$qwenready
$cursor-agentready
执行前检查
先确认来源,再复制命令;任何密钥、Token、Cookie 都不要交给陌生脚本。
快速选择
先选工具,再复制对应系统命令。
1OpenAI Codex CLIChatGPT / OpenAI 生态用户
codex2Claude CodeClaude 用户、需要强代码理解的开发者claude3OpenCode开源、多模型、可控成本用户opencode4Google Gemini CLIGemini / Google 生态用户gemini5Qwen CodeQwen、国内模型、多协议用户qwen6Cursor CLICursor 用户、编辑器和终端双端用户cursor-agent7AiderGit 项目、轻量改造、Python 生态用户aider8Goose本地 Agent、自动化、桌面和终端双端用户goose9Continue CLIContinue 用户、自动化脚本用户cn10AmpAmpCode 用户、复杂项目 Agent 用户amp11Crush终端党、开源多模型用户crush12Cline CLICline 用户、VS Code / CLI 双端用户cline只复制官方文档、官方 GitHub 或可信来源提供的安装命令。
不要把 API Key、Token、Cookie、Session Key 粘贴给陌生脚本或网页。
不要让 AI 在不可信项目目录里自动执行命令;先看清它准备做什么。
安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | shWindows
1Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"其他方式
2npm
npm install -g @openai/codexHomebrew
brew install --cask codex安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux / WSL
curl -fsSL https://claude.ai/install.sh | bashWindows
2Windows PowerShell
irm https://claude.ai/install.ps1 | iexWindows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd其他方式
2Homebrew
brew install --cask claude-codeWinGet
winget install Anthropic.ClaudeCode安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1安装脚本
curl -fsSL https://opencode.ai/install | bashWindows
3Chocolatey
choco install opencodeScoop
scoop install opencodenpm
npm install -g opencode-ai其他方式
5npm
npm install -g opencode-aiBun
bun install -g opencode-aipnpm
pnpm install -g opencode-aiYarn
yarn global add opencode-aiHomebrew
brew install anomalyco/tap/opencode安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
3npm
npm install -g @google/gemini-cliHomebrew
brew install gemini-cliMacPorts
sudo port install gemini-cliWindows
1npm
npm install -g @google/gemini-cli其他方式
1无需安装,直接运行
npx @google/gemini-cli安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1Linux / macOS
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bashWindows
1Windows PowerShell
irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex其他方式
3npm
npm install -g @qwen-code/qwen-code@latest需要 Node.js 22+
Homebrew
brew install qwen-code登录配置
/auth安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux
curl https://cursor.com/install -fsS | bashWindows
1Windows
https://docs.cursor.com/en/cli/installationWindows 安装方式请以官方 CLI 文档为准。
其他方式
1检查版本
cursor-agent --version安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux
curl -LsSf https://aider.chat/install.sh | shWindows
1Windows PowerShell
powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"其他方式
3uv
python -m pip install uv
uv tool install --force --python python3.12 --with pip aider-chat@latestpipx
python -m pip install pipx
pipx install aider-chatpip
python -m pip install -U --upgrade-strategy only-if-needed aider-chat安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bashWindows
2Git Bash / MSYS2 / PowerShell
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | bashPowerShell 脚本
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/block/goose/main/download_cli.ps1" -OutFile "download_cli.ps1"
.\download_cli.ps1其他方式
3非交互安装
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | CONFIGURE=false bashHomebrew
brew install block-goose-cli更新
goose update安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1macOS / Linux
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bashWindows
1Windows
https://docs.continue.dev/cli/quickstartWindows 安装请以官方 CLI 快速开始页面为准。
其他方式
3检查版本
cn --version登录
cn loginHeadless 示例
cn -p "Generate a conventional commit name for the current git changes"安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1Mac / Linux / WSL
curl -fsSL https://ampcode.com/install.sh | bashWindows
1Windows PowerShell
powershell -c "irm https://ampcode.com/install.ps1 | iex"其他方式
3Homebrew
brew install ampcode/tap/ampcodenpm
npm install -g @ampcode/cli官方说明中 npm 方式不作为首选。
更新
amp update安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
3Homebrew
brew install charmbracelet/tap/crushnpm
npm install -g @charmland/crushArch Linux
yay -S crush-binWindows
2WinGet
winget install charmbracelet.crushScoop
scoop bucket add charm https://github.com/charmbracelet/scoop-bucket.git
scoop install crush其他方式
1Nix
nix run github:numtide/nix-ai-tools#crush安装方式
按系统选择复制;不确定时优先看官方来源。
macOS / Linux
1npm
npm i -g clineWindows
1npm
npm i -g cline其他方式
1启动
cline通用检查命令
安装完成后,可以逐个检查版本或命令是否已加入 PATH。
version checks
codex --version
claude --version
opencode --version
gemini --version
qwen --version
cursor-agent --version
aider --version
goose --version
cn --version
amp --version
crush --version
cline --version安全提醒
安装脚本会在本机执行命令。复制前先确认来源,执行前看清命令内容,涉及密钥、Token、Cookie 的内容不要随意粘贴给网页或陌生脚本。
更新时间:2026-06-19