Quick Start
1
Zero-config with Ollama
Start Ollama, pull a model, and run — PraisonAI detects the endpoint when no cloud key is set.
2
Point at any OpenAI-compatible server
Set
OPENAI_BASE_URL to target LM Studio, llama.cpp, or vLLM.How It Works
PraisonAI probes for a reachable local server only when no cloud provider key is set, then adopts the first model it finds.
Detection is timeout-bounded (~150 ms) and caches negatives for 30 s, so the first-run hot path stays fast when nothing is listening.
Configuration Options
Precedence (first match wins):
--model <name> → any cloud provider key → reachable local endpoint (OPENAI_BASE_URL → OLLAMA_HOST → 127.0.0.1:11434) → gpt-4o-mini fallback.
Common Patterns
--model:
Best Practices
Detection stays off the hot path
Detection stays off the hot path
The probe runs only when no cloud key is set, times out at ~150 ms, and caches negatives for 30 s — a first run with nothing listening is not slowed down.
Cloud keys always win
Cloud keys always win
Any cloud provider key (e.g.
OPENAI_API_KEY, ANTHROPIC_API_KEY) skips the local probe entirely. OLLAMA_HOST is not a cloud key, so it participates in local detection instead.Use --model to override detection
Use --model to override detection
Pass
--model ollama/llama3.2 (or any id) to bypass auto-detection and target an exact model.Relocate state with PRAISONAI_HOME
Relocate state with PRAISONAI_HOME
Set
PRAISONAI_HOME to move sessions, credentials, and cache in one place — handy for Nix, Docker, or Snap packaging. Defaults to ~/.praisonai.Related
Provider Auto-Detection
The full precedence reference for model resolution.
First-run Onboarding
The complete credential resolution ladder.

