Multiple models
List alternative models under models in settings.json and switch between them
mid-session with /model, without restarting.
{ "provider": "openai-compatible", "model": "qwen2.5-coder", "baseURL": "http://localhost:11434/v1", "models": [ { "provider": "openai-compatible", "model": "qwen3-coder", "label": "Qwen 3 Coder" }, { "provider": "anthropic", "model": "claude-sonnet-4-5", "label": "Claude Sonnet" } ]}Each entry is a complete, independent engine config - its own provider,
baseURL, apiKey, and structuredOutput, not just a different model name on the
same connection. So the list can mix local Ollama models with a hosted Claude model.
labelis optional and falls back to the model id.apiKeyis optional too: if omitted, it’s resolved from the same environment variable Polyglot would use for that entry’s own provider (ANTHROPIC_API_KEYorPOLYGLOT_API_KEY), independent of whichever provider is active at startup.
Switching
Section titled “Switching”/model- opens an ↑↓ picker of every available model (the current one marked, cursor starting there), including whatever you started the session with even if it isn’t inmodels[]. Enter switches, Esc cancels./model <name>- switches directly, no picker. Matches an exact model id first, then a case-insensitive substring of the id or label.
Switching is session-local only - it never rewrites settings.json. Resuming a
session later with --resume always starts back on whichever
model that session originally began with.
A common pattern
Section titled “A common pattern”Plan with a strong model, execute with a cheap or local one:
Shift+Tabtoplanmode, ask Claude to research and propose a plan.- Approve the plan.
/model qwento switch to a local model for the mechanical edits.