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

# VS Code with Cline

> Use EURI as a custom provider in VS Code via the Cline extension (OpenAI-compatible API).

## Overview

[Cline](https://cline.bot) is an AI coding assistant extension for VS Code that can use any OpenAI-compatible API. By configuring EURI as an **OpenAI Compatible** provider in Cline, you can:

* Use EURI models from inside VS Code with Cline’s chat and agent features.
* Route all Cline requests through EURI for a single API gateway and billing.
* Switch between EURI models (GPT, Gemini, Claude, Llama, etc.) without changing your Cline workflow.

EURI exposes the same request/response shape as the OpenAI API, so Cline works with EURI without any code changes—you only set the base URL, API key, and model ID.

## Prerequisites

Before configuring Cline, ensure you have:

1. **VS Code** installed ([code.visualstudio.com](https://code.visualstudio.com)).
2. The **Cline** extension installed from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=cline.cline) or by searching for “Cline” in the Extensions view.
3. A valid **EURI API key** from [euron.one/euri](https://euron.one/euri).
4. The **EURI base URL** (OpenAI-compatible endpoint):

```text theme={null}
https://api.euron.one/api/v1/euri
```

## Configure Cline with EURI

1. Open the **Cline** panel in VS Code (sidebar or command palette: “Cline”).

2. Click the **settings (gear)** icon in the Cline panel to open Cline settings.

3. Under **API Provider**, select **OpenAI Compatible** (not “OpenAI”).

4. Set the following:

   | Setting      | Value                                   |
   | ------------ | --------------------------------------- |
   | **Base URL** | `https://api.euron.one/api/v1/euri`     |
   | **API Key**  | Your EURI API key (e.g. `euri-sk_...`)  |
   | **Model ID** | A EURI model ID (see [Models](/models)) |

5. Save or close the settings. Cline will use EURI for all requests when this provider is selected.

<Note>Use the **OpenAI Compatible** provider in Cline, not the built-in **OpenAI** provider. The OpenAI Compatible option is what allows you to set a custom Base URL and point to EURI.</Note>

## Model ID examples

Use the exact model IDs from the EURI API. Common examples:

* `gpt-4o-mini` — fast, everyday coding
* `gemini-2.5-flash` — large context, fast
* `claude-sonnet-4-6` — strong reasoning
* `llama-4-scout-17b-16e-instruct` — open-source option

See [Models](/models) for the full list of supported EURI model IDs.

## Verify the integration

1. In the Cline panel, start a new chat.
2. Ensure the OpenAI Compatible provider (with EURI base URL and key) is selected.
3. Send a short prompt, for example:

```text theme={null}
Write a one-line summary of what an API gateway is.
```

If the request succeeds and you get a reply, Cline is correctly using EURI.

## How it works

Cline sends HTTP requests in the same format as the OpenAI API (e.g. `POST /chat/completions`). EURI accepts these requests at `https://api.euron.one/api/v1/euri` and routes them to the model you specified by **Model ID**. You keep the same Cline workflow while using EURI’s models and billing.

## Troubleshooting

### Cline can’t connect or returns errors

* Confirm **Base URL** is exactly `https://api.euron.one/api/v1/euri` (no trailing slash, correct path).
* Ensure your **API Key** is valid and active in [euron.one/euri](https://euron.one/euri) (Billing & API Keys).
* Check that you selected **OpenAI Compatible** as the API provider and that the **Model ID** matches a [supported EURI model](/models).

### Model not found or invalid model

* Copy the model ID from the [Models](/models) page; IDs are case-sensitive and must match exactly.
* If your Cline version has a separate “model” or “default model” setting, set it to the same EURI model ID.

### Requests fail after setup

* Verify your EURI account has sufficient quota or wallet balance for [premium models](/pricing).
* Try a non-premium model first (e.g. `gpt-4o-mini` or `gemini-2.5-flash`).
* Check firewall or corporate proxy rules if the request never reaches EURI.

### Base URL field not visible

* Ensure you are in **OpenAI Compatible** provider mode (not the default “OpenAI” provider). The Base URL field is shown for the OpenAI Compatible provider.
* Update Cline to the latest version from the VS Code marketplace in case your build is older.

## Recommended models for Cline

| Use case                   | Recommended model                |
| -------------------------- | -------------------------------- |
| Fast everyday coding help  | `gpt-4o-mini`                    |
| Large-context coding tasks | `gemini-2.5-flash`               |
| Higher-quality reasoning   | `claude-sonnet-4-6`              |
| Open-source option         | `llama-4-scout-17b-16e-instruct` |

## Next steps

* [Authentication](/authentication) — How EURI API keys work.
* [Models](/models) — Full list of EURI model IDs.
* [Chat Completions](/api-reference/chat-completions) — Underlying API format.
