Skip to main content
Point PraisonAI at Ollama, LM Studio, llama.cpp, or vLLM — no cloud key required.

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_URLOLLAMA_HOST127.0.0.1:11434) → gpt-4o-mini fallback.

Common Patterns

Pin a specific model explicitly with --model:

Best Practices

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.
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.
Pass --model ollama/llama3.2 (or any id) to bypass auto-detection and target an exact model.
Set PRAISONAI_HOME to move sessions, credentials, and cache in one place — handy for Nix, Docker, or Snap packaging. Defaults to ~/.praisonai.

Provider Auto-Detection

The full precedence reference for model resolution.

First-run Onboarding

The complete credential resolution ladder.