通过 BytePlus ModelArk 连接模型服务
使用独立 profile 连接 Coding Plan 的 Responses 入口,通过 ARK_API_KEY 认证。/api/v3 按量入口另行计费,需使用 /api/coding/v3。
export ARK_API_KEY=YOUR_ARK_API_KEY
# ~/.codex/config.toml
[model_providers.byteplus-coding-plan]
name = "byteplus-coding-plan"
base_url = "https://ark.ap-southeast.bytepluses.com/api/coding/v3"
env_key = "ARK_API_KEY"
wire_api = "responses"
# ~/.codex/byteplus.config.toml
model_provider = "byteplus-coding-plan"
model = "ark-code-latest"
model_supports_reasoning_summaries = true
model_reasoning_effort = "medium"
codex --profile byteplus
# 可选一键(只要 Codex,跑完改回独立 profile):
# npm install -g @byteplus/ark-cli
# arkcli helper
# 不要:
# base_url = "https://ark.ap-southeast.bytepluses.com/api/v3"
# base_url = "https://ark.ap-southeast.bytepluses.com/api/coding"
# [profiles.byteplus]
# openai_base_url = "https://ark.ap-southeast.bytepluses.com/api/coding/v3"
# plugin add byteplus@
# arkcli +connect