TemprTempr
Docs
Guides

Roo Code

Last updated

Roo Code (the VS Code extension descended from Cline) ships a built-in "OpenAI Compatible" provider for exactly this kind of custom gateway. Point it at Tempr and every model on your allowlist (Claude, GPT, Gemini, whatever you've configured) becomes available through one provider entry instead of one per vendor.

No longer maintained

Roo Code was shut down on May 15, 2026: its repository is archived, and the extension gets no more fixes or model updates. Its last release still works with Tempr as set up below. For a maintained tool, Cline, which Roo Code began as a fork of, and Kilo Code, which picks up Roo Code's custom modes and rules on its first run, both work with Tempr the same way.

  1. Create a virtual key

    In the Portal, create a Gateway virtual key. Keys are prefixed tvk_ and shown once at creation.

  2. Add a provider key

    Gateway is BYOK: add a key for at least one provider from the supported list.

  3. Configure Roo Code

    Open the Roo Code settings panel, set API Provider to OpenAI Compatible, Base URL to https://api.temprhq.io/v1, and API Key to your virtual key.

  4. Choose a model

    Enter a model id in the fully-qualified provider/model form, e.g. anthropic/claude-sonnet-4-5, whatever is on your virtual key's allowlist. That one needs an Anthropic key in the Portal; or use any model from GET /v1/models.

Codebase indexing

Roo Code's codebase indexing embeds your code so it can search it by meaning. It can embed through Tempr too, with the same virtual key, so it needs no separate embedding provider account. It also needs a Qdrant vector database, local or cloud, to store the vectors.

  1. Open the indexing settings

    Click the indexing status icon at the bottom right of Roo Code's chat input, and turn indexing on.

  2. Point the embedder at Tempr

    Set Embedder Provider to OpenAI Compatible, Base URL to https://api.temprhq.io/v1, and API Key to your virtual key.

  3. Choose an embedding model

    Set Model to an embedding model from a provider you have a key for, such as openai/text-embedding-3-small, google/gemini-embedding-001 or mistral/codestral-embed. If Roo asks for the model's dimension, use its default from the embeddings models table (1536 for text-embedding-3-small). The model has to be on your virtual key's allowlist.

  4. Connect Qdrant and start

    Enter your Qdrant URL (and Qdrant API Key if it needs one), then start indexing.

Each batch Roo sends is one Gateway request, billed at the model's input price with your own provider key, and appears in your request logs. Changing the embedding model or its dimension means re-indexing. See Embeddings for every provider and model.

On a coding plan

To run Roo Code on a coding plan, such as the Z.AI GLM Coding Plan or Kimi Code, use one of the plan's models, named by the plan: zai-coding/glm-5.3. Tempr can get the plan's key two ways:

  • Stored in Tempr. Add the plan's key under Provider keys in the Portal, and keep Roo Code's settings as they are, with your virtual key.
  • Sent with each request. Put the plan's key in Roo Code's API Key field, then add a header under Custom Headers (the + button): the name x-tempr-key, with your virtual key as the value. Tempr sends the plan's key only to that plan, and never stores it. An organization's keys take a key sent this way once an owner or admin turns on Plan logins.

Several plans are sold only for the coding tools they support, and some refuse other tools, telling them apart by the identity each tool sends. Tempr passes Roo Code's own along and never sends another, so check which tools each plan supports before you subscribe.

What's next