The Open Source Operating System for Personal Intelligence.
Documentation โข Website โข Contributing
paiOS is more than just an operating system; it is the foundation for a new category of Personal AI Hardware.
Our mission is to build a privacy-first "Second Brain" that lives with you, understands your context, and operates independently of the cloud. We believe your intelligence should belong to you-running on trusted hardware, physically under your control.
To achieve this, we are building a unified, modular OS that powers multiple form factors, starting with paiLink (Portable AI Server) and evolving into paiGo (standalone AI Wearable).
paiOS is designed to run on diverse hardware, bringing local intelligence to where you need it most.
Currently in Development
A powerful Portable AI Server (based on the Radxa Rock 5C) that connects via USB and acts as a private AI backend for your existing tools.
The Idea: Plug it in, and any app that supports Ollama (or a compatible API) can use paiOS for inference. Your data stays on the device โ no cloud required.
Compatible Apps (Examples):
- Coding: VS Code (Continue, CodeGPT), Zed, Neovim
- Writing: Obsidian, LibreOffice, OnlyOffice
- Chat: Open WebUI, Lobe Chat
Key Features:
- ๐ Standard API: Ollama-compatible endpoint for seamless integration.
- ๐ Air-Gapped Privacy: Inference happens on the Portable AI Server, never in the cloud.
- โก Hardware Acceleration: NPU/GPU powered for real-time responses.
The North Star
The evolution of paiLink into a standalone, battery-powered AI wearable. It includes all capabilities of paiLink (local AI server, Ollama-compatible API) plus integrated sensors for contextual awareness.
Equipped with a camera and microphone array, it passively captures context to answer questions like "Where did I leave my keys?" or "What was the action item from that meeting?".
Everything paiLink can do, plus:
- ๐ท Vision: Onboard camera for multimodal AI (Vision-Language models).
- ๐๏ธ Always-On Audio: Continuous, private voice capture.
- ๐ Standalone: No phone or PC required โ works independently.
- ๐ง Contextual Memory: "What did I discuss with Sarah last Tuesday?"
| Feature | โ๏ธ Cloud AI (SaaS) | ๐ paiOS (Local) |
|---|---|---|
| Privacy | Your data trains their models. | Your data never leaves the device. |
| Ownership | Renting intelligence (Subscription). | Owning the intelligence (One-off). |
| Latency | Network dependency (>500ms). | Real-time Neural Engine (<100ms). |
| Usage | Pay per token / Rate limits. | Unlimited. Use it as much as you want. |
| Trust | "Trust us, we're compliant." | "Verify it yourself." (Open Source). |
We are currently in Phase 0 (Foundation).
- Phase 0: Foundation: Groundwork, Architecture Definitions, CI/CD, and Documentation infrastructure.
- Phase 1: paiLink: Launching the Portable AI Server in Developer (Radxa Rock 5C) and Professional (Aluminum Case) editions.
- Phase 2: paiGo: Evolution into a standalone, multimodal AI Wearable.
paiOS is built on Hexagonal Architecture (Ports and Adapters) to ensure that the core logic ("The Brain") is completely decoupled from the specific hardware it runs on. This allows paiOS to run on paiLink today and paiGo tomorrow.
- Language: Rust (Safety, Performance, Concurrency)
- Build System: Debos (Reproducible, immutable Debian-based OS images)
- Documentation: Starlight (Modern, accessible, version-controlled)
graph TD
User(("๐ค User")) -- "Voice / Buttons" --> Engine
Engine["โ๏ธ paiEngine\n(Rust ยท Tokio)"] -- "REST / gRPC / MCP" --> Clients
Clients["๐ป Host Clients\n(OpenWebUI, Obsidian, Cursor)"] -- "Configures" --> Engine
Engine -- "V4L2 / ALSA / RKNN" --> HW["๐ง Hardware\n(RK3588S2 NPU ยท Camera ยท Mic)"]
Engine -. "Opt-in fallback" .-> Cloud["โ๏ธ Cloud AI"]
- Hexagonal Architecture: The engine core (domain) is fully decoupled from hardware via Rust traits (ports). Adapters implement those traits โ swap hardware without touching business logic.
- Security by Design: Hardware access (camera, microphone, NPU) is designed to flow through
paiEngine, where policy and permission checks are centralized. This helps ensure recording behavior is user-controlled. - Platform Flexibility:
paiEngineis a flexible API platform. For wearables (paiGo), the smartphone app (paiApp) is the primary interface for configuration and interaction. Developers can build custom GUIs/HMIs on top via REST, gRPC, or MCP APIs. - Single Source of Truth: For deep dives into the architecture, see the Architecture Documentation.
This is a monorepo containing the full stack. Dependencies include Rust (latest stable) and debos.
cd engine
cargo build --release
# Run tests
cargo testRequires Docker
# 1. Build the pai-engine .deb (placeholder binary by default)
bash os/packaging/build-deb.sh
# 2. Build the image via the godebos/debos container
docker run --rm \
-v "$(pwd):/build" -w /build \
--cap-add SYS_ADMIN \
godebos/debos \
--disable-fakemachine -t machine:radxa-rock5c os/image.yamlNote: For flashing instructions, hardware targets, and the full OS build guide, see the Documentation.
We are building the user-centric, privacy-first alternative to Big Tech AI.
- Check the Contributing Guide.
- Pick an issue from GitHub Issues.
- Sign our CLA (one-time) - the CLAassistant bot will guide you.
- Engine & OS: GNU AGPL v3 (Viral Open Source)
- Apps & SDK: MIT (Ecosystem Friendly)
