Quick Start
1
Install Ollama and download a model
Do this once, while you are still online. Get Ollama from ollama.com, then download a model:The model is saved on your computer. After this, Ollama does not need the internet.
2
Install PraisonAI
[llm] extra adds the connector PraisonAI uses to talk to Ollama.3
Create the agent
Save this as
agent.py:4
Run it
OPENAI_API_KEY is needed. The ollama/ prefix tells PraisonAI to use the local model.Run the script from your own project folder. If the current folder has an
AGENTS.md or CLAUDE.md file, the agent adds it to its instructions, which can change how it answers. Pass rules=False to Agent(...) to turn this off.Ollama on another computer
If Ollama runs on a different machine in your network, or on a port other than11434, tell the agent where it is.
On the other computer, make Ollama listen on the network (not just localhost), then restart it:
- In code
- Environment variable
Check it is really offline
The simplest test: turn off Wi-Fi or unplug the network cable, then runpython agent.py again. If you get an answer, the agent did not need the internet. This only works when Ollama is on the same computer: going offline also cuts you off from a remote Ollama host.
Block the network for one command (macOS)
Block the network for one command (macOS)
This blocks every outgoing connection except to Ollama on
localhost:11434, without turning off your network. If Ollama runs on another computer, use (remote ip "*:11434") instead, since the sandbox only accepts localhost or * as the host.Install on a machine that has never been online
Install on a machine that has never been online
Download the packages on a connected machine, copy them across, and install from the folder. See Offline & CI Install for what PraisonAI does and does not fetch at install time.
Turn off telemetry
Telemetry is off by default inpraisonaiagents. It only turns on if someone sets PRAISONAI_TELEMETRY_ENABLED=true. To make sure it stays off on a machine, set:
PRAISONAI_TELEMETRY_ENABLED=true and over enable_telemetry() in code. DO_NOT_TRACK=true and PRAISONAI_DISABLE_TELEMETRY=true work too. Each accepts true, 1 or yes.
The model connector also checks online for an updated model price list when it starts. If it cannot connect it uses the copy it ships with. To skip the check entirely:
Other local model servers
Ollama is the simplest start. PraisonAI also works with LM Studio, llama.cpp and vLLM running on your own hardware. These pages cover them:Local Models
Ollama, LM Studio, llama.cpp and vLLM
Local Model Resolver
Find a running local server for you
Ollama
More Ollama options
Best Practices
Download models before you go offline
Download models before you go offline
ollama pull needs the internet. Pull every model you plan to use while connected, then check with ollama list.Name the model every time
Name the model every time
Always pass
model="ollama/<name>". Without it, PraisonAI falls back to a cloud default and asks for an API key.Start small, then test on your own tasks
Start small, then test on your own tasks
A small model such as
llama3.2 runs on most laptops. Try your real tasks on it before moving to a larger model.Related
Task handover (early access)
Move tasks to your own AI only after they pass a test
Single Agent Guide
Build out your first agent

