Skip to main content
Run a fully local agent against an Ollama model, with Weak-Model-Proof (WMP) execution added automatically to keep small models reliable.

Quick Start

1

Simplest local run

Ask a question with the default model (llama3.2:3b) and auto-enabled WMP.
2

Pick a model

Point at any model you have pulled locally.
3

Disable WMP

Turn WMP off for benchmarking raw output or when the model is already reliable.

How It Works

The CLI wraps each request in WMP hooks that validate and retry weak-model output before returning the answer. The handler detects model size from the name and selects a matching WMP profile:

Choosing WMP mode

Match the WMP flag to model size and task complexity.

Command options

Every flag comes from add_ollama_arguments in the SDK.

Environment variables

Local Ollama needs no API key; only the server URL matters. --ollama-host always overrides OLLAMA_HOST:

Common patterns

Fast local chat on a capable model:
Give a small model more room to work through a harder task:
Use the same local model inside an agent from Python:

Best Practices

Set --ollama-model explicitly so runs are reproducible instead of relying on the default llama3.2:3b.
Start ollama serve (or the desktop app) before running the command — the CLI exits with a “Make sure Ollama is running” hint if the server is unreachable.
Larger models rarely need many retries, so --wmp-fast cuts latency without hurting reliability.
The default of 10 steps handles most tasks; increase it only for genuinely multi-step work to avoid wasted local compute.

Ollama as a model provider

Run agents against Ollama with llm="ollama/…", env vars, and YAML.

Background CLI

Run long agent jobs in the background.