Cline extension
Install Cline in VS Code and open the Cline panel.
Cline integration
Configure Cline's OpenAI Compatible provider once, then run agentic VS Code workflows on 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://api.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://api.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
For current model details and rate evidence, review Kimi K2.7 Code and DeepSeek-V4 Pro before choosing a production default.
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.
qwen3.6-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 token usage in USD. Standard model rates follow providers' international list prices at 100%; some models have a separate Paid rate after the first top-up. Check live pricing before production use.