From aa94c87ee811c5e12d956b80c528ce362ce58eea Mon Sep 17 00:00:00 2001
From: WebX11 SysOp
v4.6.146 — see refsgit-receive-pack answers 403; there is no SSH endpointpi 0.80.3 before being
written down.
+node -v # needs Node >= 22.19.0
+npm install -g @earendil-works/pi-coding-agent
+pi --version # e.g. 1.5.0
+That package installs the pi binary
+(bin: pi → dist/bundle/cli.js). A system-wide install lands in
+/usr/lib/node_modules/@earendil-works/pi-coding-agent; a user install needs
+~/.local/bin on PATH.
Ollama speaks the OpenAI wire format on http://127.0.0.1:11434/v1 by default, which is exactly
+what pi expects. Two files under ~/.pi/agent/ do the whole job:
// ~/.pi/agent/models.json
+{
+ "providers": {
+ "ollama": {
+ "baseUrl": "http://localhost:11434/v1",
+ "api": "openai-completions",
+ "apiKey": "ollama",
+ "compat": { "supportsDeveloperRole": false, "supportsReasoningEffort": false },
+ "models": [
+ { "id": "llama3.2:latest", "name": "Llama 3.2 (local)" },
+ { "id": "qwen2.5-coder:7b", "name": "Qwen2.5 Coder 7B (local)" }
+ ]
+ }
+ }
+}
+// ~/.pi/agent/settings.json
+{ "defaultProvider": "ollama", "defaultModel": "llama3.2:latest" }
+baseUrl points at your daemon — use
+http://localhost:11434/v1 for a local Ollama, or your own host:port. apiKey must be a
+non-empty string because the client sends it as a bearer token; Ollama ignores the value. The two
+compat flags off are what this provider needs.
models[]. Undeclared, pi --model llama3.2:latest fails with
+ Error: Model "llama3.2:latest" not found. Use --list-models — that is the single most common
+ configuration mistake and it looks like a connection problem.
+pi --list-models | grep ollama # your declared ids, with context limits
+ollama list # what the daemon actually serves
+pi -p --no-session --no-tools --model llama3.2:latest "Reply with exactly: LOCAL OK"
+A reply of LOCAL OK means the whole chain works:
+config → local daemon → model. Ids ending in -cloud are relayed by Ollama to
+ollama.com and need an ollama signin; local tags have no suffix.
git clone --depth 1 https://newos.webx11.duckdns.org/newos4.git /tmp/newos4
@@ -275,7 +324,7 @@ repository that cannot accept them.
--
cgit v1.2.3