# what models does bernstein use

Canonical URL: https://bernstein.run/q/what-models-does-bernstein-use
Markdown URL: https://bernstein.run/q/what-models-does-bernstein-use.md
Tags: models, routing

bernstein itself does not call an llm; the cli agents you configure do. you decide which models per role in bernstein.yaml. with --routing bandit, the contextual-bandit router picks among the models you allow for a given task class and learns from outcomes. typical configurations: claude opus 4.7 for architect, claude sonnet 4.6 for backend, claude haiku 4.5 for docs, gpt-5.5 for review, gemini-3.1-pro for ml. local-only setups can route everything through ollama. bernstein cost prints the realised mix after each run. routing source: src/bernstein/core/routing/.

## Related

- https://bernstein.run/q/how-does-bernstein-work
- https://bernstein.run/q/how-does-cost-tracking-work
