# can bernstein use ollama for coding agents

Canonical URL: https://bernstein.run/q/can-bernstein-use-local-ollama-llama-qwen
Markdown URL: https://bernstein.run/q/can-bernstein-use-local-ollama-llama-qwen.md
Tags: local, ollama, self-host

yes. select it with bernstein run --cli ollama --model <model> (the adapter defaults to http://localhost:11434; e.g. qwen2.5-coder:32b, llama3.1:70b, deepseek-coder:33b). the ollama adapter at src/bernstein/adapters/ollama.py speaks the ollama or any openai-compatible /v1/chat/completions endpoint, so vllm, llama.cpp server, lm studio, and tabbyapi all work. mix-mode is supported: route docs through ollama and architecture through claude opus in the same plan; bernstein cost prints the realised split. zero outbound api calls when every agent in a run points at ollama, which is what teams under strict data residency rules ask for.

## Related

- https://bernstein.run/q/does-bernstein-support-local-models
- https://bernstein.run/q/what-models-does-bernstein-use
- https://bernstein.run/q/self-hosted-ai-coding-agent-orchestrator
