From 64196426170ffc643bcd2954a5de83147eabe43f Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Fri, 31 Jul 2026 11:14:15 +1000 Subject: [PATCH] sam-4screen-desktop 2026-7-31:11:14:15 --- .obsidian/workspace.json | 14 +++--- .../350 AI/Pi Agent Extensions & Skills.md | 49 +++++++++++++++++++ .../Home Network Map Overview.md | 5 +- 3 files changed, 59 insertions(+), 9 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 6be2553..2ab3ff7 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md", - "mode": "source", + "file": "300 areas/350 AI/Pi Agent Extensions & Skills.md", + "mode": "preview", "source": true }, "icon": "lucide-file", - "title": "Home Network Map Overview" + "title": "Pi Agent Extensions & Skills" } } ] @@ -181,10 +181,10 @@ "state": { "type": "file-properties", "state": { - "file": "300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md" + "file": "300 areas/350 AI/Pi Agent Extensions & Skills.md" }, "icon": "lucide-info", - "title": "File properties for Home Network Map Overview" + "title": "File properties for Pi Agent Extensions & Skills" } } ], @@ -209,8 +209,9 @@ }, "active": "29ff3dd1c6bfd474", "lastOpenFiles": [ - "100 inbox/Pi Dashboard.md", + "300 areas/350 AI/Automated Agentic Tools.md", "300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md", + "100 inbox/Pi Dashboard.md", "300 areas/360 Dev-Ops Network Computers/Bumblebee - The Open-Source Scanner for Messy Dev Machines.md", "300 areas/360 Dev-Ops Network Computers/Backup System — Borg, Kopia & Restic.md", "300 areas/360 Dev-Ops Network Computers/Backup Health Check Commands.md", @@ -218,7 +219,6 @@ "300 areas/360 Dev-Ops Network Computers/Local Wep Apps.md", "300 areas/360 Dev-Ops Network Computers/Docker Containers.md", "300 areas/350 AI/Pi Agent Extensions & Skills.md", - "300 areas/350 AI/Automated Agentic Tools.md", "300 areas/360 Dev-Ops Network Computers/Pi MCP.md", "300 areas/360 Dev-Ops Network Computers/Pi Neovim Coding Harness.md", "300 areas/350 AI/Pi Subagent.md", diff --git a/300 areas/350 AI/Pi Agent Extensions & Skills.md b/300 areas/350 AI/Pi Agent Extensions & Skills.md index bc28ac3..6567018 100644 --- a/300 areas/350 AI/Pi Agent Extensions & Skills.md +++ b/300 areas/350 AI/Pi Agent Extensions & Skills.md @@ -20,6 +20,55 @@ aliases: [] --- +## OmniRoute — LLM Provider Router + +OmniRoute is the central LLM routing proxy running on .13 (port 20128/20129). All three machines route pi's LLM requests through it. + +| Aspect | Detail | +|--------|--------| +| **What it is** | Docker-based LLM proxy with **combo routing** — you define a prioritized list of providers and it tries them in order until one succeeds | +| **Where** | `.13:20129` via Docker, exposed through Caddy on .35 for remote access | +| **Provider registered in pi as** | `omni` (not `omniroute`) — the `omniroute-pi-ext-integration` npm package registers the `omni` provider | +| **Pi default model** | `default-opencode-go-ds-flash` — a combo on OmniRoute that prioritises OpenCode-Go's DeepSeek V4 Flash ($5/month sub) before falling back to other providers | +| **Combo chain** | User-created combo `default-opencode-go-ds-flash` tries providers in order: OpenCode-Go → OpenRouter → DeepSeek direct → Google Gemini | +| **Sub-agent routing** | Sub-agents route through the same combo — individual model IDs like `opencode-go/deepseek-v4-flash` match the combo and fall through the same priority chain | +| **Models** | 484 models available via OmniRoute (synced with `/omni sync`), available in pi's Ctrl+P model picker | +| **How pi connects** | The `omniroute-pi-ext-integration` extension registers all models + the `omni` provider. URL + API key set once via `/omni setup`. Re-sync via `/omni sync`. | + +### Files & Commands + +| Item | Location / Command | +|------|-------------------| +| Docker compose | `/home/sam/Docker/Containers/omniroute/docker-compose.yml` on .13 | +| pi extension | `omniroute-pi-ext-integration` (npm package, installed via `pi install npm:omniroute-pi-ext-integration`) | +| Extension config | `~/.pi/agent/models.json` — stores URL + API key for `omni` provider, plus model list | +| Setup | `/omni setup` (one-time: URL + API key) | +| Sync | `/omni sync` (re-fetch model list) | +| Access (local) | `http://192.168.20.13:20129/v1` | +| Access (via Caddy) | `https://omniroute.lab.audasmedia.com.au/v1` | +| API key | `sk-fff5c0d55c0bc0bf-b58ed0-76da5716` (stored in `~/.config/environment.d/10-secrets.conf` on .27/.51, hardcoded in settings.json on .13) | + +### Pi default model selection model + +Machines route through `omni` provider with `defaultModel: "default-opencode-go-ds-flash"`: + +``` +pi → omni provider → POST /v1/chat/completions { model: "default-opencode-go-ds-flash" } + → OmniRoute matches combo "default-opencode-go-ds-flash" + → Tries: OpenCode-Go → OpenRouter → DeepSeek direct → Google Gemini + → Returns first successful response +``` + +### Per-machine setup state + +| Machine | Package installed | Provider config | `/omni setup` done | Models synced | +|---------|-----------------|-----------------|-------------------|--------------| +| .27 | ✅ In home.nix | ✅ `omni` | ✅ | ✅ | +| .13 | ✅ pi install | ✅ `omni` | ✅ | ✅ | +| .51 | ✅ pi install | ✅ `omni` | ✅ | ✅ | + +--- + ## Extensions | Extension | Source | Purpose | diff --git a/300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md b/300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md index c3afb97..f6a2bf9 100644 --- a/300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md +++ b/300 areas/360 Dev-Ops Network Computers/Home Network Map Overview.md @@ -47,7 +47,7 @@ aliases: [] | Docker containers | | |---|---| -| **OmniRoute** | LLM proxy with combo routing (port 20128/20129) | +| **OmniRoute** | LLM proxy with combo routing (port 20128/20129). All pi LLM traffic routes through it. Combo `default-opencode-go-ds-flash` prioritises OpenCode-Go before falling through OpenRouter → DeepSeek direct → Google Gemini. See [[Pi Agent Extensions & Skills#OmniRoute — LLM Provider Router]] | | **worldmonitor** | Geopolitical news dashboard (port 3002) | | **mosquitto** | MQTT broker | | **pihole** | DNS ad-blocking (primary) | @@ -137,7 +137,8 @@ Host phone | `3002` | worldmonitor | .13 | | `8022` | SSH (Termux) | .150 phone | | `8022` | SSH (Termux) | .150 phone | -| `20128/20129` | OmniRoute | .13 | +| `20129` | OmniRoute API | .13 | +| `20128` | OmniRoute dashboard | .13 | | `7437` | engram | .13 | | `8787` | Headroom proxy | .13 |