Cline Integration
Integrate 1折AI in the Cline extension for VS Code: either via Anthropic custom Base URL or OpenAI Compatible.
Cline is a coding Agent extension for VS Code. Both methods can connect to 1折AI; the Anthropic method is recommended, as Claude’s native capabilities (including caching) are more complete.
Method 1: Anthropic (Recommended)
Section titled “Method 1: Anthropic (Recommended)”Select Provider
Open Cline settings and select Anthropic for API Provider.
Enter API key and address
- Anthropic API Key (enter your API key):
sk-你的Key - Check Use custom base URL and enter
https://1zheai.com(do not add/v1)
- Anthropic API Key (enter your API key):
Select model
Select a model supported by 1折AI from the model dropdown supported models , for example
claude-sonnet-5-5.
Method 2: OpenAI Compatible
Section titled “Method 2: OpenAI Compatible”Select Provider
Select OpenAI Compatible for API Provider.
Fill in
Field Value Base URL https://1zheai.com/v1API Key sk-你的KeyModel ID claude-sonnet-5-5Verify
Click Verify to confirm the connection, then send a small task in Cline.
In Model Configuration you can fill in the context window and maximum output length; enter the values for the corresponding model according to the Anthropic official model documentation .
What's the difference between the two methods?
The Anthropic method uses the native /v1/messages, so capabilities such as caching and thinking are the most complete; OpenAI Compatible uses /v1/chat/completions and is more universal. When using Claude models, prefer Anthropic.
Returns 404?
The address for the Anthropic method must not include /v1; the address for the OpenAI Compatible method must include /v1. The two are exactly opposite.
