Token Plan (Team Edition)
Best when one or more assigned users need Credits-based access across regular coding and agent sessions without Coding Plan's rolling call windows.
Tool + model pairing
Open-source, self-hosted personal AI assistant for coding and local agent workflows.
OpenClaw is a strong fit when you want a self-hosted assistant that can work across a repository, terminal, browser, and connected channels. Alibaba documents direct support for pay-as-you-go, Coding Plan, and Token Plan access.
Choose the right access route
Choose Coding Plan for one person's interactive development sessions. Choose Token Plan when a solo founder or team needs Credits-based usage, multiple seats, or steadier day-to-day agent use. Stop the gateway when you are not using it if you do not want heartbeat calls consuming plan usage.
Best when one or more assigned users need Credits-based access across regular coding and agent sessions without Coding Plan's rolling call windows.
Best for one developer using OpenClaw interactively and preferring a fixed monthly request allowance.
Use for backends, scheduled automation, shared services, or any workload that is not an assigned user's interactive tool session.
Safe configuration pattern
The example is deliberately redacted. Replace placeholders only on your device and never paste a real API key into Nfero.
~/.openclaw/openclaw.json{
"models": {
"providers": {
"bailian": {
"baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
"apiKey": "YOUR_TOKEN_PLAN_API_KEY",
"api": "openai-completions",
"models": [{ "id": "qwen3.7-plus", "name": "Qwen3.7 Plus" }]
}
}
},
"agents": {
"defaults": { "model": { "primary": "bailian/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.
Balanced default with reasoning, vision understanding, and tool-oriented workflows.
Alibaba recommends it for large codebases and long-context agent work.
Lower-consumption option for lightweight routing, summaries, and quick repository questions.
Common problems
The key is incomplete, revoked, from another plan, or paired with the wrong plan/region endpoint.
Copy the dedicated key again and pair it only with its documented base URL. Remove leading/trailing spaces and restart the gateway.
The provider key, `bailian/` model prefix, and model list do not agree, or the model is not on the current allowlist.
Ensure `models.providers.bailian` exists, the primary model uses `bailian/<model-id>`, and the exact model ID is listed under that provider.
OpenClaw is still routing through an older OAuth provider or cached model configuration.
Back up the files, remove obsolete OAuth/provider records, clear the stale model cache, and restart OpenClaw as described in Alibaba's FAQ.
OpenClaw's gateway heartbeat can call the configured model periodically.
Stop the gateway while idle or increase `agents.defaults.heartbeat.every`; verify the change in the session logs.