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

# Cline / Roo Code

> Select the OpenAI Compatible provider in the Cline or Roo Code VS Code extension to use models on DreamTo.

[Cline](https://docs.cline.bot) and its fork [Roo Code](https://docs.roocode.com) are open-source coding-agent extensions for VS Code that can read and write files and run commands. Both offer an **OpenAI Compatible** provider: enter the Base URL, API key and model ID to connect to DreamTo.

## Prerequisites

* Cline or Roo Code installed from the VS Code Marketplace.
* An API key created on the **API Keys** page of the [DreamTo console](https://www.dreamto.ai/console).
* A Chat Completions model ID, such as `deepseek-v4.1-flash-1017` or `gpt-6.2-sol`.

## Setup

**1. Open settings**

Click the Cline / Roo Code icon in the sidebar, then click the ⚙️ settings button at the top of the panel.

**2. Select OpenAI Compatible and fill in the fields**

| Field | Value |
| - | - |
| **API Provider** | `OpenAI Compatible` |
| **Base URL** | `https://api.dreamto.ai/v1` |
| **API Key** | Your DreamTo API key (`sk-xxxx`) |
| **Model** (Model ID) | e.g. `deepseek-v4.1-flash-1017` |

Under **Model Configuration**, set **Context Window size** and **Max Output Tokens** to the model's actual specs, and enable image support if the model accepts images.

**3. Save and test**

Save, then send a simple task in the chat, such as "Explain the currently open file". A normal response means the setup works.

## Using Claude models

You can use Claude model IDs directly with the OpenAI Compatible configuration above. If you prefer the native Anthropic protocol, select **API Provider = Anthropic**, check **Use custom base URL**, enter `https://api.dreamto.ai` (no `/v1`), then enter your DreamTo API key and a Claude model ID (e.g. `claude-sonnet-5-5`).

> [!NOTE]
>
> The Anthropic provider's model dropdown only lists official Anthropic model names. If your extension version doesn't allow a custom model ID, use the OpenAI Compatible provider instead.

## FAQ

> [accordion] 401
>
> Make sure the API key was copied in full with no extra spaces.

> [accordion] 404 / model not found
>
> * The OpenAI Compatible Base URL must include `/v1`; the Anthropic custom base URL must not.
> * The model ID must match the [Model Marketplace](https://www.dreamto.ai/models).

> [accordion] Tool calls fail or retry repeatedly
>
> Cline / Roo Code rely heavily on tool calling and long context. Choose a model with strong tool-calling ability and set Context Window to the model's real value so context isn't truncated.

> [accordion] Streaming output cuts off
>
> Check VS Code's proxy setting (`http.proxy`) and whether a corporate gateway is buffering the SSE stream.


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