# Set Up Cline’s OpenAI Compatible Provider

In Cline, select OpenAI Compatible, enter `https://api.promptavenue.com/v1`, and provide your PromptAvenue API key and Uncensored model ID. Create `demo.js` from the example, then ask Cline to read it in Plan mode and approve the sample-file read if prompted. Check the task log for the file read and the reply for `["DRAFT", "READY"]`.

[Model pricing](https://promptavenue.com/pricing) · [Run the API quickstart](https://promptavenue.com/docs/quickstart)

## What you need

- VS Code with the Cline extension installed and enabled.
- A [PromptAvenue account](https://api.promptavenue.com/sign-up?utm_source=docs&utm_medium=guide&utm_campaign=cline) with API balance.
- A sample workspace for the first request.

## 1. Create a PromptAvenue API key

In the PromptAvenue dashboard, open the API keys page and select **Create API key**. Copy the full key when it appears.

## 2. Set the OpenAI-compatible base URL and custom model ID in Cline

Open the Cline sidebar and click the settings gear.

| Setting | Value |
| --- | --- |
| API Provider | **OpenAI Compatible** |
| Base URL | `https://api.promptavenue.com/v1` |
| API Key | Your PromptAvenue key |
| Model ID | `deepseek-v4.1-flash-uncensored` |

Save the settings. To try GLM, use `glm-5.3-flash-uncensored` as the **Model ID** and run the check again in a new task.

If Plan and Act use separate configurations, enter these settings in both modes before switching to Act.

## 3. Verify the connection in Plan mode

Create a file named `demo.js` in your sample workspace with this one line.

```js
const labels = ["draft", "ready"].map(label => label.toUpperCase());
```

Start a new task in **Plan** mode and send the following prompt. If Cline asks to read `demo.js`, approve that read for the sample file.

> Read demo.js and tell me what labels contains. Keep the workspace as it is.

Expect Cline to report `["DRAFT", "READY"]`. The workspace should still contain the original line. If you see a response without a file read in the task, use the activity view or task log to check how Cline obtained the file content.

## Common errors

| Symptom | What to check |
| --- | --- |
| Invalid API key | Confirm the provider is **OpenAI Compatible** and the key came from PromptAvenue. |
| Model unavailable | Enter the exact model ID from the settings table. Confirm the provider and model saved for Plan mode. |
| Connection or route error | The base URL ends in `/v1`. Use the [API quickstart](/docs/quickstart) to test the direct HTTP request with the same model. |
| Text replies work but the file step stalls | Check the task for a pending read approval. If Cline reports a request error, save the Cline version, model ID, and error text with credentials removed. |
| Balance or rate-limit error | Check the dashboard balance if the error mentions funds. For rate limits, wait before retrying. |
