Token Plan (Team Edition)
Best with a current Codex release and qwen3.7-max, qwen3.7-plus, qwen3.6-plus, or qwen3.6-flash through the Responses API.
Tool + model pairing
Command-line programming tool from OpenAI that can sit in the same buyer conversation as Alibaba-compatible coding tools.
Codex can connect to Alibaba Model Studio through a custom provider in `~/.codex/config.toml`. Compatibility depends on both the model API and Codex version: Alibaba documents current Codex support through the Responses API for selected Qwen Token Plan models.
Choose the right access route
Use Token Plan with a current Codex release and a Responses-compatible Qwen model. Alibaba currently instructs Coding Plan users, and users choosing other Chat/Completions-only models, to install an older Codex version such as 0.80.0—review that tradeoff before subscribing for Codex alone.
Best with a current Codex release and qwen3.7-max, qwen3.7-plus, qwen3.6-plus, or qwen3.6-flash through the Responses API.
Alibaba's current guide says Coding Plan only supports Chat/Completions here and instructs Codex users to install an older release such as 0.80.0.
Use for production/API workloads or when a supported pay-as-you-go model and region better match your application requirements.
Safe configuration pattern
The example is deliberately redacted. Replace placeholders only on your device and never paste a real API key into Nfero.
~/.codex/config.tomlmodel_provider = "Model_Studio_Token_Plan"
model = "qwen3.7-plus"
[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 = "OPENAI_API_KEY"
wire_api = "responses"
# Set locally; never paste the real value into this file or Nfero:
# OPENAI_API_KEY=YOUR_TOKEN_PLAN_API_KEYModel pairings
Use this tool to run interactive coding, reasoning, review, and documentation tasks with each model. Confirm final model availability and exact plan support in Alibaba Cloud before production use.
Responses-compatible under Token Plan and a balanced current coding/reasoning route.
Responses-compatible Token Plan flagship for difficult reasoning and repository tasks.
Responses-compatible Token Plan alternative for long-context work.
Common problems
A third-party switcher's health-check request differs from the request Codex sends.
Test from Codex directly before rejecting the provider; the failed probe may not indicate an actual compatibility problem.
The chosen model only supports Chat/Completions, or the Codex version expects Responses.
Use a documented Responses-compatible Qwen model with current Codex, or follow Alibaba's older-version guidance for Chat/Completions-only routes.
`OPENAI_API_KEY` is not available in the new shell or belongs to another Alibaba billing route.
Set the dedicated plan key in the environment, open a new terminal, and pair it with that plan's base URL.
The custom provider is using a general Model Studio endpoint/key instead of the plan-specific pair.
Inspect `model_provider`, `base_url`, and the environment variable source before running another task.