{"repo": "bahayonghang/ccr", "files": {"docs/examples/codex-cli-config.toml": {"4a02c91b59ad0f2edbed77f597346efd235ea16e": {"t": 1785745343.408254, "n": 565, "h": "898c2854a075365f", "c": "# Codex CLI config.toml 示例(DeepSeek Responses API)\n# CCR 切换 provider_bearer_token profile 后会生成等价配置。\n# 要求 Codex >= 0.144.0,并先按 DeepSeek 官方说明生成 models.json。\n# 替换占位密钥后,本文件及其备份都包含明文凭据,请勿提交或分享。\n\nmodel = \"deepseek-v4-flash\"\nmodel_provider = \"custom\"\npreferred_auth_method = \"apikey\"\nforced_login_method = \"api\"\nmodel_reasoning_effort = \"high\"\nmodel_catalog_json = \"~/.codex/models.json\"\n\n[model_providers.custom]\nname = \"DeepSeek\"\nbase_url = \"https://api.deepseek.com/\"\nwire_api = \"responses\"\nrequires_openai_auth = false\nexperimental_bearer_token = \"\"\n"}, "a3b063a168a45f73de895196d0088bb0eee76689": {"t": 1785750483.8122063, "n": 565, "h": "898c2854a075365f", "c": "# Codex CLI config.toml 示例(DeepSeek Responses API)\n# CCR 切换 provider_bearer_token profile 后会生成等价配置。\n# 要求 Codex >= 0.144.0,并先按 DeepSeek 官方说明生成 models.json。\n# 替换占位密钥后,本文件及其备份都包含明文凭据,请勿提交或分享。\n\nmodel = \"deepseek-v4-flash\"\nmodel_provider = \"custom\"\npreferred_auth_method = \"apikey\"\nforced_login_method = \"api\"\nmodel_reasoning_effort = \"high\"\nmodel_catalog_json = \"~/.codex/models.json\"\n\n[model_providers.custom]\nname = \"DeepSeek\"\nbase_url = \"https://api.deepseek.com/\"\nwire_api = \"responses\"\nrequires_openai_auth = false\nexperimental_bearer_token = \"\"\n"}, "03fcef33f942e7fc8f1d189e89a13d6667126fc3": {"t": 1785750488.1149182, "n": 565, "h": "a85446c87bdc8047", "c": "# Codex CLI config.toml 示例(第三方 OpenAI 兼容 Provider)\n# 复制到: ~/.codex/config.toml\n# 参考: docs/reference/platforms/codex.md\n\nmodel_provider = \"duckcoding\"\nmodel = \"gpt-5-codex\"\n# 允许值: minimal | low | medium | high | xhigh\nmodel_reasoning_effort = \"high\"\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\n\n[model_providers.duckcoding]\nname = \"DuckCoding OpenAI compatible\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nwire_api = \"responses\"\nrequires_openai_auth = false\nenv_key = \"DUCKCODING_API_KEY\"\n"}, "7dbefb590dfe872e971d4cf118e9becb6c4c908f": {"t": 1785750489.3816497, "n": 459, "h": "470784bae61595ca", "c": "# Codex CLI config.toml 示例(OpenAI 兼容 Provider)\n# 复制到: ~/.codex/config.toml\n\nmodel_provider = \"duckcoding\"\nmodel = \"gpt-5.1-codex\"\nmodel_reasoning_effort = \"high\"\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\n\n[model_providers.duckcoding]\nname = \"duckcoding\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nwire_api = \"responses\"\nrequires_openai_auth = true\nenv_key = \"DUCKCODING_API_KEY\"\n"}}, "docs/examples/codex-profiles.toml": {"4a02c91b59ad0f2edbed77f597346efd235ea16e": {"t": 1785745362.9995177, "n": 1720, "h": "bfe0c5449a5cf6db", "c": "# Codex Profiles 示例(Unified)\n# 复制到: ~/.ccr/platforms/codex/profiles.toml\n\ndefault_config = \"duckcoding\"\ncurrent_config = \"duckcoding\"\n\n[settings]\nskip_confirmation = false\n\n# 官方模式:切换时重置 ~/.codex/config.toml 和 ~/.codex/auth.json\n[official]\ndescription = \"Codex 官方模式\"\nprovider = \"openai\"\nprovider_type = \"official_relay\"\nusage_count = 0\nenabled = true\n\n# 第三方模式(Provider API key)\n[duckcoding]\ndescription = \"DuckCoding OpenAI 兼容\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-token\"\nmodel = \"gpt-5-codex\"\nprovider = \"duckcoding\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nenv_key = \"DUCKCODING_API_KEY\"\nrequires_openai_auth = false\nmodel_reasoning_effort = \"high\"\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n# DeepSeek Responses API\n# 仅为占位符。请在 ccr-ui 中替换它;保存后真实密钥由\n# runtime secret store 单独托管,不会留在 profiles.toml。\n[deepseek]\ndescription = \"DeepSeek Responses API\"\nbase_url = \"https://api.deepseek.com/\"\nauth_token = \"\"\nmodel = \"deepseek-v4-flash\"\nprovider = \"deepseek\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nauth_mode = \"provider_bearer_token\"\nmodel_catalog_json = \"~/.codex/models.json\"\nmodel_reasoning_effort = \"high\"\nusage_count = 0\nenabled = true\n\n# 第三方模式(OpenAI 认证语义)\n# 注意:requires_openai_auth=true 时 env_key 会被忽略\n[openai-proxy]\ndescription = \"Proxy with OpenAI auth\"\nbase_url = \"https://proxy.example.com/v1\"\nmodel = \"gpt-5-codex\"\nprovider = \"proxy\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nrequires_openai_auth = true\nmodel_reasoning_effort = \"medium\"\nusage_count = 0\nenabled = true\n"}, "a3b063a168a45f73de895196d0088bb0eee76689": {"t": 1785750487.9010196, "n": 1720, "h": "bfe0c5449a5cf6db", "c": "# Codex Profiles 示例(Unified)\n# 复制到: ~/.ccr/platforms/codex/profiles.toml\n\ndefault_config = \"duckcoding\"\ncurrent_config = \"duckcoding\"\n\n[settings]\nskip_confirmation = false\n\n# 官方模式:切换时重置 ~/.codex/config.toml 和 ~/.codex/auth.json\n[official]\ndescription = \"Codex 官方模式\"\nprovider = \"openai\"\nprovider_type = \"official_relay\"\nusage_count = 0\nenabled = true\n\n# 第三方模式(Provider API key)\n[duckcoding]\ndescription = \"DuckCoding OpenAI 兼容\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-token\"\nmodel = \"gpt-5-codex\"\nprovider = \"duckcoding\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nenv_key = \"DUCKCODING_API_KEY\"\nrequires_openai_auth = false\nmodel_reasoning_effort = \"high\"\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n# DeepSeek Responses API\n# 仅为占位符。请在 ccr-ui 中替换它;保存后真实密钥由\n# runtime secret store 单独托管,不会留在 profiles.toml。\n[deepseek]\ndescription = \"DeepSeek Responses API\"\nbase_url = \"https://api.deepseek.com/\"\nauth_token = \"\"\nmodel = \"deepseek-v4-flash\"\nprovider = \"deepseek\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nauth_mode = \"provider_bearer_token\"\nmodel_catalog_json = \"~/.codex/models.json\"\nmodel_reasoning_effort = \"high\"\nusage_count = 0\nenabled = true\n\n# 第三方模式(OpenAI 认证语义)\n# 注意:requires_openai_auth=true 时 env_key 会被忽略\n[openai-proxy]\ndescription = \"Proxy with OpenAI auth\"\nbase_url = \"https://proxy.example.com/v1\"\nmodel = \"gpt-5-codex\"\nprovider = \"proxy\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nrequires_openai_auth = true\nmodel_reasoning_effort = \"medium\"\nusage_count = 0\nenabled = true\n"}, "03fcef33f942e7fc8f1d189e89a13d6667126fc3": {"t": 1785750489.1428015, "n": 1220, "h": "819cdba0ef1d62af", "c": "# Codex Profiles 示例(Unified)\n# 复制到: ~/.ccr/platforms/codex/profiles.toml\n\ndefault_config = \"duckcoding\"\ncurrent_config = \"duckcoding\"\n\n[settings]\nskip_confirmation = false\n\n# 官方模式:切换时重置 ~/.codex/config.toml 和 ~/.codex/auth.json\n[official]\ndescription = \"Codex 官方模式\"\nprovider = \"openai\"\nprovider_type = \"official_relay\"\nusage_count = 0\nenabled = true\n\n# 第三方模式(Provider API key)\n[duckcoding]\ndescription = \"DuckCoding OpenAI 兼容\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-token\"\nmodel = \"gpt-5-codex\"\nprovider = \"duckcoding\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nenv_key = \"DUCKCODING_API_KEY\"\nrequires_openai_auth = false\nmodel_reasoning_effort = \"high\"\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n# 第三方模式(OpenAI 认证语义)\n# 注意:requires_openai_auth=true 时 env_key 会被忽略\n[openai-proxy]\ndescription = \"Proxy with OpenAI auth\"\nbase_url = \"https://proxy.example.com/v1\"\nmodel = \"gpt-5-codex\"\nprovider = \"proxy\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nrequires_openai_auth = true\nmodel_reasoning_effort = \"medium\"\nusage_count = 0\nenabled = true\n"}, "7dbefb590dfe872e971d4cf118e9becb6c4c908f": {"t": 1785750490.3671553, "n": 1008, "h": "ac895deda7132b88", "c": "# Codex Profiles 示例(Unified)\n# 复制到: ~/.ccr/platforms/codex/profiles.toml\n\ndefault_config = \"duckcoding\"\ncurrent_config = \"duckcoding\"\n\n[settings]\nskip_confirmation = false\n\n# GitHub Copilot(兼容模式)\n[github]\ndescription = \"GitHub Copilot (legacy)\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...your-github-token\"\nmodel = \"gpt-4\"\nprovider = \"github\"\nprovider_type = \"official_relay\"\napi_mode = \"github\"\nusage_count = 0\nenabled = true\n\n# OpenAI 兼容 Provider(与你截图一致)\n[duckcoding]\ndescription = \"DuckCoding (OpenAI 兼容) - gpt-5.1-codex\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nmodel = \"gpt-5.1-codex\"\nprovider = \"duckcoding\"\nprovider_type = \"official_relay\"\napi_mode = \"custom\"\nwire_api = \"responses\"\nenv_key = \"DUCKCODING_API_KEY\"\nrequires_openai_auth = true\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nmodel_reasoning_effort = \"high\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n"}, "54b6a4e5112eb6dcca76e161c87599903ec19594": {"t": 1785750493.2463076, "n": 2652, "h": "0e2895e52af8d140", "c": "# 🎯 Codex (GitHub Copilot CLI) Profiles 配置示例\n# 📍 位置: ~/.ccr/platforms/codex/profiles.toml\n#\n# 此文件管理 Codex 平台的多个配置 profiles\n# 每个 profile 代表一个独立的 API 配置\n\n# ═══════════════════════════════════════════════════════════\n# GitHub Official (默认)\n# ═══════════════════════════════════════════════════════════\n[github]\ndescription = \"GitHub Copilot Official API\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_xxxxxxxxxxxxxxxxxxxx\" # GitHub Personal Access Token\nmodel = \"gpt-4\"\nsmall_fast_model = \"gpt-3.5-turbo\"\n\n# 可选字段\nprovider = \"GitHub\"\nprovider_type = \"official\"\naccount = \"your-github-username\"\ntags = [\"official\", \"production\"]\n\n# ═══════════════════════════════════════════════════════════\n# GitHub Enterprise (企业版)\n# ═══════════════════════════════════════════════════════════\n[github-enterprise]\ndescription = \"GitHub Enterprise Copilot\"\nbase_url = \"https://github.enterprise.com/api/copilot\"\nauth_token = \"ghp_enterprise_token_xxxx\"\nmodel = \"gpt-4\"\n\nprovider = \"GitHub Enterprise\"\nprovider_type = \"enterprise\"\naccount = \"enterprise-user\"\ntags = [\"enterprise\", \"work\"]\n\n# ═══════════════════════════════════════════════════════════\n# OpenAI Compatible Proxy (代理)\n# ═══════════════════════════════════════════════════════════\n[openai-proxy]\ndescription = \"OpenAI Compatible Proxy for Codex\"\nbase_url = \"https://api.openai.com/v1\"\nauth_token = \"sk-xxxxxxxxxxxxxxxxxxxx\"\nmodel = \"gpt-4-turbo\"\nsmall_fast_model = \"gpt-3.5-turbo\"\n\nprovider = \"OpenAI\"\nprovider_type = \"proxy\"\ntags = [\"proxy\", \"testing\"]\n\n# ═══════════════════════════════════════════════════════════\n# Development (开发环境)\n# ═══════════════════════════════════════════════════════════\n[dev]\ndescription = \"Development Environment with Mock API\"\nbase_url = \"http://localhost:8080\"\nauth_token = \"dev-token-1234567890\"\nmodel = \"gpt-4-mock\"\n\nprovider = \"Local\"\nprovider_type = \"development\"\ntags = [\"dev\", \"local\", \"testing\"]\n\n# ═══════════════════════════════════════════════════════════\n# 使用说明\n# ═══════════════════════════════════════════════════════════\n#\n# 1. 切换到 Codex 平台:\n# ccr platform switch codex\n#\n# 2. 应用 profile (需要实现 codex 相关命令):\n# ccr codex switch github-enterprise\n#\n# 3. 查看所有 profiles:\n# ccr codex list\n#\n# 4. 添加新 profile:\n# ccr codex add my-profile\n#\n# 字段说明:\n# - description: Profile 描述(可选)\n# - base_url: API 基础 URL(必需)\n# - auth_token: 认证令牌(必需)\n# - model: 默认使用的模型(必需)\n# - small_fast_model: 快速小模型(可选)\n# - provider: 提供商名称(可选)\n# - provider_type: 提供商类型 (official/enterprise/proxy/development)(可选)\n# - account: 账号标识(可选)\n# - tags: 标签列表(可选)\n#\n# 注意:\n# - auth_token 是敏感信息,请妥善保管\n# - 日志和历史记录中的 token 会被自动掩码\n# - 切换 profile 会更新 Codex 的配置文件\n"}}, "examples/codex/profiles.toml": {"4a02c91b59ad0f2edbed77f597346efd235ea16e": {"t": 1785745376.9869523, "n": 1918, "h": "36a028fcd1179d2b", "c": "# Codex 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ⚠️ 注意:CCR 使用兼容 CCS 的 profiles.toml 格式(包含 default_config/current_config/settings)\ndefault_config = \"default\"\ncurrent_config = \"\"\n\n\n# ═══════════════════════════════════════════════════════════════\n# OpenAI Codex 官方(使用 ChatGPT Plus/Pro 订阅或 API Key)\n# 切换到此配置时使用官方服务\n# ═══════════════════════════════════════════════════════════════\n[default]\ndescription = \"OpenAI Codex Official\"\n# 官方服务不需要设置 base_url,使用默认值\n# 不设置 auth_token 时,Codex 会使用 ChatGPT 登录或 OPENAI_API_KEY 环境变量\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 中转站配置示例\n# 只需配置 base_url 和 auth_token,其他参数在 Codex 内部修改\n# ═══════════════════════════════════════════════════════════════\n\n[duckcoding]\ndescription = \"DuckCoding 中转站\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nenabled = true\n\n[88code]\ndescription = \"88Code 中转站\"\nbase_url = \"https://www.88code.ai/openai/v1\"\nauth_token = \"sk-your-api-key\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# DeepSeek Responses API\n# 仅为占位符。请在 ccr-ui 中替换它;保存后真实密钥由\n# runtime secret store 单独托管,不会留在 profiles.toml。\n# ═══════════════════════════════════════════════════════════════\n[deepseek]\ndescription = \"DeepSeek Responses API\"\nbase_url = \"https://api.deepseek.com/\"\nauth_token = \"\"\nmodel = \"deepseek-v4-flash\"\nprovider = \"deepseek\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nauth_mode = \"provider_bearer_token\"\nmodel_catalog_json = \"~/.codex/models.json\"\nmodel_reasoning_effort = \"high\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 自定义中转站模板\n# ═══════════════════════════════════════════════════════════════\n# [custom]\n# description = \"自定义中转站\"\n# base_url = \"https://your-proxy-url/v1\"\n# auth_token = \"sk-your-token\"\n# enabled = true\n"}, "a3b063a168a45f73de895196d0088bb0eee76689": {"t": 1785750487.9260688, "n": 1918, "h": "36a028fcd1179d2b", "c": "# Codex 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ⚠️ 注意:CCR 使用兼容 CCS 的 profiles.toml 格式(包含 default_config/current_config/settings)\ndefault_config = \"default\"\ncurrent_config = \"\"\n\n\n# ═══════════════════════════════════════════════════════════════\n# OpenAI Codex 官方(使用 ChatGPT Plus/Pro 订阅或 API Key)\n# 切换到此配置时使用官方服务\n# ═══════════════════════════════════════════════════════════════\n[default]\ndescription = \"OpenAI Codex Official\"\n# 官方服务不需要设置 base_url,使用默认值\n# 不设置 auth_token 时,Codex 会使用 ChatGPT 登录或 OPENAI_API_KEY 环境变量\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 中转站配置示例\n# 只需配置 base_url 和 auth_token,其他参数在 Codex 内部修改\n# ═══════════════════════════════════════════════════════════════\n\n[duckcoding]\ndescription = \"DuckCoding 中转站\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nenabled = true\n\n[88code]\ndescription = \"88Code 中转站\"\nbase_url = \"https://www.88code.ai/openai/v1\"\nauth_token = \"sk-your-api-key\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# DeepSeek Responses API\n# 仅为占位符。请在 ccr-ui 中替换它;保存后真实密钥由\n# runtime secret store 单独托管,不会留在 profiles.toml。\n# ═══════════════════════════════════════════════════════════════\n[deepseek]\ndescription = \"DeepSeek Responses API\"\nbase_url = \"https://api.deepseek.com/\"\nauth_token = \"\"\nmodel = \"deepseek-v4-flash\"\nprovider = \"deepseek\"\nprovider_type = \"third_party_model\"\nwire_api = \"responses\"\nauth_mode = \"provider_bearer_token\"\nmodel_catalog_json = \"~/.codex/models.json\"\nmodel_reasoning_effort = \"high\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 自定义中转站模板\n# ═══════════════════════════════════════════════════════════════\n# [custom]\n# description = \"自定义中转站\"\n# base_url = \"https://your-proxy-url/v1\"\n# auth_token = \"sk-your-token\"\n# enabled = true\n"}, "c06dad5786fe7f991910b4898f9e0aae6d7f8b26": {"t": 1785750489.1504714, "n": 1301, "h": "35a4c9e5e943d87e", "c": "# Codex 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ⚠️ 注意:CCR 使用兼容 CCS 的 profiles.toml 格式(包含 default_config/current_config/settings)\ndefault_config = \"default\"\ncurrent_config = \"\"\n\n\n# ═══════════════════════════════════════════════════════════════\n# OpenAI Codex 官方(使用 ChatGPT Plus/Pro 订阅或 API Key)\n# 切换到此配置时使用官方服务\n# ═══════════════════════════════════════════════════════════════\n[default]\ndescription = \"OpenAI Codex Official\"\n# 官方服务不需要设置 base_url,使用默认值\n# 不设置 auth_token 时,Codex 会使用 ChatGPT 登录或 OPENAI_API_KEY 环境变量\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 中转站配置示例\n# 只需配置 base_url 和 auth_token,其他参数在 Codex 内部修改\n# ═══════════════════════════════════════════════════════════════\n\n[duckcoding]\ndescription = \"DuckCoding 中转站\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nenabled = true\n\n[88code]\ndescription = \"88Code 中转站\"\nbase_url = \"https://www.88code.ai/openai/v1\"\nauth_token = \"sk-your-api-key\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 自定义中转站模板\n# ═══════════════════════════════════════════════════════════════\n# [custom]\n# description = \"自定义中转站\"\n# base_url = \"https://your-proxy-url/v1\"\n# auth_token = \"sk-your-token\"\n# enabled = true\n"}, "b5278ac548127613ffa58eec2c770713f8e5528e": {"t": 1785750490.3714046, "n": 1323, "h": "b4702a100466930c", "c": "# Codex 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ⚠️ 注意:CCR 使用兼容 CCS 的 profiles.toml 格式(包含 default_config/current_config/settings)\ndefault_config = \"default\"\ncurrent_config = \"default\"\n\n\n# ═══════════════════════════════════════════════════════════════\n# OpenAI Codex 官方(使用 ChatGPT Plus/Pro 订阅或 API Key)\n# 切换到此配置时使用官方服务\n# ═══════════════════════════════════════════════════════════════\n[default]\ndescription = \"OpenAI Codex Official\"\n# 官方服务不需要设置 base_url,使用默认值\n# auth_token 可以留空,Codex 会使用 ChatGPT 登录或 OPENAI_API_KEY 环境变量\nauth_token = \"\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 中转站配置示例\n# 只需配置 base_url 和 auth_token,其他参数在 Codex 内部修改\n# ═══════════════════════════════════════════════════════════════\n\n[duckcoding]\ndescription = \"DuckCoding 中转站\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nenabled = true\n\n[88code]\ndescription = \"88Code 中转站\"\nbase_url = \"https://www.88code.ai/openai/v1\"\nauth_token = \"sk-your-api-key\"\nenabled = true\n\n\n# ═══════════════════════════════════════════════════════════════\n# 自定义中转站模板\n# ═══════════════════════════════════════════════════════════════\n# [custom]\n# description = \"自定义中转站\"\n# base_url = \"https://your-proxy-url/v1\"\n# auth_token = \"sk-your-token\"\n# enabled = true\n"}, "2ef827d8bf4b6a2c15ac82fe8c87cc5f74cde665": {"t": 1785750491.7516758, "n": 3928, "h": "b3e9eecaaa8b0c2d", "c": "# Codex (GitHub Copilot) 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ⚠️ 注意:CCR 使用兼容 CCS 的 profiles.toml 格式(包含 default_config/current_config/settings)\ndefault_config = \"duckcoding\"\ncurrent_config = \"duckcoding\"\n\n[settings]\nskip_confirmation = false\n\n# ═══════════════════════════════════════════════════════════════\n# GitHub Copilot 官方\n# ═══════════════════════════════════════════════════════════════\n[github]\ndescription = \"GitHub Copilot Official\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...your-github-token\"\nmodel = \"gpt-4\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub\"\nprovider_type = \"official_relay\"\napi_mode = \"github\"\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# Copilot Enterprise\n# ═══════════════════════════════════════════════════════════════\n[github_enterprise]\ndescription = \"GitHub Copilot Enterprise\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...enterprise-token\"\nmodel = \"gpt-4-turbo\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub Enterprise\"\nprovider_type = \"official_relay\"\napi_mode = \"github\"\naccount = \"enterprise@company.com\"\ntags = [\"enterprise\", \"production\"]\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# Codex 转发服务示例\n# ═══════════════════════════════════════════════════════════════\n[codex_relay]\ndescription = \"OpenAI 兼容转发服务(示例)\"\nbase_url = \"https://your-openai-compatible.com/v1\"\nauth_token = \"sk-your-api-key\"\nmodel = \"gpt-5.1-codex\"\nprovider = \"custom\"\nprovider_type = \"official_relay\"\napi_mode = \"custom\"\nwire_api = \"responses\"\nenv_key = \"CUSTOM_API_KEY\"\nrequires_openai_auth = true\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# DuckCoding 示例(与你截图一致)\n# ═══════════════════════════════════════════════════════════════\n[duckcoding]\ndescription = \"DuckCoding (OpenAI 兼容) - gpt-5.1-codex\"\nbase_url = \"https://jp.duckcoding.com/v1\"\nauth_token = \"sk-...your-duckcoding-codex-token\"\nmodel = \"gpt-5.1-codex\"\nprovider = \"duckcoding\"\nprovider_type = \"official_relay\"\napi_mode = \"custom\"\nwire_api = \"responses\"\nenv_key = \"DUCKCODING_API_KEY\"\nrequires_openai_auth = true\napproval_policy = \"on-request\"\nsandbox_mode = \"workspace-write\"\nmodel_reasoning_effort = \"high\"\nnetwork_access = \"enabled\"\ndisable_response_storage = true\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# 开发/测试环境\n# ═══════════════════════════════════════════════════════════════\n[codex_dev]\ndescription = \"Codex Development Environment\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...dev-token\"\nmodel = \"gpt-3.5-turbo\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub Dev\"\nprovider_type = \"official_relay\"\napi_mode = \"github\"\naccount = \"dev@example.com\"\ntags = [\"development\", \"testing\"]\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# 已禁用的配置示例\n# ═══════════════════════════════════════════════════════════════\n[codex_old]\ndescription = \"旧版 Codex 配置(已禁用)\"\nbase_url = \"https://api.old-service.com\"\nauth_token = \"old-token\"\nmodel = \"codex-cushman-001\"\nprovider = \"Old Codex\"\ntags = [\"deprecated\"]\nusage_count = 28\nenabled = false\n\n# ═══════════════════════════════════════════════════════════════\n# 字段说明\n# ═══════════════════════════════════════════════════════════════\n# description - 配置描述(可选)\n# base_url - API 基础 URL(必填)\n# auth_token - GitHub Token 或其他认证令牌(必填)\n# model - 默认模型(必填)\n# 可选值: gpt-4, gpt-4-turbo, gpt-3.5-turbo\n# small_fast_model- 快速模型(可选)\n# provider - 提供商名称(可选)\n# provider_type - 提供商类型(可选:official_relay, third_party_model)\n# account - 账号标识(可选)\n# tags - 标签列表(可选)\n# usage_count - 使用次数(自动追踪,默认 0)\n# enabled - 是否启用(默认 true)\n"}, "f3cf802c303c95c3ff77a5a340b2f633d450fa79": {"t": 1785750493.2372386, "n": 2918, "h": "31f00cea2167ff52", "c": "# Codex (GitHub Copilot) 配置示例\n# 适用于 Unified 模式下的平台配置\n# 路径: ~/.ccr/platforms/codex/profiles.toml\n\n# ═══════════════════════════════════════════════════════════════\n# GitHub Copilot 官方\n# ═══════════════════════════════════════════════════════════════\n[github]\ndescription = \"GitHub Copilot Official\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...your-github-token\"\nmodel = \"gpt-4\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub\"\nprovider_type = \"official_relay\"\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# Copilot Enterprise\n# ═══════════════════════════════════════════════════════════════\n[github_enterprise]\ndescription = \"GitHub Copilot Enterprise\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...enterprise-token\"\nmodel = \"gpt-4-turbo\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub Enterprise\"\nprovider_type = \"official_relay\"\naccount = \"enterprise@company.com\"\ntags = [\"enterprise\", \"production\"]\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# Codex 转发服务示例\n# ═══════════════════════════════════════════════════════════════\n[codex_relay]\ndescription = \"Codex API 转发服务\"\nbase_url = \"https://your-codex-relay.com/v1\"\nauth_token = \"relay-token-here\"\nmodel = \"gpt-4\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"Codex Relay\"\nprovider_type = \"official_relay\"\naccount = \"relay-user\"\ntags = [\"relay\", \"backup\"]\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# 开发/测试环境\n# ═══════════════════════════════════════════════════════════════\n[codex_dev]\ndescription = \"Codex Development Environment\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_...dev-token\"\nmodel = \"gpt-3.5-turbo\"\nsmall_fast_model = \"gpt-3.5-turbo\"\nprovider = \"GitHub Dev\"\nprovider_type = \"official_relay\"\naccount = \"dev@example.com\"\ntags = [\"development\", \"testing\"]\nusage_count = 0\nenabled = true\n\n# ═══════════════════════════════════════════════════════════════\n# 已禁用的配置示例\n# ═══════════════════════════════════════════════════════════════\n[codex_old]\ndescription = \"旧版 Codex 配置(已禁用)\"\nbase_url = \"https://api.old-service.com\"\nauth_token = \"old-token\"\nmodel = \"codex-cushman-001\"\nprovider = \"Old Codex\"\ntags = [\"deprecated\"]\nusage_count = 28\nenabled = false\n\n# ═══════════════════════════════════════════════════════════════\n# 字段说明\n# ═══════════════════════════════════════════════════════════════\n# description - 配置描述(可选)\n# base_url - API 基础 URL(必填)\n# auth_token - GitHub Token 或其他认证令牌(必填)\n# model - 默认模型(必填)\n# 可选值: gpt-4, gpt-4-turbo, gpt-3.5-turbo\n# small_fast_model- 快速模型(可选)\n# provider - 提供商名称(可选)\n# provider_type - 提供商类型(可选:official_relay, third_party_model)\n# account - 账号标识(可选)\n# tags - 标签列表(可选)\n# usage_count - 使用次数(自动追踪,默认 0)\n# enabled - 是否启用(默认 true)\n"}, "c9e0e9ce7109f57e9116d09d21aeaf7bbf77fa14": {"t": 1785750496.5102293, "n": 898, "h": "848523f9318d099e", "c": "default_config = \"packycode\"\ncurrent_config = \"packycode\"\n\n[settings]\nskip_confirmation = false\n\n# 自定义 Codex API:PackyCode 中转\n[packycode]\ndescription = \"PackyCode Relay\"\nprovider = \"packycode\"\nbase_url = \"https://www.packyapi.com/v1\"\nauth_token = \"sk-packy-***\"\nmodel = \"gpt-4.1-mini\"\n# Codex 专属字段\nwire_api = \"responses\"\nenv_key = \"PACKYCODE_API_KEY\"\nrequires_openai_auth = true\napproval_policy = \"read-only\"\nsandbox_mode = \"workspace-write\"\n\n# 自定义 Codex API:GLM Coding\n[glm_coding]\ndescription = \"GLM Coding API\"\nprovider = \"glm\"\nbase_url = \"https://open.bigmodel.cn/api/coding/paas/v4\"\nauth_token = \"glm-***\"\nmodel = \"GLM-4.6\"\nwire_api = \"chat\"\nrequires_openai_auth = false\nmodel_reasoning_effort = \"medium\"\n\n# GitHub Copilot CLI 兼容配置(仍然受支持)\n[github]\ndescription = \"GitHub Copilot Official\"\nprovider = \"github\"\nbase_url = \"https://api.github.com/copilot\"\nauth_token = \"ghp_***\"\nmodel = \"gpt-4.1\"\n"}}}}