
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.

Choosing a mode
- Ask. Switch modes in the chat box.
- MCP. Pass a
modetoask_codebase. - API. Name a model that a mode uses instead.
GET /api/modelslists 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.

