最好下载一个cc-switch。

        打开下面的界面,选择火山AgentPlan:

        添加完成后,输入key和base url

        接着,需要将config.toml中的两个地方进行修改:

        requires_openai_auth = false,从true改成false。
        env_key = "AI_API_KEY",这个就是你存放key的环境变量名称。

[model_providers]
[model_providers.custom]
name = "ark_agentplan"
base_url = "https://ark.cn-beijing.volces.com/api/coding/v3"
wire_api = "responses"
requires_openai_auth = false
env_key = "AI_API_KEY"

        然后打开Codex Cli,成功调用deepseek v4 pro。

        桌面版也是同时配置好了,只是不显示模型名称:

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐