Skip to main content
Ask Sourcebot and the Wiki require a language model. Connect a model provider in Settings → Models, and Sourcebot picks which of its models each feature uses.
Settings → Models with Amazon Bedrock and Google Vertex AI connected, and Choose automatically filling the Fast, Balanced and Smart modes with Claude Haiku, Sonnet and Opus
To use a self-hosted model, such as one served by Ollama, vLLM or LiteLLM, connect it as a Custom provider.

How Sourcebot picks a model

Sourcebot sorts models into three modes: Fast, Balanced and Smart. Each feature uses a mode: With Choose automatically on, Sourcebot fills each mode with the latest model of a suitable family. For example, Claude Haiku fills Fast, Sonnet fills Balanced, and Opus fills Smart. A mode with no model of its own borrows the nearest mode’s model at a different reasoning effort. Sourcebot gets model families from models.dev. If it can’t reach models.dev, or doesn’t recognize your models, every mode uses one model: the first model of the provider you connected first. To pick other models, turn off Choose automatically.

Change which model a feature uses

In Settings → Models:
  • Under Features, pick each feature’s mode.
  • Under Modes, turn off Choose automatically to pick each mode’s model and reasoning effort.
The Features section of Settings → Models, with a Fast, Balanced or Smart choice for Ask, ask_codebase and each Wiki stage, and the model each one uses
A Wiki stage set up before modes keeps its model until you select Use modes in Wiki settings. See Models chosen before modes.

Choosing a mode

  • Ask. Switch modes in the chat box.
  • MCP. Pass a mode to ask_codebase.
  • API. Name a model that a mode uses instead. GET /api/models lists them.

Next steps

Connect a provider

Connect a provider in Settings → Models.

Authentication

Store a key in Sourcebot, or read it from the server’s environment.