Fix Coding Plan issues fast
Important resources
- Coding Plan page: Manage your subscription and view usage on the Coding Plan page
- API Keys page: View and reset your API keys on the API Keys page
- Supported models: See the full list of models
- Setup guides: Configuration instructions for Claude Code, OpenCode, OpenClaw, and more
Start here: 60-second diagnosis
If your tool is not working and you see errors like 401, 403, 404, invalid access token, invalid api-key, quota exceeded, or connection failures, check these first:
- API key: Must start with
sk-sp-, notsk- - Base URL: Must contain
coding - Tool type: Coding Plan works only in interactive coding tools
- Quota: Check whether your 5-hour, weekly, or monthly quota is exhausted
- Updated config: Restart the tool after updating the API key or base URL
Most common questions
Why am I still billed after subscribing?
If you still see pay-as-you-go charges after subscribing, your tool is likely using the wrong API key, base URL, or cached credentials.
Check in order:
- Your API key starts with
sk-sp- - Your base URL uses
coding-intl.dashscope.aliyuncs.com - Your tool is not falling back to old general credentials
- You restarted the tool after changing the configuration
Which API key and base URL should I use?
If you are unsure about endpoint setup, key format, or whether dashscope-intl can be reused, use this rule: Coding Plan requires a plan-specific key plus a coding endpoint.
Use a plan-specific key and a coding base URL:
- API key:
sk-sp-xxxxx - OpenAI-compatible:
https://coding-intl.dashscope.aliyuncs.com/v1 - Anthropic-compatible:
https://coding-intl.dashscope.aliyuncs.com/apps/anthropic
dashscope-intl URLs do not work with Coding Plan keys.
I got 401 or 403. Is my API key invalid?
If you see 401 invalid access token, HTTP 401: Incorrect API key, or 403 invalid api-key, the problem is usually a wrong key type, an expired subscription, a malformed key, or a key and URL mismatch.
Check these points:
- Confirm the key starts with
sk-sp- - Re-copy the key to remove hidden spaces or line breaks
- Confirm your subscription is active
- Make sure the base URL contains
coding
401 invalid access tokenmeans wrong key type, expired subscription, or malformed key403 invalid api-keymeans you are using a Coding Plan key with a non-Coding Plan URL
Why do I get 404 or connection errors?
If you get 404 status code (no body), endpoint not found, or connection errors, the base URL path is usually wrong for your tool.
Use the correct path for your protocol:
- Anthropic-compatible tools use
/apps/anthropicor/apps/anthropic/v1 - OpenAI-compatible tools use
/v1
coding-intl.dashscope.aliyuncs.com.
Why does the tool say quota exceeded?
If you see hour allocated quota exceeded, week allocated quota exceeded, or month allocated quota exceeded, your request quota has been exhausted.
Coding Plan uses request-based limits:
- 6,000 requests per 5 hours
- 45,000 requests per week
- 90,000 requests per month
- 5-hour quota: 5 hours after exhaustion
- Weekly quota: Monday 00:00:00 (UTC+8)
- Monthly quota: same day next month at 00:00:00 (UTC+8)
Can I use Coding Plan via cURL, Postman, Dify?
No. Coding Plan is for interactive coding tools such as Claude Code, OpenCode, OpenClaw, Cursor, Cline, and Qwen Code.
It is not supported for generic API testing tools or server-side scripts.
Common errors & fixes
How to handle input length limits?
If you get 400 InvalidParameter: Range of input length should be [1, xxx], your context or request exceeds model limits.
Try these fixes:
- Create a new session
- Switch to a model with a longer context window
- In OpenCode, configure
limitto restrict context length
Why is my model "not supported"?
If you get model 'xxx' is not supported, the model ID is usually incorrect, case-sensitive, or copied with extra spaces.
Check these points:
- Use the exact model name from Overview
- Remove any leading or trailing spaces
- Verify capitalization exactly as documented
How do I enable thinking mode?
If you want reasoning or thinking mode, setup differs by tool.
- Claude Code
- OpenCode
- Qwen Code
- OpenClaw
Type
/config, go to Thinking mode, and set it to true.To view the thinking process, press Ctrl + O.Why is my ModelScope token rejected?
If you see Authentication failed, please make sure that a valid ModelScope token is supplied., your tool is connected to ModelScope instead of Coding Plan.
ModelScope tokens (ms-xxx) and Qwen Cloud keys (sk-xxx or sk-sp-xxx) are not interchangeable.
For Coding Plan, follow your tool's setup guide. For ModelScope, get tokens from modelscope.ai.
Why is my plan restricted to Coding Agents?
If you see Coding Plan is currently only available for Coding Agents, your request source is unsupported.
Coding Plan is for interactive coding tools only. It is not supported in curl, Postman, Dify, or custom scripts.
Claude Code
Why am I prompted to migrate from npm?
If you see Claude Code has switched from npm to native installer., run:
Why is Claude Code connection failing?
If startup fails with Unable to connect to Anthropic services or ERR_BAD_REQUEST, Claude onboarding likely did not complete in your environment.
Claude Code tries to connect to api.anthropic.com on first startup, which fails in regions where Claude is unavailable.
Fix it like this:
- Add
"hasCompletedOnboarding": trueas a top-level field in~/.claude.json:
You can also use Qwen Code to add this automatically. Run
qwen and send: Please add "hasCompletedOnboarding": true as a top-level field in ~/.claude.json without overwriting existing content.- Save the file
- Restart Claude Code with
claude
OpenCode
How to resolve "Request Entity Too Large"?
If you see Request Entity Too Large, your request payload or context is too large.
Try these fixes:
- Run
/newfor a new conversation - Run
/compactto compress context - Update OpenCode to version 1.2.16 or later
How to fix "Thinking budget" errors?
If you get The thinking_budget parameter must be a positive integer and not greater than 81920., your budgetTokens value is too large for the selected model.
| Model | Max thinking budget |
|---|---|
| qwen3.5-plus | 81,920 |
| qwen3-max-2026-01-23 | 81,920 |
| kimi-k2.5 | 81,920 |
| glm-5 | 32,768 |
| glm-4.7 | 32,768 |
| MiniMax-M2.5 | 32,768 (chain-of-thought + response) |
| qwen3-coder-next | Not supported |
| qwen3-coder-plus | Not supported |
opencode.json so options.thinking.budgetTokens stays within the limit. For unsupported models, remove the options.thinking configuration.
How do I fix max_tokens exceeded in OpenCode?
If you get InternalError.Algo.InvalidParameter: Range of max_tokens should be [1, xxxx]., your max_tokens or limit setting is too large.
Adjust the limit value in opencode.json. For more details, see OpenCode.
Cursor
Why can't I use Coding Plan models in Cursor?
If you see:
The model xxx does not work with your current plan or API keyNamed models unavailable. Free plans can only use Auto. Switch to Auto or upgrade plans to continue
Qoder
Why can't I find the Model option in Qoder?
Sign in first. The Model option is only available after you log in to your Qoder account.
OpenClaw
Why is OpenClaw calling unexpected models?
If OpenClaw is making unexpected model calls, model restrictions are usually missing from the default configuration.
Declare the allowed models in ~/.openclaw/openclaw.json. See OpenClaw for the expected setup.
Why does OpenClaw connect but hang?
If OpenClaw shows Connected but keeps spinning or never returns a response, the issue is usually a local proxy or stale cached model config.
Common causes:
- A local proxy is intercepting requests to
coding-intl.dashscope.aliyuncs.com - An incorrect base URL is cached in
~/.openclaw/agents/main/agent/models.json
- Disable the proxy or make sure it can access the domain
- Delete the cache file and restart OpenClaw
How to fix OAuth token refresh failures?
If you see Agent failed before reply: OAuth token refresh failed., OpenClaw is using a third-party OAuth service instead of Coding Plan.
Fix it like this:
- Set up Coding Plan in OpenClaw using the setup guide
- Clear old credentials
Why does OpenClaw say Unknown model?
If you see Agent failed before reply: Unknown model., the provider key name, model prefix, or old config is usually wrong.
Check in order:
models.providersincludes aqwen-cloudkeyagents.defaults.model.primarystarts withqwen-cloud/- Old providers like
qwen-portalhave been removed
How to handle API rate limits?
If you see API rate limit reached., the issue can be a configuration mismatch, exhausted quota, or an API key problem.
Check in order:
- Verify that the base URL and provider setup match the OpenClaw guide
- Check usage on the Coding Plan page
- Reset your API key on the API Keys page if needed
Why does model discovery fail in OpenClaw?
If you see Failed to discover Alibaba Cloud models: TimeoutError or 404 Not Found, this does not affect normal use.
To hide the message, remove alibaba-cloud:default from ~/.openclaw/agents/main/agent/auth-profiles.json so it looks like this:
How do I fix auth.profiles errors in OpenClaw?
If you see errors like:
auth.profiles.qwen-portal:default.mode: Invalid inputauth.profiles.qwen-portal:default: Unrecognized key: "apiKey"
auth.profiles entries. API keys belong in models.providers.qwen-cloud.apiKey, not in auth.
How do I view models configured for Coding Plan in OpenClaw?
Run openclaw tui, then type /model to list and select models.
Why do I get "HTTP 401: Incorrect API key provided." in OpenClaw?
Possible causes:
- Your API key is invalid, expired, empty, incorrectly formatted, or mismatched with the endpoint environment. Confirm it is the Coding Plan-specific key. Copy it fully without spaces. Confirm your subscription is active.
-
Stale cache. Delete
providers.qwen-cloudfrom~/.openclaw/agents/main/agent/models.jsonand restart OpenClaw.
How do I add Coding Plan models without losing OpenClaw config?
Do not replace the entire file — this overwrites custom settings. Make partial edits instead.
Two methods:
- OpenClaw works: Enter the instruction below in an OpenClaw chat.
- OpenClaw has no model or doesn't respond: Install Qwen Code, start it, and enter the instruction below. Instruction (replace YOUR_API_KEY with your actual API key):
Verify with
openclaw models status in a new session. Restart existing sessions after restarting the gateway.Billing and quota
When do my quotas reset?
Coding Plan has three quota windows:
| Quota Type | Limit | Reset Time |
|---|---|---|
| 5-hour limit | 6,000 requests | 5 hours after exhaustion |
| Weekly limit | 45,000 requests | Monday 00:00:00 (UTC+8) |
| Monthly limit | 90,000 requests | Same day next month, 00:00:00 (UTC+8) |
hour allocated quota exceeded, week allocated quota exceeded, or month allocated quota exceeded, wait for the corresponding reset time.
Does Coding Plan auto-switch to PAYG?
No. When quota is exhausted, API calls fail directly. There is no automatic fallback to pay-as-you-go.
When does my subscription expire?
Your subscription starts at activation and expires at 23:59:59 (UTC+8) on the same date next month.
If the next month does not have that date, the subscription expires on the last day of that month.
Example:
- Activate on February 3
- Expires on March 3
How can I view my usage?
Check the Coding Plan page for overall usage.
Per-model and token-level details are not available.
Can I buy an annual plan?
No. Coding Plan is monthly only.
Is there a free trial for Coding Plan?
No. Coding Plan does not participate in Qwen Cloud's free trial program.
Can I renew early?
Yes. If you renew before expiration, the new term extends from your current expiration date.
Example:
- First activation: March 15 → expires April 15
- Renew on April 10 → extends to May 15
Can I use coupons when I renew?
Yes. General-purpose coupons are accepted for renewal.
Will I get reminders before my subscription expires?
Yes. Automatic reminders are sent 7, 3, and 1 day before expiration through in-site messages, email, SMS, and phone.
Product features
Which models are supported by Coding Plan?
Recommended models:
- qwen3.5-plus (vision)
- kimi-k2.5 (vision)
- glm-5
- MiniMax-M2.5
- qwen3-max-2026-01-23
- qwen3-coder-next
- qwen3-coder-plus
- glm-4.7
What are the model context limits?
| Model | Context window (tokens) |
|---|---|
| qwen3.5-plus | 1,000,000 |
| qwen3-coder-plus | 1,000,000 |
| qwen3-max-2026-01-23 | 262,144 |
| qwen3-coder-next | 262,144 |
| kimi-k2.5 | 262,144 |
| MiniMax-M2.5 | 196,608 |
| glm-5 | 202,752 |
| glm-4.7 | 202,752 |
- Use models with longer context windows, such as qwen3.5-plus or qwen3-coder-plus
- Start tools in a specific project folder
- Break large tasks into smaller subtasks
- Use precise, focused instructions
How do I reset or manage my API key?
Use the Reset button on the API Keys page to reset your key.
Keep these rules in mind:
- After reset, update the key in all tools
- If you resubscribe after expiration, the key changes
- Coding Plan supports one key per subscription
Can I manage multiple API keys/IP lists?
No. Coding Plan does not support multiple keys or an IP allowlist.
Can I have multiple active subscriptions?
No. Each account can have one active Coding Plan subscription.
Can multiple people share one key?
No. Coding Plan is for personal use only.
API keys cannot be shared. Public exposure or account sharing may result in automatic key suspension.
Which tools are compatible with Coding Plan?
Coding Plan works with interactive coding tools that support OpenAI-compatible or Anthropic-compatible APIs.
Examples include:
- Claude Code
- OpenCode
- OpenClaw
- Cursor
- Cline
- Qwen Code
- VS Code extensions that support OpenAI or Anthropic APIs
Are the models full-featured or quantized?
All supported models in Coding Plan are full-featured, unquantized versions.
What should I do if I see data_inspection_failed?
If you see data_inspection_failed, refer to Troubleshooting data inspection errors.