TemprTempr
Docs
Guides

Continue

Last updated

Continue (the open-source VS Code / JetBrains extension and CLI) configures models declaratively in config.yaml. Point one or more model blocks at Tempr Gateway's apiBase and you can list Claude, GPT, Gemini, and anything else on your allowlist side by side: one key, every provider, no separate config block per vendor's own API.

  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. Edit config.yaml

    Open Continue's config.yaml (Continue extension → gear icon → Open config, or ~/.continue/config.yaml) and add a model block:

models:
  - name: Tempr Gateway
    provider: openai
    model: anthropic/claude-sonnet-4-5
    apiBase: https://api.temprhq.io/v1
    apiKey: tvk_...
    roles:
      - chat
      - edit
      - apply

Model ids

Use the fully-qualified provider/model form (e.g. anthropic/claude-sonnet-4-5, openai/gpt-5), the same ids GET /v1/models returns. Add one model block per model you want selectable.

The example's anthropic/claude-sonnet-4-5 needs an Anthropic key in the Portal; with another provider's key, use one of its models, or any model from GET /v1/models.

Embeddings for codebase context

Continue indexes your codebase with an embedding model, for its codebase context. Give that role to a model on Tempr too, and the index is built with your own provider key through the same virtual key:

models:
  - name: Tempr Embeddings
    provider: openai
    model: openai/text-embedding-3-small
    apiBase: https://api.temprhq.io/v1
    apiKey: tvk_...
    roles:
      - embed

Any embedding model Tempr serves works, such as google/gemini-embedding-001, mistral/codestral-embed or cohere/embed-v4.0, as long as it's on your virtual key's allowlist. Switching embedding models means Continue re-indexes.

On a coding plan

Tempr serves each coding plan only to the tools its vendor allows, and recognises a tool by the identity it sends. Continue sends only a generic identity to a custom endpoint, so Tempr can't tell it from a script, and a plan limited to the tools its vendor names, or to coding tools Tempr recognises (Z.AI, Kimi, Alibaba, Tencent, KUAE and others), refuses it with a plan_tool_not_allowed error. Continue can use the plans that accept any tool: MiniMax, StepFun, Synthetic, Ollama Cloud, NanoGPT, Fire Pass and ClinePass. Name the model by the plan: minimax-plan/MiniMax-M3.1-Flash-Preview. 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 Continue's settings as they are, with your virtual key.
  • Sent with each request. Set the model's apiKey to the plan's key and add your virtual key under requestOptions.headers: 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.
models:
  - name: GLM 5.3
    provider: openai
    model: minimax-plan/MiniMax-M3.1-Flash-Preview
    apiBase: https://api.temprhq.io/v1
    apiKey: <the plan's key>
    requestOptions:
      headers:
        x-tempr-key: tvk_...

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 Continue's own along and never sends another, so check which tools each plan supports before you subscribe.

Ask Continue about your Gateway

Continue's agent can also read your Gateway through the Gateway's own MCP server: usage and cost, request logs and one request's routing, keys, plan, and providers cooling down. Ask it "why did my last few requests fail?" or "which key spent the most this week?" while you work. It comes with the Gateway Pro, Scale and Enterprise plans.

Continue doesn't sign in to MCP servers, so it uses a management key:

  1. Create a management key

    In the Portal, under Gateway → Keys → Management keys (or Organization → Org keys for an organization's Gateway). A management key reads and manages the Gateway but can't call models, so it's separate from the tvk_ virtual key in your model blocks. Tick what Continue may do: Read usage, Read request logs and List keys to read; Create, change and revoke keys as well if it may change keys.

  2. Store it as a secret

    Add it to ~/.continue/.env as TEMPR_MANAGEMENT_KEY=tmk_.... The extension can't read your shell's environment variables, so it looks there.

  3. Add the server

    Create .continue/mcpServers/tempr-gateway.yaml in your project, or in ~/.continue for every project:

name: Tempr Gateway
version: 0.0.1
schema: v1
mcpServers:
  - name: tempr-gateway
    type: streamable-http
    url: https://api.temprhq.io/mcp/admin
    apiKey: ${{ secrets.TEMPR_MANAGEMENT_KEY }}
  • Agent mode only. Continue offers MCP tools in agent mode, not in chat.
  • The key's permissions decide the tools. Without Read request logs, Continue gets the usage, plan and key tools but not the logs.
  • Changes also need the account to allow them: turn on Changes by AI agents on the Portal's MCP connectors page. Continue can then make changes that only tighten, such as creating a key that expires within 90 days or revoking one, and propose any that would loosen, such as a higher budget, for you to approve in the Portal, and asks you first unless you've changed its tool policies. A new key's secret never reaches it: it gets a one-time Portal link for you to copy the key from.

What's next