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
- Create
sk-4ai-...in Token management. - Use
https://relay.4aicode.com/v1internationally, orhttps://relay.4aicode.net/v1on mainland networks.
Setup
- Install the Cline extension.
- Set API Provider to OpenAI Compatible (or the equivalent custom OpenAI option).
- 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)
- Base URL:
- 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
| Symptom | Next step |
|---|---|
| 401 | 401 guide |
| 429 | 429 guide |
| Timeouts | Timeout guide |
| Unsupported model | Copy an exact ID from the catalog |