Token Plan (Team Edition)
Best for Credits-based usage, assigned seats, and teams that want Alibaba-hosted models inside an established Claude Code workflow.
Tool + model pairing
Terminal coding assistant commonly used for natural-language programming, code edits, debugging, and repo navigation.
Claude Code can use Alibaba-hosted models through Alibaba's Anthropic-compatible endpoint. The key detail is that the authentication token, base URL, and all default model aliases must point to the same Alibaba plan.
Choose the right access route
This is a clear fit if your team already works in Claude Code. Configure the Anthropic-compatible endpoint, complete the local onboarding flag, then verify `/status` before doing repository work.
Best for Credits-based usage, assigned seats, and teams that want Alibaba-hosted models inside an established Claude Code workflow.
Best for an individual developer using Claude Code interactively under a fixed monthly request allowance.
Required when Claude Code is only the development surface for a backend, automation, or service that will call Model Studio directly.
Safe configuration pattern
The example is deliberately redacted. Replace placeholders only on your device and never paste a real API key into Nfero.
~/.claude/settings.json{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_TOKEN_PLAN_API_KEY",
"ANTHROPIC_BASE_URL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
"ANTHROPIC_MODEL": "qwen3.7-plus",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.6-flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.7-plus",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.7-max",
"CLAUDE_CODE_SUBAGENT_MODEL": "qwen3.7-plus"
}
}Model 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.
Alibaba's current Coding Plan example and a strong general coding/reasoning default.
Flagship Token Plan choice for difficult reasoning and larger codebases.
Useful as the lower-cost default for lightweight subtasks under Token Plan.
Common problems
The Alibaba environment variables are missing, the terminal has not reloaded them, or onboarding is incomplete.
Set `hasCompletedOnboarding`, confirm `settings.json`, open a new terminal, and verify the Alibaba URL with `/status`.
The plan key and Anthropic-compatible base URL do not belong to the same subscription.
Pair the dedicated key with either the Token Plan or Coding Plan Anthropic endpoint—never mix the two.
One of Claude Code's primary, Haiku, Sonnet, Opus, or subagent aliases names a model outside the selected plan's allowlist.
Set every alias to an exact supported ID, then restart Claude Code.
Claude Code can scan files and make multiple model calls during one task.
Open it in the smallest relevant project directory, exclude irrelevant files, split the task, and start a fresh session when needed.