# Use Cline / Roo Code with GoiAPI

> Set up Cline and Roo Code in VS Code to call models with your API key: choose the OpenAI Compatible provider, enter the base URL, key and model name.

Source: https://goiapi.com/en/docs/integrations/cline

## 1. Before you start

- An API key: [sign up](https://goiapi.com/en/signup), top up your balance, then create a key in the dashboard. Put your key where `<API_KEY>` appears below.
- The name of the model you want to use, from [Models](https://goiapi.com/en/models). The examples below use `claude-haiku-5-5`.

## 2. Set up Cline / Roo Code

In Cline or Roo Code, choose the "OpenAI Compatible" option, then fill in the 3 fields below.

1. Open the Cline (or Roo Code) settings.
2. API Provider: choose "OpenAI Compatible".
3. Base URL: `https://api.goiapi.com/v1`
4. API Key: `<API_KEY>`
5. Model ID: `claude-haiku-5-5`
6. Save the settings, then send a test message.

## 3. Send a test message

Send a short message (for example "Hello") from Cline / Roo Code. The **Request history** page in the dashboard shows the request as soon as it happens, with token counts and cost.

If something fails, see [Error codes](https://goiapi.com/en/docs/error-codes): `401` means the key is wrong or missing, `402` means your balance is too low, `404` means the model name is wrong.
