| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731 |
- {
- "pageTitle": "Claude Code Hub 使用文档",
- "pageDescription": "完整的 Claude Code、Codex 和 Droid CLI 集成指南",
- "skipLinks": {
- "mainContent": "跳转到主要内容",
- "tableOfContents": "跳转到目录导航"
- },
- "navigation": {
- "tableOfContents": "本页导航",
- "tableOfContentsEmpty": "本页暂无可用章节",
- "quickLinks": "快速链接",
- "backToDashboard": "返回仪表盘",
- "backToTop": "回到顶部",
- "documentNavigation": "文档导航",
- "openTableOfContents": "打开目录导航",
- "pageNavigation": "页面导航"
- },
- "codeExamples": {
- "label": "代码示例 - {language}",
- "description": "点击代码块可复制到剪贴板"
- },
- "claudeCode": {
- "title": "Claude Code 使用指南",
- "description": "Claude Code 是 Anthropic 官方推出的 AI 编程助手,支持通过 cch 代理服务使用。本指南将帮助您在不同操作系统上完成安装和配置。",
- "environmentSetup": {
- "title": "环境准备:安装 Node.js",
- "description": "claude 需要 Node.js 环境才能运行(需 v18 或更高版本)。",
- "macos": {
- "homebrew": "方法一:使用 Homebrew(推荐)",
- "official": "方法二:官网下载",
- "officialSteps": [
- "访问 https://nodejs.org/",
- "下载适合 macOS 的 LTS 版本(需 v18 或更高)",
- "打开下载的 .pkg 文件,按照安装向导完成"
- ]
- },
- "windows": {
- "official": "方法一:官网下载(推荐)",
- "officialSteps": [
- "访问 https://nodejs.org/",
- "下载 LTS 版本(需 v18 或更高)",
- "双击 .msi 文件,按向导安装(保持默认设置)"
- ],
- "packageManager": "方法二:使用包管理器",
- "note": "建议使用 PowerShell 而不是 CMD,以获得更好的体验"
- },
- "linux": {
- "official": "方法一:使用官方仓库(推荐)",
- "packageManager": "方法二:使用系统包管理器"
- },
- "verification": {
- "title": "验证 Node.js 安装",
- "description": "安装完成后,打开终端/命令行,输入以下命令验证:",
- "success": "如果显示版本号,说明安装成功了!",
- "command1": "node --version",
- "command2": "npm --version"
- }
- },
- "installation": {
- "title": "安装 claude",
- "nativeInstall": {
- "title": "Native Install(推荐)",
- "description": "官方推荐使用 Native 安装方式,具有以下优势:",
- "advantages": ["单个可执行文件,无需 Node.js 依赖", "自动更新机制更稳定", "启动速度更快"],
- "macos": {
- "homebrew": "方法一:Homebrew(推荐)",
- "autoUpdate": "自动更新说明",
- "autoUpdateText": "通过 Homebrew 安装的 Claude Code 会在 brew 目录外自动更新,除非使用 DISABLE_AUTOUPDATER 环境变量显式禁用。",
- "curl": "方法二:curl 脚本",
- "curls": [
- "# 安装稳定版(默认)",
- "curl -fsSL https://claude.ai/install.sh | bash",
- "",
- "# 安装最新版",
- "curl -fsSL https://claude.ai/install.sh | bash -s latest",
- "",
- "# 安装指定版本",
- "curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58"
- ]
- },
- "linux": {
- "curl": "curl 脚本安装",
- "curls": [
- "# 安装稳定版(默认)",
- "curl -fsSL https://claude.ai/install.sh | bash",
- "",
- "# 安装最新版",
- "curl -fsSL https://claude.ai/install.sh | bash -s latest",
- "",
- "# 安装指定版本",
- "curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58"
- ],
- "alpine": "Alpine Linux 特殊说明",
- "alpineText": "基于 musl/uClibc 的发行版(如 Alpine Linux)需要安装额外依赖:",
- "alpineCode": ["apk add libgcc libstdc++ ripgrep", "export USE_BUILTIN_RIPGREP=0"]
- },
- "windows": {
- "powershell": "方法一:PowerShell",
- "powershells": [
- "# 安装稳定版(默认)",
- "irm https://claude.ai/install.ps1 | iex",
- "",
- "# 安装最新版",
- "& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) latest",
- "",
- "# 安装指定版本",
- "& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 1.0.58"
- ],
- "cmd": "方法二:CMD",
- "cmds": [
- "REM 安装稳定版(默认)",
- "curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd",
- "",
- "REM 安装最新版",
- "curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd latest && del install.cmd",
- "",
- "REM 安装指定版本",
- "curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd"
- ]
- },
- "verification": {
- "title": "验证安装",
- "description": "安装完成后,运行以下命令验证:",
- "success": "如果显示版本号,恭喜!Claude Code 已成功安装。",
- "command": "claude --version"
- },
- "tip": "提示",
- "tipText": "安装前请确保移除任何过期的别名或符号链接。使用 claude doctor 命令可以检查安装类型和版本。"
- },
- "npmInstall": {
- "title": "NPM",
- "description": "使用 NPM 安装需要先安装 Node.js 18 或更高版本。适合偏好使用 NPM 管理工具的开发者。",
- "command": "npm install -g @anthropic-ai/claude-code",
- "warning": "警告",
- "warningText": "不要使用 sudo npm install -g,这可能导致权限问题和安全风险。如果遇到权限错误,请参考 NPM 官方解决方案。",
- "verification": {
- "title": "验证安装",
- "description": "验证安装",
- "success": "如果显示版本号,恭喜!Claude Code 已成功安装。"
- },
- "migration": {
- "title": "迁移到 Native Install",
- "description": "如果你已通过 NPM 全局安装,可以使用以下命令迁移到 Native 安装:",
- "command": "claude install",
- "note": "部分用户可能会被自动迁移到这种安装方式。"
- }
- }
- },
- "configuration": {
- "title": "连接 cch 服务",
- "settingsJson": {
- "title": "方法一:settings.json 配置(推荐)",
- "description": "配置文件路径:",
- "pathNote": "路径说明",
- "paths": [
- "Windows:C:/Users/你的用户名/.claude",
- "Linux 或 macOS:~/.claude",
- "如果 settings.json 文件不存在,请自行创建"
- ],
- "instruction": "编辑 settings.json 文件,添加以下内容:",
- "important": "重要提示",
- "importantPoints": [
- "将 your-api-key-here 替换为您的实际 API 密钥",
- "密钥获取方式:登录控制台 → API 密钥管理 → 创建密钥"
- ]
- },
- "envVars": {
- "title": "方法二:环境变量配置",
- "windows": {
- "temporary": "临时设置(当前会话):",
- "permanent": "永久设置(用户级):",
- "note": "设置后需要重新打开 PowerShell 窗口才能生效。"
- },
- "unix": {
- "temporary": "临时设置(当前会话):",
- "permanent": "永久设置:",
- "permanentNote": "添加到您的 shell 配置文件({shellConfig}):"
- }
- },
- "verification": {
- "title": "验证配置",
- "description": "配置完成后,验证环境变量是否设置成功:",
- "windowsPowerShell": "在 PowerShell 中执行:",
- "windowsCmd": "在 CMD 中执行:",
- "expectedOutput": "预期输出示例:",
- "note": "注意",
- "noteText": "如果输出为空或显示变量名本身,说明环境变量设置失败,请重新按照上述步骤设置。"
- }
- },
- "vsCodeExtension": {
- "title": "VS Code 扩展配置",
- "steps": [
- "在 VS Code 扩展中搜索并安装 Claude Code for VS Code",
- "在 ~/.claude 目录下创建 config.json 文件(如果没有)",
- "添加以下内容:"
- ],
- "configPath": "配置文件路径:{path}",
- "note": "注意",
- "notePoints": [
- "是 config.json,不是 settings.json",
- "primaryApiKey 字段值可以为任意内容,只要存在即可"
- ]
- },
- "startup": {
- "title": "启动 claude",
- "description": "在项目目录下运行:",
- "initNote": "首次启动时,claude 会进行初始化配置。"
- },
- "commonIssues": {
- "title": "常见问题",
- "commandNotFound": "1. 命令未找到",
- "commandNotFoundWindows": [
- "确保 npm 全局路径(通常是 C:\\Users\\你的用户名\\AppData\\Roaming\\npm)已添加到系统 PATH",
- "重新打开 PowerShell 窗口"
- ],
- "commandNotFoundUnix": "检查 npm 全局安装路径并添加到 PATH(如果不在)",
- "connectionFailed": "2. API 连接失败",
- "updateCli": "3. 更新 claude",
- "updateNote": "重新运行安装脚本即可更新到最新版本。"
- }
- },
- "codex": {
- "title": "Codex CLI 使用指南",
- "description": "Codex 是 OpenAI 官方的命令行 AI 编程助手,支持通过 cch 代理使用。注意:Codex 使用 OpenAI 兼容格式,端点需要包含 /v1 路径。",
- "installation": {
- "title": "安装 codex",
- "instruction": "执行:",
- "adminNote": "以管理员身份运行 PowerShell,",
- "verification": "验证安装:",
- "command": "codex --version"
- },
- "configuration": {
- "title": "连接 cch 服务",
- "configFile": {
- "title": "配置文件设置",
- "steps": [
- "打开文件资源管理器,找到 ${configPath} 文件夹(不存在则创建)",
- "创建 config.toml 文件",
- "使用文本编辑器打开,添加以下内容:"
- ],
- "step4": "创建 auth.json 文件,添加:",
- "important": "重要提示",
- "importantPoints": [
- "将 your-api-key-here 替换为您的 cch API 密钥",
- "注意:Codex 使用 OpenAI 兼容格式,端点包含 /v1 路径"
- ]
- },
- "authJson": {
- "title": "配置文件方式",
- "configTomlDescription": "创建 config.toml 文件(使用 auth.json 存储密钥时,无需 env_key 字段):",
- "note": "提示",
- "noteText": "此方式通过 auth.json 文件存储 API 密钥,config.toml 中无需配置 env_key 字段。"
- },
- "envVars": {
- "title": "环境变量方式",
- "configTomlDescription": "创建 config.toml 文件(使用环境变量时,需要配置 env_key 字段):",
- "windows": {
- "instruction": "在 PowerShell 中运行:",
- "note": "设置后需要重新打开 PowerShell 窗口才能生效。"
- },
- "unix": {
- "instruction": "设置环境变量:"
- }
- }
- },
- "vsCodeExtension": {
- "title": "VS Code 扩展配置",
- "steps": [
- "在 VS Code 扩展中搜索并安装 Codex – OpenAI's coding agent",
- "确保已按照上述步骤配置好 config.toml 和 auth.json",
- "设置环境变量 CCH_API_KEY"
- ],
- "important": "重要",
- "importantText": "env_key 只能是环境变量名称(如 CCH_API_KEY),不能是完整的密钥。如果直接填写密钥,会报错找不到令牌或令牌配置错误。"
- },
- "startup": {
- "title": "启动 codex",
- "description": "在项目目录下运行:",
- "initNote": "首次启动时,codex 会进行初始化配置。"
- },
- "commonIssues": {
- "title": "常见问题",
- "commandNotFound": "1. 命令未找到",
- "commandNotFoundWindows": [
- "确保 npm 全局路径(通常是 C:\\Users\\你的用户名\\AppData\\Roaming\\npm)已添加到系统 PATH",
- "重新打开 PowerShell 窗口"
- ],
- "commandNotFoundUnix": "检查 npm 全局安装路径并添加到 PATH(如果不在)",
- "connectionFailed": "2. API 连接失败",
- "updateCli": "3. 更新 codex",
- "updateCommand": "npm i -g @openai/codex --registry=https://registry.npmmirror.com"
- }
- },
- "gemini": {
- "title": "Gemini CLI 使用指南",
- "description": "Gemini CLI 是 Google 官方的 AI 编程助手命令行工具,支持通过 cch 代理服务使用。本指南将帮助您在不同操作系统上完成安装和配置。",
- "installation": {
- "title": "安装 gemini",
- "instruction": "确保您已安装 Node.js 18 或更高版本,然后全局安装 Gemini CLI:",
- "command": "npm install -g @google/gemini-cli",
- "verification": "验证安装:",
- "verificationCommand": "gemini --version",
- "adminNote": "以管理员身份运行 PowerShell,"
- },
- "configuration": {
- "title": "连接 cch 服务",
- "configFile": {
- "title": "方法一:配置文件方式(推荐)",
- "step1": {
- "title": "创建配置目录",
- "description": "Gemini CLI 的配置文件位于 ~/.gemini/ 目录。",
- "macosLinux": "macOS / Linux:",
- "windows": "Windows (PowerShell):"
- },
- "step2": {
- "title": "创建 .env 配置文件",
- "description": "在 ~/.gemini/ 目录下创建 .env 文件:",
- "macosLinuxInstruction": "macOS / Linux:",
- "windowsInstruction": "Windows:在 %USERPROFILE%\\.gemini\\ 目录下创建 .env 文件",
- "content": "添加以下内容:"
- },
- "step3": {
- "title": "创建 settings.json 配置文件",
- "description": "在 ~/.gemini/ 目录下创建 settings.json 文件:",
- "content": "这个配置文件启用了 IDE 集成,并设置认证方式为 API Key。"
- },
- "parameterNote": "参数说明",
- "parameters": [
- "GOOGLE_GEMINI_BASE_URL: cch API 基础地址",
- "GEMINI_API_KEY: 您在 cch 控制台创建的 API 密钥",
- "GEMINI_MODEL: 使用的模型(默认为 gemini-2.5-pro)"
- ],
- "important": "重要提示",
- "importantPoints": [
- "将 YOUR_API_KEY_HERE 替换为您的实际 API 密钥",
- "密钥获取方式:登录控制台 → API 密钥管理 → 创建密钥"
- ]
- },
- "envVars": {
- "title": "方法二:环境变量配置",
- "description": "如果您只想临时使用,可以通过环境变量配置:",
- "macosLinux": {
- "title": "macOS / Linux:",
- "note": "环境变量只在当前终端会话中有效。如需持久化配置,请使用配置文件方式。"
- },
- "windows": {
- "powershell": "Windows (PowerShell):",
- "cmd": "Windows (CMD):",
- "note": "环境变量只在当前终端会话中有效。如需持久化配置,请使用配置文件方式。"
- }
- }
- },
- "startup": {
- "title": "启动和验证",
- "startCli": {
- "title": "启动 Gemini CLI",
- "description": "进入您的项目目录并启动 Gemini CLI:",
- "note": "首次启动时,Gemini CLI 会读取配置文件中的设置。"
- },
- "verification": {
- "title": "验证配置",
- "description": "在 Gemini CLI 中尝试发送一个简单的请求测试连接:",
- "testCommand": "你好,请帮我创建一个 Python 的 hello world 程序",
- "success": "如果 Gemini CLI 正常响应,说明配置成功!"
- },
- "agentMode": {
- "title": "使用 Agent Mode",
- "description": "Gemini CLI 支持 Agent Mode,可以自动规划和执行复杂任务:",
- "command": "gemini --agent",
- "features": "在 Agent Mode 下,Gemini 会:",
- "featureList": [
- "自动分析任务需求",
- "制定执行计划",
- "逐步执行并验证结果",
- "根据反馈调整策略"
- ]
- }
- },
- "commonIssues": {
- "title": "常见问题",
- "commandNotFound": "1. 命令未找到",
- "commandNotFoundWindows": [
- "确保 npm 全局路径(通常是 C:\\Users\\你的用户名\\AppData\\Roaming\\npm)已添加到系统 PATH",
- "重新打开 PowerShell 窗口"
- ],
- "commandNotFoundUnix": "检查 npm 全局安装路径并添加到 PATH(如果不在)",
- "connectionFailed": "2. API 连接失败",
- "connectionSteps": [
- "检查环境变量或配置文件中的 GEMINI_API_KEY 是否设置正确",
- "验证 GOOGLE_GEMINI_BASE_URL 是否正确",
- "测试网络连接"
- ],
- "updateCli": "3. 更新 gemini",
- "updateCommand": "npm install -g @google/gemini-cli"
- }
- },
- "opencode": {
- "title": "OpenCode 使用指南",
- "description": "OpenCode 是一款在终端中运行的 CLI + TUI AI 编程代理工具,也提供 IDE 插件集成。你可以将 OpenCode 指向 cch 作为统一入口来接入 Claude、GPT 与 Gemini 等模型。",
- "installation": {
- "title": "安装",
- "macos": {
- "description": "在 macOS 上可以选择以下任一种方式安装 OpenCode:",
- "homebrew": {
- "title": "方式二:Homebrew",
- "description": "也可以使用 Homebrew 安装:"
- }
- },
- "linux": {
- "description": "在 Linux 上可以选择以下任一种方式安装 OpenCode:",
- "homebrew": {
- "title": "方式二:Homebrew",
- "description": "也可以使用 Homebrew 安装:"
- },
- "paru": {
- "title": "方式五:Paru(Arch Linux)",
- "description": "如果你使用 Arch Linux,也可以通过 paru(AUR)安装:"
- }
- },
- "script": {
- "title": "方式一:官方安装脚本",
- "description": "执行以下命令安装最新版:"
- },
- "npm": {
- "title": "方式三:npm",
- "description": "也可以通过 npm 全局安装:",
- "note": "提示:不建议通过 npm 镜像源/第三方 registry 安装 opencode-ai,可能会导致依赖缺失;如遇问题请改用官方 npm registry。"
- },
- "bun": {
- "title": "方式四:Bun",
- "description": "如果你使用 Bun,也可以全局安装:"
- },
- "windows": {
- "description": "Windows 推荐使用包管理器(Chocolatey/Scoop),也可以使用 npm:",
- "choco": {
- "title": "方式一:Chocolatey",
- "description": "使用 Chocolatey 安装:",
- "command": "choco install opencode"
- },
- "scoop": {
- "title": "方式二:Scoop",
- "description": "使用 Scoop 安装:",
- "command": "scoop bucket add extras\nscoop install extras/opencode"
- },
- "note": "提示:官方说明 Windows 上通过 Bun 安装仍在推进。建议使用 Chocolatey/Scoop/npm,或从 GitHub Releases 下载二进制。"
- }
- },
- "configuration": {
- "title": "连接 cch 服务",
- "configFile": {
- "title": "配置 opencode.json",
- "path": "配置文件路径:",
- "instruction": "编辑配置文件,写入以下内容(只需一份配置文件即可覆盖全部模型):",
- "important": "重要说明",
- "importantPoints": [
- "请先在 cch 后台创建 API Key,并设置环境变量 CCH_API_KEY",
- "cchClaude/openai 使用 ${resolvedOrigin}/v1,cchGemini 使用 ${resolvedOrigin}/v1beta",
- "模型选择时使用 provider_id/model_id 格式(例如 openai/gpt-5.2 或 cchClaude/claude-sonnet-4-5-20250929)"
- ]
- },
- "modelSelection": {
- "title": "选择模型",
- "description": "启动 OpenCode 后,在 TUI 中输入以下命令查看/选择模型:",
- "command": "/models"
- }
- },
- "startup": {
- "title": "启动 opencode",
- "description": "在项目目录下运行:",
- "initNote": "首次启动时,opencode 会加载配置并创建会话。"
- },
- "commonIssues": {
- "title": "常见问题",
- "commandNotFound": "1. 命令未找到",
- "commandNotFoundWindows": [
- "如果使用 npm 安装,请确保 npm 全局路径已添加到系统 PATH",
- "重新打开终端窗口后再试"
- ],
- "commandNotFoundUnix": "检查安装路径并添加到 PATH(例如 ~/.local/bin 或 npm 全局目录)",
- "connectionFailed": "2. API 连接失败",
- "updateCli": "3. 更新 opencode"
- }
- },
- "droid": {
- "title": "Droid CLI 使用指南",
- "description": "Droid 是 Factory AI 开发的交互式终端 AI 编程助手,支持通过 cch 代理服务使用。使用前必须先注册并登录 Droid 官方账号。",
- "installation": {
- "title": "安装 droid",
- "linux": {
- "instruction": "执行:",
- "note": "Linux 用户需确保已安装 xdg-utils:",
- "command": "sudo apt-get install xdg-utils"
- },
- "windows": {
- "instruction": "在 PowerShell 中执行:"
- }
- },
- "configuration": {
- "title": "连接 cch 服务",
- "prerequisite": "前置步骤:必须先登录 Droid 官方账号",
- "prerequisiteSteps": [
- "运行 droid 命令",
- "按提示通过浏览器登录 Factory 官方账号",
- "登录成功后,才能继续配置自定义模型"
- ],
- "customModels": {
- "title": "配置自定义模型",
- "path": "配置文件路径:",
- "instruction": "编辑配置文件,添加以下内容:",
- "important": "重要说明",
- "importantPoints": [
- "将 your-api-key-here 替换为您的 cch API 密钥",
- "Anthropic 格式:使用 ${resolvedOrigin}(无 /v1)",
- "OpenAI 格式:使用 ${resolvedOrigin}/v1(需要 /v1)"
- ]
- },
- "switching": {
- "title": "切换模型",
- "steps": [
- "重启 Droid",
- "输入 /model 命令",
- "选择 GPT-5-Codex [cch] 或 Sonnet 4.5 [cch]",
- "开始使用!"
- ]
- }
- },
- "startup": {
- "title": "启动 droid",
- "description": "在项目目录下运行:",
- "initNote": "首次启动时,droid 会进行初始化配置。"
- },
- "commonIssues": {
- "title": "常见问题",
- "commandNotFound": "1. 命令未找到",
- "commandNotFoundWindows": [
- "确保 npm 全局路径(通常是 C:\\Users\\你的用户名\\AppData\\Roaming\\npm)已添加到系统 PATH",
- "重新打开 PowerShell 窗口"
- ],
- "commandNotFoundUnix": "检查 npm 全局安装路径并添加到 PATH(如果不在)",
- "updateCli": "2. 更新 droid"
- }
- },
- "commonCommands": {
- "title": "常用命令",
- "description": "启动 Claude Code 后,您可以使用以下常用命令:",
- "commands": [
- { "command": "/help", "description": "查看帮助信息" },
- { "command": "/clear", "description": "清空对话历史,开启新对话" },
- { "command": "/compact", "description": "总结当前对话" },
- { "command": "/cost", "description": "查看当前对话已使用的金额" },
- { "command": "/model", "description": "切换模型(Droid 专用)" }
- ],
- "moreCommands": "更多命令查看 官方文档"
- },
- "troubleshooting": {
- "title": "通用故障排查",
- "installationFailed": {
- "title": "安装失败",
- "steps": [
- "检查网络连接是否正常",
- "确保有管理员权限(Windows)或使用 sudo(macOS / Linux)",
- "尝试使用代理或镜像源(npm 可使用 --registry 参数)"
- ]
- },
- "invalidApiKey": {
- "title": "API 密钥无效",
- "steps": [
- "确认密钥已正确复制(无多余空格)",
- "检查密钥是否在有效期内",
- "验证账户权限是否正常",
- "确认使用了正确的端点格式(Anthropic 无 /v1,OpenAI 有 /v1)"
- ]
- },
- "endpointConfigError": {
- "title": "端点配置错误",
- "points": [
- "Claude Code / Droid Anthropic 模型:使用 ${resolvedOrigin}(无 /v1)",
- "Codex / Droid OpenAI 模型:使用 ${resolvedOrigin}/v1(必须包含 /v1)"
- ]
- }
- },
- "platforms": {
- "macos": "macOS",
- "windows": "Windows",
- "linux": "Linux"
- },
- "placeholders": {
- "windowsUserName": "你的用户名",
- "shellConfig": {
- "linux": "~/.bashrc",
- "macos": "~/.zshrc"
- },
- "codexVsCodeConfigFiles": "config.toml 和 auth.json"
- },
- "snippets": {
- "comments": {
- "updateHomebrew": "# 更新 Homebrew",
- "installNodeJs": "# 安装 Node.js",
- "usingChocolatey": "# 使用 Chocolatey",
- "orUsingScoop": "# 或使用 Scoop",
- "addNodeSourceRepo": "# 添加 NodeSource 仓库",
- "ubuntuDebian": "# Ubuntu/Debian",
- "centosRhelFedora": "# CentOS/RHEL/Fedora",
- "addToPathIfMissing": "# 添加到 PATH(如果不在)",
- "checkEnvVar": "# 检查环境变量",
- "testNetworkConnection": "# 测试网络连接"
- }
- },
- "layout": {
- "headerTitle": "使用文档",
- "loginConsole": "登录控制台"
- },
- "ui": {
- "mainContent": "文档内容",
- "main": "main",
- "currentSiteAddress": "当前站点地址"
- }
- }
|