modelstudio profile 把 Codex 模型流量发送到 token-plan.ap-southeast-1.maas.aliyuncs.com

modelstudio profile 把 Codex 模型流量发送到 token-plan.ap-southeast-1.maas.aliyuncs.com。供应商表用 env_key 读 DASHSCOPE_API_KEY。模型写 qwen3.8-max。不要 wire_api = chat。

export DASHSCOPE_API_KEY=YOUR_DASHSCOPE_API_KEY

# ~/.codex/config.toml
[model_providers.Model_Studio_Token_Plan]
name = "Model_Studio_Token_Plan"
base_url = "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"
env_key = "DASHSCOPE_API_KEY"
wire_api = "responses"

# ~/.codex/modelstudio.config.toml
model_provider = "Model_Studio_Token_Plan"
model = "qwen3.8-max"
model_reasoning_effort = "xhigh"
model_context_window = 983616

codex --profile modelstudio

# 中国站 Token Plan:
# base_url = "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"

# 按量才把 WorkspaceId 写进主机:
# base_url = "https://YOUR_WORKSPACE_ID.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"

# 不要:
# wire_api = "chat"
# [profiles.modelstudio]
# openai_base_url = "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"
# base_url = "https://coding-intl.dashscope.aliyuncs.com/v1"
# plugin add modelstudio@
# npm install -g @openai/codex@0.80.0