Guides

Cline setup

LLMs Text

Configure Cline with the 4AICode API

Cline is an IDE coding assistant that speaks OpenAI-compatible APIs. Point it at 4AICode to use team tokens and metered models.

Before you start

  1. Create sk-4ai-... in Token management.
  2. Use https://relay.4aicode.com/v1 internationally, or https://relay.4aicode.net/v1 on mainland networks.

Setup

  1. Install the Cline extension.
  2. Set API Provider to OpenAI Compatible (or the equivalent custom OpenAI option).
  3. Fill in:
    • Base URL: https://relay.4aicode.com/v1
    • API Key: your sk-4ai-...
    • Model ID: e.g. gpt-6-astra (see the model catalog)
  4. Send a test message and confirm Usage.
API Provider: OpenAI Compatible
Base URL:     https://relay.4aicode.com/v1
API Key:      sk-4ai-xxxxxxxxxxxxxxxx
Model:        gpt-6-astra

Protocol notes

Cline uses Chat Completions. Details: POST /v1/chat/completions. For Anthropic Messages, use Claude Code instead.

Troubleshooting

SymptomNext step
401401 guide
429429 guide
TimeoutsTimeout guide
Unsupported modelCopy an exact ID from the catalog