Pipo is an autonomous, always-on AI workflow engine and desktop daemon.
Unlike tab-bound chatbots or prompt wrappers, Pipo runs as a persistent background daemon paired with native Go companion sidecars. It retains durable context in an SQLite WAL vault, coordinates multi-step DAG workflows, schedules autonomous daily rhythms, and drives local desktop automation — governed by strict, runtime authority fences.
Before you deploy Pipo
Pipo decouples intelligence from execution. The central Brain coordinates memory, LLM routing, and workflows. Local Hands (companion sidecars) execute terminal commands, inspect screens via OCR, and interact with desktop software over an encrypted, token-authenticated WebSocket channel.
Installation & Setup
Pipo runs as a native Bun daemon or a Docker container. The core server listens on port 1846 (HTTP REST API, WebSocket transport, and embedded Web Dashboard). Setup includes 1-click zero-token onboarding for local setups, eliminating manual enrollment key friction.
curl -fsSL https://raw.githubusercontent.com/motius/pipo/main/install.sh | bash
What install.sh does: Checks and installs the Bun runtime if missing; clones the repository to ~/.pipo/daemon; compiles UI assets via bun run build:ui; symlinks the pipo binary into your PATH; provisions ~/.pipo/config.yaml with auth.insecure_open_access: true; and launches the daemon in the background.
irm https://raw.githubusercontent.com/motius/pipo/main/install.ps1 | iex
What install.ps1 does: Validates WSL2 and active distributions; downloads install.sh byte-safely without PowerShell CRLF corruption; compiles the brain in WSL2; pre-populates ~/.pipo/config.yaml; queries/mints the desktop JWT enrollment token and writes it directly to ~/.pipo/sidecar.yaml; and automatically opens http://localhost:1846 in your browser. Zero token copy-pasting is required.
docker run -d --name pipo -p 1846:1846 -v pipo-data:/data ghcr.io/motius/pipo:latest
Data Persistence: The /data volume retains SQLite databases (vault.db), encryption keys (.secrets.enc), and logs. Note: Docker containers cannot manipulate the host desktop directly; install a native sidecar on the host machine to grant computer interaction.
git clone https://github.com/motius/pipo.git
cd pipo
bun install
bun run build:ui
bun run src/daemon/index.ts
desktop enrollment on first boot, pre-populating ~/.pipo/sidecar.yaml with full capabilities and a valid ES256 JWT.
pipo enroll "remote-name" and supply it to the remote companion binary.
1846 is hardcoded as Pipo's primary gateway. Ensure port 1846 is free before launching.
Quick start
-
Confirm daemon health.
Verify the daemon is alive and listening:
curl http://localhost:1846/api/health. The JSON response reports uptime, memory (Heap/RSS), and status for all 7 internal services. -
Access the control plane.
Navigate to
http://localhost:1846. On fresh installations withinsecure_open_access: true, the dashboard loads instantly without blocking on JWT authentication headers. -
Connect your model provider.
Open Settings → Models in the dashboard. Enter your API key for Anthropic Claude, OpenAI, Google Gemini, OpenRouter, or DeepSeek. For 100% local, private inference, select Ollama at
http://127.0.0.1:11434. Keys are encrypted at rest using AES-256-GCM. - Verify desktop companion connection. Launch the desktop sidecar application. The dashboard header and the stationary circular Pebble HUD (anchored at the bottom-right corner) will glow Electric Indigo, confirming WebSocket connection.
System requirements
Linux: Ubuntu 20.04+, Debian 11+, Fedora 36+, Arch Linux (x86_64 & ARM64).
Windows: Windows 10/11 64-bit with WSL2 (Ubuntu 22.04 LTS recommended) for the daemon; native Win32 companion for desktop control.
Disk: ~350MB for daemon dependencies and compiled UI bundle; durable disk storage for SQLite database and vector embeddings.
1846 must be available locally. Sidecars communicate via WebSocket (ws://localhost:1846/sidecar/connect). Outbound HTTPS access is required for external LLM APIs (port 443).
First run & onboarding mechanics
When Pipo initializes for the first time, it performs deterministic initialization steps before accepting traffic:
vault.db with WAL mode enabled. Creates tables for sidecars, secrets, memory vectors, cron schedules, workflow definitions, and audit logs.
~/.pipo/sidecar-keys. The private key signs sidecar JWT enrollment tokens; the public key is exposed at /api/sidecars/.well-known/jwks.json.
ensureLocalEnrollment() queries the database for an existing desktop registration. If absent, it inserts the record, assigns standard capabilities, and populates ~/.pipo/sidecar.yaml.
manage_goals, run_command, read_file), and starts the 30-second health monitoring ticker.
Configuration architecture
Pipo maintains a hard separation between low-level system infrastructure (managed via YAML on disk) and authoritative runtime state (managed exclusively in the SQLite database).
daemon:
port: 1846
data_dir: "~/.pipo"
log_file_path: "~/.pipo/logs/pipo.log"
log_file_max_bytes: 10485760 # 10MB rotation
auth:
insecure_open_access: true # False requires JWT Bearer auth
telemetry:
enabled: false # Opt-in anonymous crash metrics
- LLM Providers: Endpoints, active models, fallback routes.
- Encrypted API Keys: Stored in
.secrets.encusing AES-256-GCM authenticated encryption. - Voice & Personality: Engine selection (
openwakeword, WebSpeech) and behavioral prompt guidelines. - Workflows & Schedules: DAG step graphs, execution logs, and autonomous rhythm triggers.
- Device Registry: Enrolled sidecar device IDs, public keys, and granted capabilities.
Any user-owned blocks (such as llm:, voice:, personality:, or billing:) manually added to ~/.pipo/config.yaml are explicitly discarded on reload. The SQLite database is the sole authoritative source of truth. All model and provider adjustments must be made through the dashboard UI or REST API.
Platform support & boundaries
pipo-Setup.exe), providing desktop tray and overlay controls.
High-level architecture
Pipo decouples the reasoning engine from the execution surface via an asynchronous JSON-RPC protocol over WebSocket.
Daemon & runtime services
The Bun daemon manages 7 concurrent microservices via a central ServiceRegistry:
/sidecar/connect. Validates ES256 JWT tokens, routes tool execution calls to the appropriate companion machine, and executes periodic revocation sweeps to sever stale sessions immediately.
goals:morning(0 7 * * *): Reviews uncompleted goals and schedules daily priorities.goals:evening(0 20 * * *): Reviews task progress, logs learnings to memory, and summarizes accomplishments.cron.hourly: Background database compaction and health auditing.
Control plane dashboard
Served directly by the daemon at http://localhost:1846. Built as an optimized, zero-node-runtime Single Page Application (SPA) bundled into ui/dist.
Ambient circular Pebble HUD
Pipo includes an ambient desktop interface called the Pebble. It provides an immediate visual status indicator and voice interaction point.
border-radius: 50% !important; aspect-ratio: 1 / 1;) and anchored permanently to the bottom-right corner (bottom: 32px; right: 32px).
bottom: 86px; right: 32px, displaying real-time agent thoughts and approval cards.
State Color Architecture
Desktop companion sidecar
The sidecar is a native Go application compiled for each target OS. It runs as a low-overhead background process, connecting to the daemon over WebSocket.
config_version: 2
token: "eyJhbGciOiJFUzI1NiIsIntpZCI6..." # Minted JWT token
brain: "" # Empty defaults to ws://localhost:1846/sidecar/connect
capabilities:
- terminal
- filesystem
- clipboard
- screenshot
- system_info
- awareness
- desktop
- browser
- ocr
- windows
- pebble
- sub_pebble
- file_watch
- processes
- notifications
Capability matrix & sandboxing
Sidecar capabilities are gated at the RPC layer. When an action is requested, both the sidecar configuration and daemon authority rules evaluate the call:
~/.ssh, ~/.aws, ~/.gnupg, ~/.kube, ~/.pipo/sidecar-keys, and system startup folders.
Workflows & DAG engine
Pipo's EngineFlowExecutor coordinates Directed Acyclic Graph (DAG) workflows. Workflows blend deterministic programmatic logic with bounded AI judgement.
Step Types & Semantics
System mental model
Cross-platform setup
Deploying Pipo across multiple machines allows one central daemon to coordinate several physical devices:
desktop-A while executing builds on build-server.
CLI command reference
pipo start
Starts the Pipo daemon in the background (or foreground with --foreground).
pipo stop
Gracefully shuts down running daemon processes and closes active WebSocket sessions.
pipo status
Prints process PID, port 1846 binding, memory footprint (Heap/RSS), database size, and connected sidecars.
pipo doctor
Executes diagnostic suite checking Bun runtime, SQLite integrity, port availability, and network routes.
pipo enroll "device-name"
Mints an ES256 JWT enrollment token for pairing a remote companion sidecar.
pipo sidecars list
Displays all registered companion sidecars, connection timestamps, and granted capabilities.
pipo sidecars revoke <id>
Revokes sidecar credentials and immediately disconnects active WebSocket connections.
pipo logs -f
Follows live colored daemon logs with real-time tool execution output.
Local models & voice engine
Pipo natively supports completely offline, private operation without sending data to third-party cloud APIs:
http://127.0.0.1:11434. Recommended models: llama3.1:8b, qwen2.5-coder:7b, or mistral-nemo.
Production operations
systemctl --user enable pipo) or launchd on macOS to ensure the daemon automatically restarts after reboots.
~/.pipo/vault.db. Perform atomic backups using SQLite backup API: sqlite3 ~/.pipo/vault.db ".backup ~/.pipo/vault-backup.db".
~/.pipo/.secrets.key and ~/.pipo/sidecar-keys. If lost, encrypted credentials cannot be recovered and sidecars must be re-enrolled.
daemon.log_file_max_bytes (default 10MB). Automatically rotates log archives to avoid disk exhaustion.
Logs, health & telemetry
Pipo exposes structured health endpoints for integration with monitoring systems:
{
"uptime": 1420,
"services": {
"telemetry": "running",
"agent": "running",
"observers": "running",
"channels": "running",
"sidecar-manager": "running",
"websocket": "running",
"site-builder": "stopped"
},
"memory": {
"heapUsed": 15728640,
"heapTotal": 16777216,
"rss": 119537664
},
"database": {
"connected": true,
"size": 2719744
}
}
Scaling & multi-sidecar operations
Scale execution capacity horizontally across multiple client machines while keeping the brain and authority rules centralized:
- Run single authoritative daemon instance per workspace. Do not mount multiple daemons against the same SQLite database file.
- Connect separate sidecars for distinct operational tasks: Developer Laptop, Remote Scraper, CI Builder.
- Assign least-privilege capability masks to each enrolled device in
sidecar.yaml.
Troubleshooting guide
Port 1846 is already in use +
Another process or prior Pipo daemon is holding port 1846. Check active listeners with netstat -ano | findstr 1846 (Windows) or lsof -i :1846 (macOS/Linux). Terminate the conflicting process with pipo stop or kill the PID before starting.
Sidecar shows disconnected in dashboard +
Verify that the daemon is running and reachable. Inspect ~/.pipo/sidecar.yaml and ensure the token: field contains a valid JWT. For remote setups, verify that firewall rules allow outbound WebSocket connections on port 1846.
WSL2 localhost connectivity issues (Windows) +
Windows 11 mirrors WSL2 localhost ports by default. If http://localhost:1846 fails on older Windows 10 setups, check your WSL2 IP with wsl hostname -I or enable mirrored networking in %USERPROFILE%\.wslconfig:
[wsl2]
networkingMode=mirrored.
EBUSY or database locked errors on Windows +
Occurs if multiple processes attempt to access vault.db without WAL mode. Ensure all file operations route through Bun's SQLite driver and close external SQLite browser utilities before running migrations.
Production workflow patterns
Privacy & data isolation
Pipo is built around explicit data residency. Your files, conversation history, workflow runs, and encryption keys never leave your controlled hardware unless you configure a hosted third-party LLM provider.
Disclaimer & operational boundaries
Pipo possesses direct operating system and application control capabilities. Always maintain least-privilege configurations and verify workflow steps before elevating autonomy.
Do not grant unconditional terminal or filesystem permissions on critical production systems without human-in-the-loop approval gates. Always maintain external offline backups of sensitive files.