Devalogam
Realm of the gods — a self-evolving, private AI command center
A neobrutalist, self-hosted AI operating environment that organizes my whole digital life into five Spheres, governed by a pantheon of ten AI agents. It runs always-on on a Raspberry Pi (the body) while the AI thinking lives on a separate Mac mini (the swappable brain) — fully private, reachable only over my own Tailscale network.
The full story — architecture, the ten agents & the stack · + 3 more episodes
The one fact that shapes everything: a Raspberry Pi 4B can't run a serious AI model. So Devalogam splits into a body and a brain. The body — web app, API and database — runs on the always-on Pi. The brain — a large language model — is kept remote and swappable (Ollama on a Mac mini by default, with Ollama Cloud, Claude or Gemini as fallbacks). The dashboard is fully usable with no brain at all: Kanban, Tasks, Calendar and Notes work entirely on the Pi, and the AI features simply light up when a brain is reachable.
The load-bearing component is Gub — an LLM router and meter. It health-checks providers in priority order, returns the first reachable one, fails over automatically, and meters every call for budgeting. Configuration, not code, picks the brain: switching from the Mac mini to Claude to a future bigger server is a one-line .env change, never a rewrite.
Capabilities grow like biology. An organ is a reusable function with a typed contract; an organism composes organs into a tool (Kanban, Calendar); a living organism is a running instance rendered as a card on the Land. One task organ feeds Kanban, Tasks and Calendar — implement once, compose three ways. A pantheon of ten AI agents (modeled on Hindu deities) governs the realm, all sharing one runtime and differing only by persona, data scope and tools.
Stack: a pnpm monorepo — a React + Vite PWA, a Fastify API, PostgreSQL 16 with pgvector — all behind a single Caddy reverse-proxy on one origin, packaged as Docker Compose. Security is Tailscale-only: nothing is exposed to the public internet, secrets never leave the Pi or reach the browser, and the whole system moves to a beefier host by copying a folder and a database dump.
Proves: end-to-end product ownership of a private AI platform — architecture, swappable-brain resilience, security posture and portability.





















