| 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\\your-username\\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": "當前站點地址"
- }
- }
|