OpenCode Coding Plan
There are many LLM vendors on the market today; overseas ones include Anthropic, Open AI, Grok, Gemini, etc., but accessing them is inconvenient now; domestic ones include DeepSeek, Qwen, ZLM, Minimax, etc.
When we use Claude Code to write code, the most expensive part is the token; overseas access is inconvenient and costly, while domestic ones now offer monthly plans, so for long-term use a monthly plan is more cost-effective.
This article introduces Alibaba Cloud Bailian's Coding Plan, a subscription service designed for AI coding tools. It integrates top LLMs such as Qwen, GLM, Kimi, and MiniMax, is compatible with mainstream AI coding assistants (such as OpenCode, Claude Code, OpenClaw, etc.), uses a fixed monthly fee model, costs far less than pay-as-you-go APIs, and completely eliminates the risk of arrears.
** Coding Plan core advantages:**
- One-click access to top models: No need to call the Bailian API yourself; use the strongest models directly in familiar coding tools.
- Extremely low cost: Fixed monthly fee (Lite ¥40/month, Pro ¥200/month), first-month limited-time discount only 7.9 yuan / 39.9 yuan.
- Safe and worry-free: Direct API connections are prohibited; only for use with interactive coding tools, avoiding abuse and ban risks.
- Image understanding support: qwen3.5-plus and kimi-k2.5 support uploading screenshots/design images to generate code directly.
Recommended model(Officially adapted):
- qwen3.5-plus (supports image understanding, recommended first choice)
- kimi-k2.5 (supports image understanding)
- glm-5
- MiniMax-M2.5
Coding Plan supports the following tools: Cursor, Claude Code, OpenClaw, OpenCode, Cline (VS Code extension), Kilo Code / Kilo CLI, Qwen Code, Codex, etc.
Subscribe to Ark Coding Plan
Visit Ark Coding Plan promotion, subscribe to a plan as needed; if usage is light the Lite version is enough, if usage is very heavy you can use the Pro version.
**Limited-time offer
Coding Plan/Agent Plan: first two months at 25% of original price
Event period: 2026.06.08-2026.08.07
Best value
Lite Plan
¥9.9
/month
Original price ¥40/month
Top choice for individual developers
DeepSeek, Kimi, GLM, Doubao, MiniMax
Pro Plan
¥49.9
/month
Original price ¥200/month
5x quota - advanced development needs
All Lite features + higher call quota
**Claude Code
**Cursor
**Windsurf
**Auto model switching
**Mainstream AI model support
**Activate discounted plan now
New purchases, upgrades, and renewals all eligible - limited slots - first come, first served
After successful purchase, click Create your API Key:

Then click the Create button:

Click the small eye icon below to see the API key; when you need it, just copy it:

Ark Coding Plan is an AI coding subscription service for developers, enabling efficient development, with the following core advantages:
- Rich models: Supports mainstream LLMs and Embedding models, covering popular series such as Doubao, DeepSeek, Kimi, GLM, MiniMax.
- Broad tool compatibility: Compatible with mainstream AI coding tools such as Claude Code, Cursor, Cline, OpenCode, Codex CLI, etc.
- Shared quota: Multiple tools share the plan quota, switch flexibly, adapting to different development scenarios.
- Flexible plans: Offers Lite / Pro tiers to meet light to heavy development needs.
- Stable and highly available: Multi-tenant isolation and resource scheduling guarantee stability and smoothness even at peak times.
The Base URL configured for different tools varies by compatible protocol:
- Tools compatible with Anthropic API protocol: https://ark.cn-beijing.volces.com/api/coding
- Tools compatible with OpenAI API protocol: https://ark.cn-beijing.volces.com/api/coding/v3
Note:Do not use https://ark.cn-beijing.volces.com/api/v3 : This Base URL will not consume your Coding Plan quota but will incur additional charges.
Configure OpenCode
Edit the OpenCode config file:
- macOS / Linux:
~/.config/opencode/opencode.json - Windows:
C:\Users\您的用户名\.config\opencode\opencode.json
Modify the config items
Please replace the following according to your actual situation:
:Get your API Keymodel: Replace with the model name you want to use
Specific models: doubao-seed-2.0-code, doubao-seed-2.0-pro, doubao-seed-2.0-lite, doubao-seed-code, minimax-m2.5, glm-4.7, deepseek-v3.2, kimi-k2.5.
The opencode.json config content is as follows, taking ark-code-latest as an example:
{
"$schema": "https://opencode.ai/config.json",
"model": "volcengine-plan/ark-code-latest",
"provider": {
"volcengine-plan": {
"npm": "@ai-sdk/openai-compatible",
"name": "Volcano Engine",
"options": {
"baseURL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"apiKey": ""
},
"models": {
"ark-code-latest": {
"name": "ark-code-latest",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"doubao-seed-code": {
"name": "doubao-seed-code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"glm-4.7": {
"name": "glm-4.7",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
}
},
"deepseek-v3.2": {
"name": "deepseek-v3.2",
"limit": {
"context": 128000,
"output": 4096
}
},
"doubao-seed-2.0-code": {
"name": "doubao-seed-2.0-code",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"doubao-seed-2.0-pro": {
"name": "doubao-seed-2.0-pro",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"doubao-seed-2.0-lite": {
"name": "doubao-seed-2.0-lite",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"minimax-m2.5": {
"name": "minimax-m2.5",
"limit": {
"context": 200000,
"output": 4096
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
}
},
"kimi-k2.5": {
"name": "kimi-k2.5",
"limit": {
"context": 256000,
"output": 4096
},
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
}
}
}
}
}
Note: two model names under the provider.volcengine-plan.models node must be consistent:
- Object key name
- name field value
Both must use the same Model Name; neither can be missing.
Enable image understanding (optional)
To enable model image recognition / multimodal input, add the following to the model config:
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
Get started
After completing configuration, start OpenCode:
opencode
Then enter:
/models
Select the configured model to start using.
For more information, refer to:https://www.volcengine.com/docs/82379/2188958
Subscribe to Alibaba Coding Plan
Coding Plan is basically too hard to grab and is being taken down; Alibaba has now switched to Token Plan; see:Alibaba Cloud Bailian Token Plan
You need to purchase the Bailian Coding Plan first:https://www.aliyun.com/benefit/scene/codingplan
If usage is very heavy you can use the Pro version, which is 5x the Lite version and supports the same models:
After purchasing the Coding Plan, you can go to the Coding Plan page to get the Coding Plan dedicated API Key (format sk-sp-xxxxx).
More widely used applications also have corresponding documentation:

Then configure one of the following Base URLs in the AI tool (varies by tool):
- Anthropic-compatible protocol: https://coding.dashscope.aliyuncs.com/apps/anthropic
- OpenAI-compatible protocol (usable by OpenClaw): https://coding.dashscope.aliyuncs.com/v1
Explanation:The Coding Plan dedicated API Key and Base URL are not interchangeable with Bailian pay-as-you-go API Key (sk-xxxxx) and Base URL (https://dashscope.aliyuncs.com/xxxxxx); do not mix them.
If you can't grab one, you can buy a resource pack directly, which is more cost-effective:https://cn.aliyun.com/benefit?from_alibabacloud=&userCode=i5mn5r7m
Configure Coding Plan in OpenCode
Enter /connect in the input box and click Enter.
In the **Connect a Provider ** list search box, enter alibaba to search, select Alibaba Coding Plan (China) and click Enter.

Enter the API Key we applied for and press Enter:

Then we can enter /model to view models supported by Coding Plan and select the one needed:

Interface settings
Set in the config file
Please create and open the config file opencode.json at the following path:
- macOS / Linux: ~/.config/opencode/opencode.json
- Windows: C:\\Users\\your_username.config\\opencode\\opencode.json
Write the following config into the file, key config items:
- baseURL: https://coding.dashscope.aliyuncs.com/apps/anthropic/v1, do not use the Bailian general address.
- apiKey: replace YOUR_API_KEY with Coding Plan dedicated API Key, format sk-sp-xxx.
** Note:** After saving the config file, please exit and restart OpenCode for the new config to take effect.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"bailian-coding-plan": {
"npm": "@ai-sdk/anthropic",
"name": "Model Studio Coding Plan",
"options": {
"baseURL": "https://coding.dashscope.aliyuncs.com/apps/anthropic/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"qwen3.5-plus": {
"name": "Qwen3.5 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
},
"limit": {
"context": 1000000,
"output": 65536
}
},
"qwen3-max-2026-01-23": {
"name": "Qwen3 Max 2026-01-23",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"limit": {
"context": 262144,
"output": 32768
}
},
"qwen3-coder-next": {
"name": "Qwen3 Coder Next",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"limit": {
"context": 262144,
"output": 65536
}
},
"qwen3-coder-plus": {
"name": "Qwen3 Coder Plus",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"limit": {
"context": 1000000,
"output": 65536
}
},
"MiniMax-M2.5": {
"name": "MiniMax M2.5",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
},
"limit": {
"context": 204800,
"output": 131072
}
},
"glm-5": {
"name": "GLM-5",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
},
"limit": {
"context": 202752,
"output": 16384
}
},
"glm-4.7": {
"name": "GLM-4.7",
"modalities": {
"input": ["text"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
},
"limit": {
"context": 202752,
"output": 16384
}
},
"kimi-k2.5": {
"name": "Kimi K2.5",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
},
"limit": {
"context": 262144,
"output": 32768
}
}
}
}
}
}
**Note:** budgetTokens is used to control the maximum Token budget for the model's thinking process; setting it too low may interrupt the model's thinking.
Use
Execute the following command in the terminal to enter OpenCode.
opencode
Enter /models in the command line, type Model Studio Coding Plan to search, and select a model to start using.


For more information, refer to:https://help.aliyun.com/zh/model-studio/opencode-coding-plan

