Appearance
阿里云百炼 Coding Plan - 开源工具配置文档
面向个人开发者的固定月费订阅套餐,专为交互式编程工具设计,性价比极高。
核心配置信息
Base URL
| 接口协议 | Base URL | 适用工具 |
|---|---|---|
| Anthropic 兼容 | https://coding.dashscope.aliyuncs.com/apps/anthropic | Claude Code、OpenClaw(推荐) |
| OpenAI 兼容 | https://coding.dashscope.aliyuncs.com/compatible-mode/v1 | OpenCode、Cline、Kilo 等 |
API Key
- 格式:
sk-sp-xxxxx(sp = Subscription Plan) - 获取路径:百炼控制台 → Coding Plan → 专属 API Key
- 重要:此 Key 与通用百炼 API Key 不同,仅限 Coding Plan 使用
支持模型
| 模型 | Model ID | 定位 | 能力 |
|---|---|---|---|
| qwen3.6-plus | qwen3.6-plus | 主力模型 | 深度思考、代码生成、图文理解 |
| qwen3.6-flash | qwen3.6-flash | 轻量快速 | 快速响应、简单任务、图文理解 |
新用户优惠
- Lite 版:首月 ¥7.9
- Pro 版:首月 ¥39.9
快速验证(OpenAI 兼容)
bash
curl https://coding.dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Authorization: Bearer sk-sp-xxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.6-plus",
"messages": [{"role": "user", "content": "hello"}]
}'Claude Code
前置条件
- Node.js 18+
- Windows 需安装 Git for Windows 或 WSL
安装
bash
npm install -g @anthropic-ai/claude-code
claude --version跳过登录验证
macOS / Linux: ~/.claude.jsonWindows: C:\Users\<用户名>\.claude.json
json
{
"hasCompletedOnboarding": true
}配置 settings.json
macOS / Linux: ~/.claude/settings.jsonWindows: C:\Users\<用户名>\.claude\settings.json
json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-sp-xxxxx",
"ANTHROPIC_BASE_URL": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"ANTHROPIC_MODEL": "qwen3.6-plus",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.6-flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.6-plus",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.6-plus",
"CLAUDE_CODE_SUBAGENT_MODEL": "qwen3.6-plus"
}
}使用
bash
cd your-project
claude验证:输入 /status,确认 Base URL 和 Model 正确。
OpenClaw
前置条件
Node.js 22.19.0+
安装
macOS / Linux:
bash
curl -fsSL https://openclaw.ai/install.sh | bashWindows PowerShell:
powershell
iwr -useb https://openclaw.ai/install.ps1 | iex初始向导
| 配置项 | 建议选择 |
|---|---|
| I understand this is powerful... | Yes |
| Onboarding mode | QuickStart |
| Model/auth provider | Skip for now |
| Filter models by provider | All providers |
| Default model | Keep current |
| Select channel | Skip for now |
| Configure skills now? | No |
| Enable hooks? | 空格选中,回车下一步 |
| How do you want to hatch your bot? | Do this later |
配置 openclaw.json
配置文件:~/.openclaw/openclaw.json
json
{
"models": {
"mode": "merge",
"providers": {
"bailian-coding-plan": {
"baseUrl": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"apiKey": "sk-sp-xxxxx",
"api": "anthropic-messages",
"models": [
{
"id": "qwen3.6-plus",
"name": "qwen3.6-plus",
"reasoning": false,
"input": ["text", "image"],
"contextWindow": 1000000,
"maxTokens": 65536,
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"compat": { "thinkingFormat": "openai" }
},
{
"id": "qwen3.6-flash",
"name": "qwen3.6-flash",
"reasoning": false,
"input": ["text", "image"],
"contextWindow": 1000000,
"maxTokens": 32768,
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"compat": { "thinkingFormat": "openai" }
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "bailian-coding-plan/qwen3.6-plus"
},
"models": {
"bailian-coding-plan/qwen3.6-plus": {},
"bailian-coding-plan/qwen3.6-flash": {}
}
}
},
"gateway": {
"mode": "local",
"auth": { "mode": "none" }
}
}重启生效
bash
openclaw gateway restart使用
bash
# Web UI
openclaw dashboard
# 终端 TUI
openclaw tuiOpenCode
前置条件
Node.js 18+
安装
bash
npm install -g opencode-ai
opencode --version配置
macOS / Linux: ~/.config/opencode/opencode.jsonWindows: %USERPROFILE%\.config\opencode\opencode.json
json
{
"$schema": "https://opencode.ai/config.json",
"model": "bailian-coding-plan/qwen3.6-plus",
"provider": {
"bailian-coding-plan": {
"npm": "@ai-sdk/openai-compatible",
"name": "Bailian Coding Plan",
"options": {
"baseURL": "https://coding.dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-sp-xxxxx"
},
"models": {
"qwen3.6-plus": {
"name": "qwen3.6-plus",
"limit": { "context": 1000000, "output": 4096 }
},
"qwen3.6-flash": {
"name": "qwen3.6-flash",
"limit": { "context": 1000000, "output": 4096 }
}
}
}
}
}使用
bash
opencode输入 /models 切换模型。
Qwen Code
安装
bash
npm install -g @qwen/qwen-code
qwen --version配置
macOS / Linux: ~/.qwen/settings.jsonWindows: C:\Users\<用户名>\.qwen\settings.json
json
{
"env": {
"QWEN_BASE_URL": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"QWEN_AUTH_TOKEN": "sk-sp-xxxxx",
"QWEN_MODEL": "qwen3.6-plus"
}
}Cline
安装
VSCode 扩展市场搜索 Cline 安装。
配置
| 配置项 | 值 |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://coding.dashscope.aliyuncs.com/compatible-mode/v1 |
| API Key | sk-sp-xxxxx |
| Model ID | qwen3.6-plus |
Kilo Code
安装
VSCode 扩展市场搜索 kilo code 安装。
配置
Settings → Providers → Custom provider:
| 配置项 | 值 |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://coding.dashscope.aliyuncs.com/compatible-mode/v1 |
| API Key | sk-sp-xxxxx |
| Model | qwen3.6-plus |
套餐说明
计费模式
- 固定月费订阅:按月付费,价格固定
- 按调用次数计量:月度请求额度内免费,超出限额报错不计费
- 成本可控:不会产生超出预期的费用
套餐档位
| 套餐 | 价格 | 适用场景 |
|---|---|---|
| Lite | ¥7.9/月(首月) | 入门体验、轻度使用 |
| Pro | ¥39.9/月(首月) | 日常开发、高频使用 |
适用场景
- 个人开发者日常编码
- 交互式 AI 编程工具重度使用
- 追求稳定成本控制
支持的 AI 工具
| 分类 | 工具 |
|---|---|
| 编程 CLI | Claude Code、Qwen Code、OpenCode |
| IDE 扩展 | Cline、Kilo Code |
| 智能体 | OpenClaw |
注意事项
- 专属 API Key:Coding Plan 使用
sk-sp-xxxxx格式的专属 Key,与通用百炼 API Key 不通用 - Base URL 区分:Coding Plan 的域名是
coding.dashscope.aliyuncs.com,不要与 Token Plan 或按量计费混淆 - 调用限额:超出月度请求限额会报错但不计费,避免意外超支
- 协议选择:Claude Code 必须用 Anthropic 兼容端点
/apps/anthropic - 模型范围:Coding Plan 主要支持通义千问系列模型,不支持 DeepSeek、Kimi、GLM 等第三方模型
- 新用户优惠:首月优惠价仅限新用户,以控制台实际显示为准
- CC Switch 支持:可通过 CC Switch GUI 在 Coding Plan、Token Plan、按量计费之间一键切换
官方文档:阿里云百炼 Coding Plan更新时间:2026.07.08