Cline / Roo Code
Prerequisites
- VS Code installed
- Cline extension installed
- A Chuizi.AI account with an API key (starts with
ck-)
Option 1: Anthropic Protocol (Recommended for Claude)
- Open VS Code and click the Cline icon in the sidebar
- Click the gear icon to open the settings panel
- In the API Provider dropdown, select Anthropic
- Enter the following:
- API Key:
ck-your-key-here - Base URL:
https://api.chuizi.ai/anthropic
- API Key:
- Select your preferred Claude model from the dropdown, such as
claude-sonnet-4-6
Option 2: OpenAI-Compatible Protocol
Use this when working with GPT, DeepSeek, or other non-Anthropic models.
- In the API Provider dropdown, select OpenAI Compatible
- Enter the following:
- API Key:
ck-your-key-here - Base URL:
https://api.chuizi.ai/v1
- API Key:
- Manually enter the model name in the Model ID field using the
provider/modelformat:openai/gpt-4.1deepseek/deepseek-chatanthropic/claude-sonnet-4-6
Verify the Configuration
- Open the Cline panel
- Send a test message, such as "Hello, briefly introduce yourself"
- If Cline responds normally, the configuration is working
- Check the Chuizi.AI dashboard for request logs
Common Issues
Connection Failed
Verify the Base URL is correct. The Anthropic protocol uses https://api.chuizi.ai/anthropic, while the OpenAI protocol uses https://api.chuizi.ai/v1. Make sure there is no trailing /.
Empty or Error Responses
Check that your Chuizi.AI account balance is sufficient. Cline can consume a significant number of tokens, especially with Claude Opus. Keep your balance topped up.
File Editing Permission Issues
This is a Cline extension setting, unrelated to Chuizi.AI. Configure file access permissions in the Cline extension settings.
Next Steps
- Choose a Model — pick the right model for your tasks
- Cost Optimization — reduce costs with caching and model tiering
- Error Codes — troubleshoot API errors