Quick Start · Documentation · Examples · Updates · Community
Watch the full PAI walkthrough | Read: The Real Internet of Things
Right now the most powerful AI setups are being built inside companies with massive engineering teams, and for the purpose of increasing efficiency and profits.
That's all good, but I think the purpose of technology is to serve humans—not the other way around. These new AI frameworks should be available to everyone, including people not in technology, so that regular people can use it to help them flourish.
That's what PAI is. It's the foundation for building a Personal AI System that understands your larger goals and context, gets better over time, and that works for you because it's yours. Not some generic chatbot. Not some common assistant. A full platform for magnifying yourself and your impact on the world.
Related reading:
- The Real Internet of Things — The vision behind PAI (full book)
- AI's Predictable Path: 7 Components — Visual walkthrough of where AI is heading
PAI (Personal AI Infrastructure) is an open-source template for building your own AI-powered operating system. It's currently built on Claude Code, but designed to be platform-independent — the architecture, skills, and workflows are structured so future migrations to other AI platforms are straightforward.
| Component | Description |
|---|---|
| Skills | Self-contained AI capabilities with routing, workflows, and documentation |
| Agents | Specialized AI personalities for different tasks (engineer, researcher, designer) |
| Hooks | Event-driven automation that captures work and manages state |
| History | Automatic documentation system (UOCS) that captures everything |
Tip
Start clean, small, and simple. Build the scaffolding that makes AI reliable.
Big updates! PAI is now fully platform-agnostic — your AI identity, your system.
| Feature | Description |
|---|---|
| 📊 Observability Dashboard | Real-time agent monitoring with live charts |
| 🎭 Genericized Identity | Configure your DA name, it flows everywhere |
| ⚙️ Better Configuration | Clear docs for all environment variables |
git clone https://github.com/danielmiessler/Personal_AI_Infrastructure.git
cd Personal_AI_Infrastructure.claude/tools/setup/bootstrap.shThe bootstrap script will:
- Check your shell (recommends zsh or bash)
- Install Bun if needed (PAI's package manager)
- Check for Claude Code
- Launch the interactive setup wizard
The setup wizard will:
- Ask where to install PAI (default:
~/.claude) - Configure your name and email
- Name your AI assistant (default: "Kai")
- Choose a color theme
- Set up voice server (macOS)
- Add environment variables to your shell
# Copy environment template
cp ~/.claude/.env.example ~/.claude/.env
# Edit with your API keys
nano ~/.claude/.envsource ~/.zshrc # Load PAI environment
claudeTip
Non-interactive setup for automation:
bun run setup.ts --pai-dir ~/.claude --name "Your Name" --email [email protected] --force📚 For detailed setup, see docs/QUICKSTART.md
All documentation lives in the CORE skill (.claude/skills/CORE/):
| Document | Description |
|---|---|
| CONSTITUTION.md | System philosophy, architecture, operating principles |
| SkillSystem.md | How to create your own skills — the canonical skill structure guide |
| SKILL.md | Main PAI skill with identity, preferences, quick reference |
| hook-system.md | Event-driven automation |
| history-system.md | Automatic work documentation (UOCS) |
Additional Reference
| Document | Description |
|---|---|
| prompting.md | Prompt engineering patterns |
| aesthetic.md | Visual design system |
| voice-server/README.md | Text-to-speech feedback |
Explore example skills in .claude/skills/:
| Skill | Description |
|---|---|
| observability/ | Real-time agent monitoring dashboard with WebSocket streaming |
| brightdata/ | Four-tier progressive web scraping with automatic fallback |
| fabric/ | Integration with Fabric pattern system (242+ AI patterns) |
| research/ | Multi-source research workflows |
| create-skill/ | Templates for creating new skills |
Each skill demonstrates the skills-as-containers pattern with routing, workflows, and self-contained documentation.
PAI is built on 12 foundational principles:
|
π Scaffolding > Model π ENG / SRE π As Deterministic as Possible π Code Before Prompts π UNIX Philosophy π CLI as Interface |
π Goal → Code → CLI → Prompts → Agent π Spec / Test / Evals First π Meta / Self Updates π Custom Skill Management π History π Custom Agent Personalities / Voices |
Complete architecture: .claude/skills/CORE/CONSTITUTION.md
Skills Architecture — 3-tier progressive disclosure
Skills are self-contained containers with SKILL.md as the entry point. Workflows handle multi-step operations, tools provide CLI scripts, and docs contain reference material — all progressively loaded only when needed.
Hook System — Event-driven automation
Hooks capture everything automatically — before tool execution, after tool execution, and on user feedback. Scripts like capture-all-events.ts and capture-session-summary.ts run invisibly to build context.
History System — Automatic documentation (UOCS)
Everything is captured, nothing is lost. Session work, tool outputs, and agent results flow into the history system, producing markdown files, JSONL logs, and timestamped entries organized by date.
| Category | Choice | Note |
|---|---|---|
| Runtime | Bun | NOT Node.js |
| Language | TypeScript | NOT Python |
| Package Manager | Bun | NOT npm/yarn/pnpm |
| Format | Markdown | NOT HTML for basic content |
| Testing | Vitest | When needed |
| Voice | ElevenLabs | TTS integration |
Kai and I work hard to address issues and PRs throughout the week — we try not to get too far behind!
| Channel | Link |
|---|---|
| 🐛 Issues | Report bugs or request features |
| 💬 Discussions | Ask questions and share ideas |
| 🎥 Video | Watch the full PAI walkthrough |
| 📝 Blog | The Real Internet of Things |
v0.9.0 (2025-12-01) — Platform Agnostic Release
This release focuses on making PAI fully portable and fork-friendly. Your AI, your identity, your system.
Observability Dashboard
- Complete real-time agent monitoring at
.claude/Observability/ - WebSocket streaming of all agent activity
- Live pulse charts, event timelines, and swim lanes
- Multiple themes (Tokyo Night, Nord, Catppuccin, etc.)
- Security obfuscation for sensitive data
Genericized Agent Identity
- All agent references now use
process.env.DA || 'main' - No more hardcoded names — your DA name flows through the entire system
- Observability dashboard shows your configured identity
Platform-Agnostic Configuration
- Clear separation:
settings.jsonfor identity/paths,.envfor API keys DA(Digital Assistant name) — your AI's identityPAI_DIR— root directory for all configurationTIME_ZONE— configurable timezone for timestamps
Skill System Improvements
- Canonical TitleCase file naming throughout
- Standardized skill-workflow-notification script for dashboard detection
- All paths use
${PAI_DIR}/for location-agnostic installation
v0.8.0 (2025-11-25) — Research & Documentation
Research Skill
- Comprehensive research skill with 10 specialized workflows
- Multi-source research with parallel agent execution
- Fabric pattern integration (242+ AI patterns)
Infrastructure
- Path standardization using
${PAI_DIR}/throughout PAI_CONTRACT.mddefining core guarantees- Self-test validation system for health checks
- Protection system for PAI-specific files
v0.7.0 (2025-11-20) — Protection & Clarity
PAI Path Resolution System (#112)
- Centralized
pai-paths.tslibrary — single source of truth - Smart detection with fallback to
~/.claude - Updated 7 hooks to use centralized paths
PAI vs Kai Clarity (#113)
PAI_CONTRACT.md— official contract defining boundaries- Self-test system (
bun ${PAI_DIR}/hooks/self-test.ts) - Clear README section distinguishing PAI from Kai
Protection System
.pai-protected.jsonmanifest of protected filesvalidate-protected.tsscript for pre-commit validation- Pre-commit hook template for automated checks
v0.6.5 (2025-11-18) — BrightData Integration
Four-Tier Progressive Web Scraping
- Tier 1: WebFetch (free, built-in)
- Tier 2: cURL with headers (free, more reliable)
- Tier 3: Playwright (free, JavaScript rendering)
- Tier 4: Bright Data MCP (paid, anti-bot bypass)
v0.6.0 (2025-11-15) — Major Architecture Update
Repository Restructure
- Moved all configuration to
.claude/directory - Skills-as-containers architecture
- Three-tier progressive disclosure
Skills System
- Art skill with visual content generation
- Story-explanation skill for narrative summaries
- Create-skill and create-cli meta-skills
Hook System
- Comprehensive event capture system
- Session summary and tool output capture
- Tab title updates
Voice Integration
- Voice server with ElevenLabs TTS
- Session start notifications
v0.5.0 and Earlier
v0.5.0 — Foundation
- CORE skill as central context loader
- Constitution defining system principles
- CLI-First Architecture pattern
- Initial skills: Fabric, FFUF, Alex Hormozi pitch
Pre-v0.5.0 — Early Development
- Initial repository setup
- Basic settings.json structure
- Agent personality definitions
- Foundational hook experiments
MIT License — see LICENSE for details.
Built on Claude Code by Anthropic.
PAI is the technical foundation for Human 3.0 — a program I created to help people transform into a version of themselves that can thrive in the post-corporate world that's coming. Human 3.0 means AI-augmented humans who build and control their own AI systems.
Right now, the most sophisticated AI infrastructure exists inside corporations with massive engineering teams. PAI exists to change that. To give individuals the same scaffolding that companies spend millions building.
Your AI, knowing how you work, learning from your patterns, serving your goals — not some corporation's engagement metrics. That's what this enables.
