config conflicts with official documentation, and automatic model list retrieval fails - Codex
Quick fix
Update config.toml to match the official specification and set ARK_API_KEY. Codex works again, but automatic model retrieval still needs CC Switch support.
Symptom
Section titled “Symptom”手动按官方文档修正后 Codex 可正常使用,但 CC Switch 的自动拉取模型列表功能仍然不通。Codex works normally after manually applying the corrections from the official documentation, but automatic model list retrieval in CC Switch still fails.
The 火山引擎 Agent Plan preset in CC Switch 3.19.2 reused a generic template, producing a provider identifier, TOML section, name, and authentication method that conflict with the official specification. The template uses `requires_openai_auth = true`, while the official configuration requires authentication through `env_key = "ARK_API_KEY"` and enabling `model_supports_reasoning_summaries`.
These are two related issues that cannot both be fully resolved by the same change. After manually correcting `config.toml` and setting `ARK_API_KEY`, the Codex desktop app works normally. However, CC Switch retrieves models automatically from `{base_url}/models`, and this Agent Plan API endpoint returns 404. The official `ListArkAgentPlanModel` uses IAM HMAC-SHA256 signing and cannot directly use the Agent Plan Bearer Token, so automatic retrieval still requires separate CC Switch adaptation.
Change the 火山引擎 Agent Plan provider configuration to the format shown in the official documentation, and replace `<Model_Name>` with the actual model name.
config.toml model_provider = "custom"model = "ark-code-latest"model_reasoning_effort = "high"disable_response_storage = truemodel = "<Model_Name>"model_provider = "volcengine-agent-plan"model_supports_reasoning_summaries = true[model_providers.custom]name = "ark_agentplan"[model_providers.volcengine-agent-plan]name = "volcengine-agent-plan"base_url = "https://ark.cn-beijing.volces.com/api/plan/v3"env_key = "ARK_API_KEY"wire_api = "responses"requires_openai_auth = trueSet the `ARK_API_KEY` environment variable. The Issue report confirms that the Codex desktop app works normally after correcting the configuration.
Do not treat the configuration correction as a complete fix for automatic model listing. The Agent Plan `/models` endpoint returns 404, so dedicated CC Switch support for its model query method is still required.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 2 real issues
(No FAQ yet)
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.