Continue

One key in config.yaml: provider openai, apiBase, apiKey, any model id on the list. Pay per token, no subscription.

Checked 2026-10-28

·All guides·Models

At the end you have Continue on its openai provider at https://api.uplinkswitch.com/v1, with one API key from the console and any model id on the list in the model field, Claude included. Each request bills per token to the balance behind that key, no subscription, and the live table below is the price per million tokens on each model today.

What you need

VS Code or a JetBrains IDE with the Continue extension installed, an account on the console with credit on it, and one key created there. Create the key for Continue alone, so its requests sit apart from any other tool on the Usage page. The base URL is https://api.uplinkswitch.com/v1 for every model.

Where the settings are

~/.continue/config.yaml on macOS and Linux, %USERPROFILE%\.continue\config.yaml on Windows. Continue creates the file the first time you use it. From the sidebar, open the Agent selector, hover over an agent and click the gear icon to open it. Continue only takes an OpenAI-compatible base URL on its openai provider, so the Anthropic-style variables from the Claude Code guide do not apply. Read 2026-10-28 from Continue's docs.

The config block

One entry under models per id you want in the model picker. provider stays openai; apiBase points it here; apiKey is the key from the console. The two headers under requestOptions name the app on the Usage page.

~/.continue/config.yaml
name: Local Config
version: 0.0.1
schema: v1
models:
  - name: Claude Sonnet 5.5
    provider: openai
    model: claude-sonnet-5-5
    apiBase: https://api.uplinkswitch.com/v1
    apiKey: sk-uplink-live-...
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
    requestOptions:
      headers:
        HTTP-Referer: https://uplinkswitch.ai
        X-Title: Continue
  - name: Claude Opus 5.5
    provider: openai
    model: claude-opus-5-5
    apiBase: https://api.uplinkswitch.com/v1
    apiKey: sk-uplink-live-...
    roles:
      - chat
      - edit
    capabilities:
      - tool_use
    requestOptions:
      headers:
        HTTP-Referer: https://uplinkswitch.ai
        X-Title: Continue
  - name: DeepSeek V4 Pro
    provider: openai
    model: deepseek-v4-pro-0813
    apiBase: https://api.uplinkswitch.com/v1
    apiKey: sk-uplink-live-...
    roles:
      - chat
      - edit
      - apply
    capabilities:
      - tool_use
    requestOptions:
      headers:
        HTTP-Referer: https://uplinkswitch.ai
        X-Title: Continue

roles is where the model is offered: chat for the chat panel, edit for inline edits, apply for applying diffs. The default is chat, edit, apply and summarize, so leave roles out if you want all of them. capabilities: [tool_use] turns on Agent mode for that model. Add defaultCompletionOptions with contextLength and maxTokens from the model page if you want Continue to budget context for it.

Which model id to put in

Any chat id on the Models page. Tool calling works on every chat model here, and Continue's Agent mode needs it for file edits and terminal commands, so no id on the list is a dead end. These six fit a coding agent:

model ids
claude-sonnet-5-5
claude-opus-5-5
gpt-6.1-sol
gemini-3.1-pro-preview
deepseek-v4-pro-0813
kimi-k3

The Claude ids answer the OpenAI format as well as the Anthropic one, so claude-sonnet-5-5 goes in the same field as gpt-6.1-sol or deepseek-v4-pro-0813, with no second provider. Input price decides the session cost, because Continue sends the context and every tool result back on each step; pick by the input column below. The uncensored coding builds work the same way: one id in the model field, billed per token.

Price per token

ModelInput / 1MOutput / 1MCached / 1MList inputList outputUnder list
Claude Sonnet 5.5$1.164$2.91$0.075$2.00$10.0041% on input
Claude Opus 5.5$2.716$9.70$0.1455$4.00$20.0032% on input
GPT-6.1 Sol$0.582$2.91$0.0582$2.00$10.0070% on input
Gemini 3.1 Pro Preview$1.20$7.20$0.12$2.00$12.0040% on input
DeepSeek V4 Pro 0813$0.792$1.188$0.0625$1.32$3.9640% on input
Kimi K3$0.90$4.50$0.12$3.00$15.0070% on input

USD per million tokens, live from GET /v1/catalog. List: the developer’s own published price. Cached: the cache-read rate where the model has one.

When a response reports cached input tokens, they bill at the cache-read rate in the table. The Claude Code pricing post works a day and a month of agent steps at these rates, and the 2026 API price table puts every developer side by side.

Check it

From a shell, the key should list the models:

shell
curl https://api.uplinkswitch.com/v1/models -H "Authorization: Bearer sk-uplink-live-..."

Then send one request the way Continue does. -i prints the headers: x-uplink-request-id names the request, and on a non-streamed answer x-uplink-charge is what it cost in USD.

shell
curl -i https://api.uplinkswitch.com/v1/chat/completions \
  -H "Authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -H "X-Title: Continue" \
  -d '{"model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "Say ok."}]}'

Then save config.yaml, pick the model in the chat panel and send a message. The request shows on the console Usage page within seconds, with its tokens, the same charge and Continue as the client app.

Errors you will see

  • 401 invalid_api_key: the key is wrong or revoked. Copy it again from the console into apiKey.
  • 402 insufficient_balance: the balance does not cover the request. Top up in the console.
  • 402 monthly_limit_reached: the key hit the monthly spend limit you set on it. Raise it in the console, or wait for the first of the month.
  • 404 model_not_found: the id in model is not on the Models page at this base URL. Copy it from the page rather than typing it.
  • 403 scope_denied: the key carries a model allowlist and this id is not on it. Pick an allowed id or use a key without the limit.
  • 429 rate_limited: the key hit its requests-per-minute or concurrency limit. The response carries retry-after in seconds. Wait that long and resend.
  • Nothing answers: apiBase is missing /v1, or the YAML indentation under models slipped. Compare against the block above.

Good to know

  • Continue's docs say the openai provider uses /responses by default for o-series and gpt-5 ids and offer useResponsesApi: false to keep it on chat completions (read 2026-10-28). Both endpoints answer at this base URL, so either setting works.
  • useLegacyCompletionsEndpoint: true forces the old /completions endpoint. Leave it out here.
  • Only the ids you list are offered. Add an entry when the Models page gains one you want.
  • The same base URL and key go into Cline, Kilo Code and Cursor through a settings panel, and into OpenCode through its own config file. One balance serves all of them, and a key per tool keeps the spend apart on the Usage page.

Questions

Yes. Continue's openai provider takes an apiBase, and its docs show that field for OpenAI-compatible servers (read 2026-10-28). Set apiBase to https://api.uplinkswitch.com/v1, apiKey to your key from the console, and model to any id on the Models page.

Yes. Keep provider on openai, set apiBase to the URL above, and put claude-sonnet-5-5 or claude-opus-5-5 in the model field. The Claude ids answer the OpenAI chat completions format here, so Continue needs no anthropic provider entry.

~/.continue/config.yaml on macOS and Linux, %USERPROFILE%\.continue\config.yaml on Windows, per Continue's docs (read 2026-10-28). Continue creates it the first time you use the extension. In the sidebar, open the Agent selector, hover over an agent and click the gear icon to open it.

The extension is open source and free. The model is not: every request bills per token to whichever provider you enter, and with this key the table above is that bill. Claude Sonnet 5.5 is $1.164 per million input tokens and $2.91 per million output tokens here today.

The id in the model field is not on the Models page at this base URL, so the gateway returned 404 model_not_found. Copy the id from the Models page rather than typing it: a dot, a dash or a date suffix out of place is enough. Also check that apiBase ends in /v1.

Continue's docs say tool_use under capabilities is required for Agent mode (read 2026-10-28). Every chat model here supports tool calling, so add tool_use to each model block you want in Agent mode, as the config on this page does.

Get a key in the console: prepaid credit, no subscription, 30-day price lock.

Join on Telegram
Help