Skip to content

Integrations

Continue

Continue in VS Code and JetBrains with AI Tokens: a config.yaml with the base URL, the key in a .env file, the context window and tools for Agent mode.

Last updated: 2026-11-03

Settings

Continue reads its models from config.yaml (in ~/.continue/). It has no provider of its own for AI Tokens: use provider: openai with apiBase.

yaml
name: AI Tokens
version: 0.0.1
schema: v1

models:
  - name: Mistral Medium 3.5
    provider: openai
    model: mistral-medium-3.5-128b
    apiBase: https://api.aitokens.ch/v1
    apiKey: ${{ secrets.API_KEY }}
    roles: [chat, edit, apply]
    capabilities: [tool_use]
    defaultCompletionOptions:
      contextLength: 262144
      maxTokens: 32768

For another model, add an entry like this one with its id and the context window from Which model.

${{ secrets.API_KEY }} is read from a .env file: ~/.continue/.env, or .continue/.env and .env in your project, which come first.

bash
API_KEY=sk-at-…

The extension does not read your shell's environment variables, so export API_KEY=… in a terminal is not enough.

capabilities: [tool_use] is what turns on Agent mode for a model that Continue does not know. Add image_input only on a model that reads images, such as gemma-4-26b.

Limits

  • No autocomplete. Continue's tab autocomplete needs fill-in-the-middle, which AI Tokens does not serve. Do not give these models the autocomplete role.
  • topK is refused. The API does not know top_k and answers 400: leave topK out of defaultCompletionOptions.
  • maxTokens up to 32768. A higher value is refused with 422.

Search the docs

Type to search…