Setup wizard

Connect your AI tool.

Pick a tool, your operating system and a model. The steps and snippets below update to match.

1Tool
2Operating system
3Instructions

Connect Continue

Continue reads its models from one YAML file. Add CheapTokens there as an OpenAI-type provider.

  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.
  • In JetBrains IDEs, install the Continue plugin from the plugin marketplace instead. The config file is the same.
  • capabilities: [tool_use] lets Agent mode work with a model Continue doesn't recognise. Add image_input for models that read images.
  • To add more models, repeat the block under models: with another model ID.
  • Autocomplete needs its own entry with roles: [autocomplete]. A small, cheap model works best there.

Open the full Continue guide →