CLI 安装与配置
先到 Key 管理 创建对应产品线的 Key,再按你的电脑系统选择一个推荐入口。Codex / Claude Code / Gemini 的 Key 不通用。
新手推荐流程
不要先看完整教程。先选产品线,再选 Windows 或 macOS / Linux,按页面提示复制命令或下载脚本即可。
1. 创建 Key买了哪个产品线,就创建哪个产品线的 Key。
2. 选择系统Windows 选 Windows;Mac 选 macOS / Linux。
3. 运行后重开终端配置完成后关闭旧终端,再重新打开使用。
按产品线选择
每个产品线都提供两个平级入口:下载脚本安装会进入脚本下载页面;复制命令安装会进入命令页面。两种方式都会使用你自己的 Key。
1Codex
使用 Codex Key。适合代码生成、项目修改和终端协作。
Windows
推荐:下载脚本
先创建 Codex Key,再下载脚本运行;脚本会提示你粘贴 Key。
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -useb https://code.jimuxyz.com/env_deploy/codex-install.ps1 | iex"
powershell -NoProfile -ExecutionPolicy Bypass -Command "npm install -g @openai/codex --registry=https://registry.npmmirror.com"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$env:JIMUXYZ_CODEX_KEY='你的Codex_API_KEY'; iwr -useb https://code.jimuxyz.com/env_deploy/codex-deploy.ps1 | iex"
不想敲命令就下载脚本;会用终端就复制命令。
macOS / Linux
推荐:复制命令
打开终端,复制命令执行;把占位 Key 换成你自己的 Codex Key。
curl -fsSL https://code.jimuxyz.com/env_deploy/codex-install.sh | bash
npm install -g @openai/codex@latest --registry=https://registry.npmmirror.com
curl -fsSL https://code.jimuxyz.com/env_deploy/codex-deploy.sh | bash -s -- "你的Codex_API_KEY"
复制后粘贴到终端执行;需要文件方式再下载脚本。
已有 Codex 桌面版客户端?查看桌面版配置说明。没有客户端时,建议优先使用上述的 CLI 安装,网络效果更好;也可以使用 VSCode 等插件,达到和客户端一样的效果。
2Claude Code
使用 Claude Code Key。适合复杂代码分析、长上下文和高质量生成。
Windows
推荐:下载脚本
先创建 Claude Code Key,再下载脚本运行;完成后完全退出 VSCode / 终端再打开。
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -useb https://code.jimuxyz.com/env_deploy/claude-install.ps1 | iex"
powershell -NoProfile -ExecutionPolicy Bypass -Command "npm install -g @anthropic-ai/claude-code --registry=https://registry.npmmirror.com"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$env:JIMUXYZ_CLAUDE_KEY='你的Claude_API_KEY'; iwr -useb https://code.jimuxyz.com/env_deploy/claude-deploy.ps1 | iex"
不想敲命令就下载脚本;会用终端就复制命令。
macOS / Linux
推荐:复制命令
打开终端,复制命令执行;把占位 Key 换成你自己的 Claude Code Key。
curl -fsSL https://code.jimuxyz.com/env_deploy/claude-install.sh | bash
npm install -g @anthropic-ai/claude-code@latest --registry=https://registry.npmmirror.com
curl -fsSL https://code.jimuxyz.com/env_deploy/claude-deploy.sh | bash -s -- "你的Claude_API_KEY"
复制后粘贴到终端执行;需要文件方式再下载脚本。
已有 Claude Code 桌面版客户端?查看桌面版配置说明。没有客户端时,建议优先使用上述的 CLI 安装,网络效果更好;也可以使用 VSCode 等插件,达到和客户端一样的效果。
3Gemini CLI
使用 Gemini Key。适合 Gemini 模型调用和 Gemini CLI 工作流。
Windows
推荐:下载脚本
先创建 Gemini Key,再下载脚本运行;脚本会提示你粘贴 Key。
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -useb https://code.jimuxyz.com/env_deploy/gemini-install.ps1 | iex"
powershell -NoProfile -ExecutionPolicy Bypass -Command "npm install -g @google/gemini-cli --registry=https://registry.npmmirror.com"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$env:JIMUXYZ_GEMINI_KEY='你的Gemini_API_KEY'; iwr -useb https://code.jimuxyz.com/env_deploy/gemini-deploy.ps1 | iex"
不想敲命令就下载脚本;会用终端就复制命令。
macOS / Linux
推荐:复制命令
打开终端,复制命令执行;把占位 Key 换成你自己的 Gemini Key。
curl -fsSL https://code.jimuxyz.com/env_deploy/gemini-install.sh | bash
npm install -g @google/gemini-cli@latest --registry=https://registry.npmmirror.com
curl -fsSL https://code.jimuxyz.com/env_deploy/gemini-deploy.sh | bash -s -- "你的Gemini_API_KEY"
复制后粘贴到终端执行;需要文件方式再下载脚本。
已有 Gemini/Antigravity 桌面版客户端?查看桌面版配置说明。没有客户端时,建议优先使用上述的 CLI 安装,网络效果更好;也可以使用 VSCode 等插件,达到和客户端一样的效果。
不想用纯终端?可以先装编辑器
VSCode、Cursor、Windsurf 都有文件树、代码搜索、内置终端和插件市场。安装编辑器后,可以在插件市场搜索 Codex / Claude Code / Gemini 相关插件;本站 Key 和接口配置仍然按上面的“下载脚本安装”或“复制命令安装”完成。
桌面版说明
如果你已经安装 Codex / Claude Code / Gemini 相关桌面版客户端,可以打开桌面版配置说明,按对应产品线写入本站 Key 和套餐配置。本站不提供客户端维护和下载;新手用户建议优先使用上方脚本/命令配置,同时使用 VSCode 编译器等插件达到和客户端一样的效果。