Local LLMs with Ollama
This recipe configures Seepient to run tasks using a local Ollama instance, falling back to a cloud model if the local service is offline or overloaded.
1. Start Ollama with your chosen models
Pull your preferred coding and general instruction models:
bash
ollama pull qwen2.5-coder:14b
ollama pull llama3.3Confirm Ollama is serving on http://127.0.0.1:11434.
2. Configure Seepient
Option A: Interactive setup or CLI (Recommended)
Run the interactive setup wizard, choose "Custom / local endpoint", and point it at Ollama (keyless — no authentication token needed):
bash
seepient setupOr add the account directly:
bash
seepient providers add local-ollama \
--upstream ollama \
--url http://127.0.0.1:11434/v1 \
--allow-private3. Verify execution and fallback
Run a test prompt:
bash
seepient "Explain how async generators work in TypeScript"Seepient routes the prompt to local-ollama using llama3.3.
If you stop the Ollama server (pkill ollama) and rerun the prompt, Seepient detects the connection failure, logs a fallback notification to stderr, and completes the request using claude-3-7-sonnet.