How pi-pod/pipod works
Pi Pod runs pi coding-agent sessions in remote sandbox pods. A CLI or mobile app signs in, requests pod lifecycle operations from the server, and drives a session through the server gateway; the server provisions pods in the sandbox service. The server also exposes jobs, templates, and settings capabilities. The README establishes the main cross-service relationships; detailed wiring for unsampled subsystems is therefore not inferred.
Main entry points: app.ts Server API · cli.ts CLI · RootView.swift iOS app · MainActivity.kt Android app
Components 16
User clients
- CLI
cli/src/cli.ts - iOS app
ios/PiPod/Features/Common/RootView.swift - Android app
android/app/src/main/kotlin/com/pipod/app/MainActivity.kt
Control plane
- Server API
server/src/server/app.ts - Pod lifecycle
server/src/server/pods/routes.ts - Session gateway
server/src/server/gateway/routes.ts - Scheduled jobs
server/src/server/jobs/routes.ts - Pod templates
server/src/server/templates/routes.ts - Settings
server/src/server/settings/routes.ts - Postgres
server/src/server/db/index.ts
Pod runtime
- Sandbox API
sandbox/src/api/server.ts - Pod manager
sandbox/src/core/manager.ts - Container runtime
sandbox/src/runtime/crun.ts - Pi shim
server/src/core/shim/pi-pod-ext.ts
Identity
- Zitadel OIDC
Other components
- User
Connections 20
- User → CLI: uses
README.md - User → iOS app: uses
README.md - User → Android app: uses
README.md - CLI → Server API: requests
README.md - iOS app → Server API: requests
README.md - Android app → Server API: requests
README.md - Server API → Pod lifecycle: registers routes
server/src/server/app.ts - Server API → Session gateway: registers routes
server/src/server/app.ts - Server API → Scheduled jobs: registers routes
server/src/server/app.ts - Server API → Pod templates: registers routes
server/src/server/app.ts - Server API → Settings: registers routes
server/src/server/app.ts - Server API → Postgres: uses
server/src/server/app.ts - Pod lifecycle → Sandbox API: provisions pods
README.md - Sandbox API → Pod manager: dispatches requests
sandbox/src/api/server.ts - Pod manager → Container runtime: starts containers
sandbox/src/core/manager.ts - Session gateway → Pi shim: relays sessions
README.md - Pi shim → Container runtime: runs inside pod
README.md - CLI → Zitadel OIDC: signs in via
README.md - iOS app → Zitadel OIDC: signs in via
README.md - Android app → Zitadel OIDC: signs in via
README.md