Cline extension
Install Cline in VS Code and open the Cline panel.
Request pricing
Cline integration
Configure Cline's OpenAI Compatible provider once, then run agentic VS Code workflows on official-price Chinese models with one ChinaAPI key.
Prerequisites
Install Cline in VS Code and open the Cline panel.
Register, then go to Dashboard -> Console -> Tokens and copy an sk-... key.
Setup
https://dash.chinaapi.ai/v1.kimi-k2.7-code or deepseek-v4-pro.Copy-paste test
After saving the provider, ask Cline:
Create a minimal Node.js function called summarizeFiles(paths) that returns file names and byte sizes. Do not modify files yet.
For a direct API smoke test, use:
curl https://dash.chinaapi.ai/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"model":"kimi-k2.7-code","messages":[{"role":"user","content":"Say Cline is connected."}],"stream":true}'
Recommended models
kimi-k2.7-codeCoding-focused default for repo work, planning, and edits.
deepseek-v4-proUse for harder debugging, refactors, and reasoning-heavy coding tasks.
qwen3.7-maxFlagship Qwen option for demanding analysis and agent workflows.
glm-5.2Strong long-context choice for larger codebase understanding.
deepseek-v4-flashFast option for quick iterations and lighter Cline tasks.
Troubleshooting
Thinking models such as qwen3.7-max can spend time generating reasoning tokens before answering. Enable streaming or raise the request timeout if Cline stops before the answer arrives.
Model not found: copy the exact ID from live pricing. Do not use display names like "DeepSeek V4" unless the pricing page shows that exact ID.
401: make sure the key starts with sk- and is in the API Key field for the OpenAI Compatible provider, not another provider profile.
Pricing and signup
ChinaAPI bills in USD at official China list prices. Check live pricing before production use.