Skip to content
English

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.

  1. Select Provider

    Open Cline settings and select Anthropic for API Provider.

  2. 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)
  3. Select model

    Select a model supported by 1折AI from the model dropdown supported models , for example claude-sonnet-5-5.

  1. Select Provider

    Select OpenAI Compatible for API Provider.

  2. Fill in

    FieldValue
    Base URLhttps://1zheai.com/v1
    API Keysk-你的Key
    Model IDclaude-sonnet-5-5
  3. Verify

    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.