Setup guide

Connect Continue

Continue is an open-source coding assistant for VS Code and JetBrains IDEs. You add CheapTokens as a model in its config.yaml.

Before you start

The snippets below use claude-sonnet-5-5. Pick another model to update them.

Windows

  1. Install the Continue extension. In VS Code open Extensions (Ctrl+Shift+X, or Cmd+Shift+X on macOS) and search for it, or run this in a terminal:
    Terminal
    code --install-extension Continue.continue
  2. Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is %USERPROFILE%\.continue\config.yaml.
  3. Replace its contents with this and save. Continue reloads the file on save.
    config.yaml
    name: CheapTokens
    version: 0.0.1
    schema: v1
    
    models:
      - name: CheapTokens claude-sonnet-5-5
        provider: openai
        model: claude-sonnet-5-5
        apiBase: https://cheaptokens.pw/v1
        apiKey: YOUR_API_KEY
        roles: [chat, edit, apply]
        capabilities: [tool_use]
        defaultCompletionOptions:
          contextLength: 200000
          maxTokens: 8192
  4. Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.

macOS

  1. Install the Continue extension. In VS Code open Extensions (Ctrl+Shift+X, or Cmd+Shift+X on macOS) and search for it, or run this in a terminal:
    Terminal
    code --install-extension Continue.continue
  2. Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is ~/.continue/config.yaml.
  3. Replace its contents with this and save. Continue reloads the file on save.
    config.yaml
    name: CheapTokens
    version: 0.0.1
    schema: v1
    
    models:
      - name: CheapTokens claude-sonnet-5-5
        provider: openai
        model: claude-sonnet-5-5
        apiBase: https://cheaptokens.pw/v1
        apiKey: YOUR_API_KEY
        roles: [chat, edit, apply]
        capabilities: [tool_use]
        defaultCompletionOptions:
          contextLength: 200000
          maxTokens: 8192
  4. Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.

Linux

  1. Install the Continue extension. In VS Code open Extensions (Ctrl+Shift+X, or Cmd+Shift+X on macOS) and search for it, or run this in a terminal:
    Terminal
    code --install-extension Continue.continue
  2. Open the Continue config file. In the Continue panel, open the configs dropdown above the chat box and click the cog next to Local Config. The file is ~/.continue/config.yaml.
  3. Replace its contents with this and save. Continue reloads the file on save.
    config.yaml
    name: CheapTokens
    version: 0.0.1
    schema: v1
    
    models:
      - name: CheapTokens claude-sonnet-5-5
        provider: openai
        model: claude-sonnet-5-5
        apiBase: https://cheaptokens.pw/v1
        apiKey: YOUR_API_KEY
        roles: [chat, edit, apply]
        capabilities: [tool_use]
        defaultCompletionOptions:
          contextLength: 200000
          maxTokens: 8192
  4. Pick CheapTokens claude-sonnet-5-5 in the model dropdown under the chat box and send a message.

Check that it works

Send a short message in Continue, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.

Good to know

If something goes wrong

What you seeWhat to do
401 or invalid_api_keyThe key is wrong, disabled or has extra spaces. Create a new key and paste it again.
402 or insufficient_quotaYour balance is empty. Top up under Billing.
404 or model_not_foundThe model ID has a typo. Copy it from the models page.
404 on every requestThe base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above).
429Too many requests per minute. Wait a few seconds and retry.

Prefer a guided version? Open the setup wizard →