> ## Documentation Index
> Fetch the complete documentation index at: https://docs.venice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Cline

> Configure the Cline AI coding assistant in VS Code to use private Venice text models through the OpenAI-compatible /chat/completions endpoint.

[Cline](https://cline.bot/) is an AI coding assistant for VS Code that can read and edit files, run commands, and work through multi-step development tasks. Venice works through Cline's OpenAI-compatible provider settings.

> [card] VS Code Integration
>
> Use Venice models without leaving your editor

> [card] OpenAI Compatible
>
> Connect through Venice's `/chat/completions` endpoint

> [card] Model Flexibility
>
> Choose any compatible Venice text model

***

## Prerequisites

* A Venice API key from [venice.ai/settings/api](https://venice.ai/settings/api?utm_source=venice-api-documentation)
* [Visual Studio Code](https://code.visualstudio.com/) installed
* The [Cline extension](https://marketplace.visualstudio.com/items?itemName=saoudrizwan.claude-dev) installed in VS Code

***

## Setup

**1. Open Cline settings**

Select the Cline icon in the VS Code activity bar, then select the gear icon to open Cline's settings.

**2. Choose the API provider**

Set **API Provider** to **OpenAI Compatible**.

**3. Configure Venice**

Enter the following values:

| Setting | Value |
| - | - |
| Base URL | `https://api.venice.ai/api/v1` |
| API Key | Your Venice API key |
| Model ID | A model ID from the [text model catalog](https://docs.venice.ai/models/text.md) |

For example, use `z-ai-glm-5-3-flash` as the Model ID.

Enter the API key itself, without a `Bearer` prefix. Keep the Base URL at `/api/v1`; Cline adds the `/chat/completions` path.

**4. Configure model capabilities**

Expand **Model Configuration** and set the context window and maximum output tokens to match the selected model. Enable the capabilities that the model supports, including image input or computer use when applicable.

Check the selected model in the [text model catalog](https://docs.venice.ai/models/text.md) before enabling optional capabilities.

**5. Save and test**

Save the provider settings, open a project, and give Cline a small task such as:

```txt theme={"system"}
Review the current file and suggest one safe improvement.
```

Review each file or command permission before approving it.

***

## Verify the Venice API

If Cline cannot connect, confirm the API key and available model IDs independently.

Check the key first. `GET /api_keys/rate_limits` requires authentication, so a `401` here means the key is wrong rather than Cline being misconfigured:

```bash theme={"system"}
curl https://api.venice.ai/api/v1/api_keys/rate_limits \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

Then list the model IDs. This endpoint answers with or without a key, so use it for discovery only:

```bash theme={"system"}
curl https://api.venice.ai/api/v1/models \
  -H "Authorization: Bearer $VENICE_API_KEY"
```

Copy a model's `id` exactly into Cline's **Model ID** field.

***

## Configuration Notes

* Use `https://api.venice.ai/api/v1` as the Base URL, not the full `/chat/completions` endpoint.
* Model IDs can change over time. Use the [text model catalog](https://docs.venice.ai/models/text.md) or `GET /models` instead of relying on an older example.
* Cline's context-window and output-token settings affect how it budgets requests. Match them to the selected model for the best results.
* Keep your Venice API key private. Do not paste it into source files or commit it to git.

***

## Troubleshooting

> [accordion] 401 or authentication error
>
> Confirm that the API key comes from [venice.ai/settings/api](https://venice.ai/settings/api?utm_source=venice-api-documentation). Paste the raw key into Cline without `Bearer` or extra whitespace.

> [accordion] Model not found
>
> Confirm that the Model ID appears in the [text model catalog](https://docs.venice.ai/models/text.md) or the response from `GET /models`, then copy it exactly.

> [accordion] Connection or endpoint error
>
> Confirm that **API Provider** is **OpenAI Compatible** and the Base URL is exactly `https://api.venice.ai/api/v1`.

> [accordion] Cline cannot use tools or edit files
>
> Open **Model Configuration**, confirm that the selected model supports the required capabilities, and enable computer use if Cline exposes that option for the model.

> [accordion] Still stuck? See what the agent sends
>
> Run the [local debugging proxy](https://docs.venice.ai/learn/local-debug-proxy.md) between Cline and Venice to log every request and response, including the model ID, tools, and error body the agent actually sent, plus the last four characters of the key it used.

***

## Resources

> [card] [Original Venice Cline Guide](https://venice.ai/blog/how-to-use-the-venice-api-with-cline-in-vscode-a-developers-guide?utm_source=venice-api-documentation)
>
> Read the canonical Venice article

> [card] [Venice Text Models](https://docs.venice.ai/models/text.md)
>
> Browse available Venice model IDs

> [card] [Cline Provider Docs](https://docs.cline.bot/provider-config/openai-compatible)
>
> OpenAI-compatible provider settings

> [card] [Venice API Reference](https://docs.venice.ai/api-reference/api-spec.md)
>
> Full endpoint and parameter docs


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.