LifeOSAI — Platform Overview

Browser & channel entry → User Management gateway → Agent API compute → Runtime engines → Data plane. External providers and DevOps shown as right rails.
CLIENTS Web Users Browser (Next.js) Tauri Desktop macOS · Win · Linux iOS App apps/ios · native Internal Admin Ops console Chat Users WhatsApp · Telegram Phone Caller Voice bridge EXTERNAL PROVIDERS LLM APIs Anthropic · Gemini OAuth Google · Microsoft Voice Telephony SIP · WebRTC Firebase firebase-admin Stripe billing · webhooks GCS cloud object storage THIRD-PARTY SERVICE CALLS Channel networks (WhatsApp · Telegram) are reached via the Channels System — see Diagram 3. DEVOPS + CLOUD INFRA GitHub Actions CI · CD · release-please Artifact Registry docker-images Cloud Run web · auth · UM Agent VM Pool Compute Engine · spot Terraform infra-as-code Tauri Sidecars local-mode runtime BUILD → PUBLISH → DEPLOY GitHub Actions publishes images to Artifact Registry, Terraform provisions Cloud Run + Compute Engine pools. LIFEOSAI PLATFORM Cloud (GCP) · Local (Tauri sidecars) EDGE TIER Ingress Cloud Run (HTTPS) · Tauri (HTTP) Auth Service apps/auth · 3002 Web SSR apps/web · Next.js · 3000 GATEWAY TIER User Management apps/user-management · 3001 Direct APIs files · models · billing · OAuth · plugins COMPUTE TIER · AGENT API (4000) Orchestration heartbeat · invoker event-bus Channels System WhatsApp (Baileys WS) Telegram (grammy) Phone Bridge + Gemini Live realtime voice REST + SSE runs · agents · issues routines · approvals RUNTIME TIER Claude Code claude-agent-sdk harness: + MCP + skills + sessions Pi Agent pi-agent-runtime harness: + MCP + skills + permissions Event Normalizer Pi → SDKMessage unified stream shape Both runtimes are harnesses — they load skills (.md) and spawn MCP servers themselves. agent-invoker resolves adapterConfig and dispatches to one of the two. DATA TIER Database Cloud SQL · Postgres or local SQLite Files Filestore (NFS) or ~/.lifeosai Secrets env config refs keychain (local) Same schema in both modes Prisma 7 · migrations under apps/user-management/prisma and apps/tauri/src-tauri/migrations-sqlite HTTPS (cloud) HTTP loopback (Tauri) chat/phone bypass — see Agent API routed proxy → Agent API invoke persist runs · events LLM · OAuth · Stripe outbound Stripe · OAuth callbacks hosts platform