Personal AI Infrastructure

Run your life on
your own AI.

PAI is the open-source Life Operating System. Memory, skills, hooks, agents, voice — yours, local, sovereign.

~/.claude — pai
pai >
01 — Thesis

Your life has a current state and an ideal state. PAI is what moves you between them.

The chatbot is not the product. Infrastructure is. A real Life OS needs memory that persists, skills that compose, hooks that fire, agents that ship, and a voice you can actually talk to — all running on hardware you own.

PAI is the open-source scaffolding for that. Every piece is code you can read. Every secret lives on your machine. Your assistant is yours, not rented.

02Memory

Remembers what matters. Forgets nothing on purpose.

File-based, human-readable, version-controlled. Your AI builds a picture of who you are, what you're working on, and what you've already decided — so it stops asking.

4 typesuser · feedback · project · reference
memory/feedback_never_mention_arc_browser.md
pai > pai memory recall 'browser preference'
→ feedback.never_mention_arc_browser
→ browser: Dia. 20+ prior violations. zero tolerance.
applied to next response.
03Skills

One command invokes an entire workflow.

Skills are composable capabilities — each one a directory of workflows, tools, and references. Web design, research, blog writing, threat modeling, deployment — all under one interface.

69skills shipped
skill Webdesign
pai > pai skill webdesign redesign ourpai.ai
→ WebsiteToRedesign workflow
→ research · critique · brief · generate · integrate · deploy
9 components, 1 deploy, 1 verified screenshot.
04Hooks

Every tool call is an event. Every event is a hook.

Pre-and-post hooks on every model action. Validate, inject context, notify, log, block. The system behaves the way you want — not the way a vendor decided.

17hooks active
hook PromptInjectionGuard
pai > PreToolUse: WebFetch(url=https://…)
→ PromptInjectionGuard scanning
→ SecurityPipeline: 5 gates pass
allowed.
05Agents

Compose teams. Dispatch in parallel. Ship.

Custom personalities built from base traits + voice + specialization. Spin up four researchers, an Engineer, an Architect, and a QA tester — each one parallel, isolated, and scoped.

32agents / parallel
agent team
pai > pai team dispatch research-landing-pages
→ 4 researchers · parallel · bg
→ ClaudeResearcher · PerplexityResearcher · GeminiResearcher · GrokResearcher
16 refs synthesized in 2m 04s.
06Voice

Talk to the system. Hear it think.

ElevenLabs TTS on every response. Named character voices per agent. A daemon on port 31337 that turns any notification into audio, any dictation into action.

31337voice daemon port
voice lane
pai > pai voice 'what did i miss today'
→ stt · intent · route · reply · tts
→ Kai (Daniel's DA) speaking
1 cal shift · 2 PR reviews · rain at 4pm.
07Commands

A CLI for your life.

/ur, /ud, /pu, /tb, /cs — single-letter commands that orchestrate whole skills. Your keyboard becomes the fastest way to operate the system.

CLI-firstdeterministic · scriptable · fast
commands
pai > /cs
→ ContextSearch across sessions, PRDs, work dirs
→ 5 recent sessions · top-3 PRDs loaded
cold-start recovered in 1.4s.
08Stack

What PAI actually runs on.

No black boxes. No magic. A small set of composable pieces, each one you can read, fork, or replace.

Runtime
  • bun
  • TypeScript
  • Node APIs
Harness
  • Claude Code
  • MCP
  • Anthropic SDK
  • ElevenLabs
Models
  • Opus 4.7
  • Sonnet 4.6
  • Haiku 4.5
  • GPT-5.4
  • Gemini 3 Pro
Hooks
  • PreToolUse
  • PostToolUse
  • SessionStart
  • SessionEnd
  • Stop
Agents
  • Engineer
  • Architect
  • Algorithm
  • QA
  • Researcher ×4
Infra
  • Cloudflare Workers + Pages
  • D1
  • KV
  • R2
  • launchd · macOS
Surfaces
  • CLI
  • Voice (port 31337)
  • Pulse dashboard
  • iOS app
  • iMessage bot
License
  • MIT
  • open-source
  • self-hosted
09Install

Two commands. One Life OS.

Clone the repo. Install the dependencies. You're running PAI.

install
$ git clone git@github.com:danielmiessler/PAI ~/.claude
$ cd ~/.claude && bun install
10Community

People are building this with us.

PAI is open-source on GitHub. Star it, fork it, open an issue, send a PR. The list below is live — pulled from the repo right now.

Stars
Forks
Open issues