Loading...

Docs · Integrations

Continue with TopxAI: models in config.yaml

Add TopxAI models to ~/.continue/config.yaml with provider openai or anthropic and apiBase, then use them for chat, edit and agent mode in VS Code or JetBrains.

Continue reads its models from ~/.continue/config.yaml. A model entry names the provider, the model id, the base URL and the key; TopxAI fits the openai provider for every text model and the anthropic provider for Claude.

config.yaml

name: TopxAI
version: 0.0.1
schema: v1

models:
  - name: Claude Sonnet 5.5 (TopxAI)
    provider: anthropic
    model: claude-sonnet-5-5
    apiBase: https://ai.topxea.com
    apiKey: sk-...
    roles: [chat, edit, apply]
  - name: GPT-6.1 Sol (TopxAI)
    provider: openai
    model: gpt-6.1-sol
    apiBase: https://ai.topxea.com/v1
    apiKey: sk-...
    roles: [chat, edit, apply]
  - name: Kimi K3.1 Pro (TopxAI)
    provider: openai
    model: kimi-k3.1-pro
    apiBase: https://ai.topxea.com/v1
    apiKey: sk-...

Two details:

Roles

chat, edit and apply all work with the chat models above. Autocomplete (roles: [autocomplete]) needs a fill-in-the-middle model; none of the catalogue models is one, so leave autocomplete on whatever you use today.

Agent mode

Agent mode needs tool calling. Add capabilities: [tool_use] to a model entry if Continue does not detect it for a catalogue id it has not seen before.

If it fails

Models: claude-sonnet-5-5, gpt-6.1-sol · Models & pricing

Related

Previous: Cline and Roo Code with TopxAI: the OpenAI-compatible provider · Next: Zed with TopxAI: OpenAI- and Anthropic-compatible providers

Other languages: 简体中文