Skip to main content
DreamTo serves the native OpenAI, Anthropic and Gemini protocols side by side. Most AI coding tools and chat clients can use DreamTo models after you change three things: the API address, the API Key and the model ID.

Before you start

1

Create an API Key

Sign in to the DreamTo console and create a key on the API Keys page. It looks like sk-xxxx. We recommend a separate key per tool so you can track usage and disable each one independently.
2

Find the model ID

In the Model Marketplace, find the model you want and copy its model ID (not its display name). You can also list the models available to your key with GET /v1/models:
3

Pick the protocol and address for your tool

Use the table below to fill in the Base URL in your tool. Detailed steps for each tool are in the left navigation.

Protocols and Base URLs

Whether to include /v1 depends on what the tool appends to the address. OpenAI-style tools usually append only /chat/completions or /responses, so include /v1. The official Anthropic and Gemini SDKs append /v1/messages and /v1beta/models/... themselves, so enter only the domain. Each tool page states which form to use.
For authentication, every protocol accepts Authorization: Bearer <API Key>. The x-api-key header sent by Anthropic clients and the x-goog-api-key header or ?key= parameter sent by Gemini clients also work. See Authentication.

Tools

Claude Code

Anthropic’s command-line coding assistant, connected via ANTHROPIC_BASE_URL.

Codex CLI

OpenAI’s command-line coding assistant; add a custom provider in config.toml.

Gemini CLI

Google’s command-line assistant, connected via GOOGLE_GEMINI_BASE_URL.

Cursor

AI code editor; override the OpenAI Base URL and use custom models.

CC Switch

Desktop config switcher that manages providers for Claude Code, Codex and Gemini CLI in one place.

OpenCode

Open-source terminal coding assistant; add a provider in opencode.json.

OpenClaw

Open-source personal AI assistant; configure it under models.providers in openclaw.json.

Hermes Agent

Open-source agent from Nous Research; configure a custom endpoint in ~/.hermes/config.yaml.

Cline / Roo Code

VS Code coding agent extensions; choose the OpenAI Compatible provider.

Continue

VS Code / JetBrains extension; set apiBase in config.yaml.

TRAE

AI-native IDE; add a custom model under Settings → Models.

WorkBuddy

Desktop office agent; add a custom model in the model picker.

Cherry Studio

Desktop AI client; add a custom provider under Model Services.

LobeChat / NextChat

Open-source web chat apps; just change the OpenAI API address.

SDK quickstart

Minimal examples for the official OpenAI, Anthropic and Google GenAI SDKs (Python, Node.js, cURL).

FAQ

The API Key is missing, wrong or deleted. Check that the key was copied in full with no leading or trailing spaces or quotes. Some tools read an environment variable of the same name first (such as OPENAI_API_KEY or ANTHROPIC_API_KEY); make sure an old value isn’t overriding your setting.
There are usually two causes. Either the Base URL is wrong and the request hits a path that doesn’t exist (for example an extra or missing /v1, giving /v1/v1/chat/completions), or the model ID is a display name or misspelled. Copy the exact model ID from the Model Marketplace.
Call each model through a protocol it supports: Claude uses Anthropic Messages, Gemini uses generateContent, and GPT can use Chat Completions or Responses. Putting a Claude model ID into an “OpenAI compatible” config, or a Gemini model ID into an Anthropic config, may fail or lose features.
All four DreamTo protocols support streaming. If the tool stops midway, first check whether a local proxy or corporate gateway is buffering the SSE response, then raise the tool’s request timeout (such as API_TIMEOUT_MS for Claude Code).
Every response carries an X-Request-Id header. When contacting support, include that value, the request time and the model ID. Do not send your API Key. See Errors for the error format.