# Connect Cline

https://omnimodel.me/apps/cline

> VS Code extension that reads, edits, and runs code across a whole task.

## Use cases

Good for letting an assistant work through a whole task in VS Code, reading and editing files and running commands. One task makes many calls, so cost grows with task length.

## Tips

Coding prompts tend to be long, so pick a long-context model and set a daily spend limit on the key to keep long tasks in check.

## If it cannot connect

1. Use `https://omnimodel.me/v1` as the API host, without `/chat/completions`.
2. The key starts with `key_` and is not paused or revoked; `auth.invalid_key` means the key cannot be used.
3. The model ID matches the [catalog](/catalog) and is in the key's allowed models.
4. `billing.insufficient_credit` means the balance is too low; see [common errors](/docs/errors?lang=en) for more.

## Setup

1. Open the Cline panel settings and pick OpenAI Compatible as the API provider.
2. Fill in the base URL, API key, and model ID below.
3. Save, then send a task from the panel.

## Settings

- API host：`https://omnimodel.me/v1`
- API key：`YOUR_API_KEY`
- Model：`MODEL_ID`

## FAQ

### How many calls does a task make?

It depends on the task. Cline sends context to the model at every step, so one task can make dozens of calls. Try a small task first and check usage.

### How do I keep long tasks from overspending?

Set a daily spend limit on the key Cline uses; calls are refused once it is reached.

