Personal AI Infrastructure: Daniel Miessler's Agentic AI Setup for Humans — 2026 Complete Guide
Personal AI Infrastructure (PAI) by Daniel Miessler is a Life Operating System with 45 skills, 171 workflows, a Pulse daemon, and Algorithm v6.3.0. One-line install, MIT licensed. Combines strategy, execution, and reflection into one system.
- ⭐ 15689
- Updated 2026-06-13
Personal AI Infrastructure: Agentic AI Setup for Humans — 2026 Guide #
Personal AI Infrastructure (PAI) (15,000+ stars) by Daniel Miessler is a “Life Operating System” that combines AI strategy, execution, and reflection into one unified platform. With 45 skills, 171 workflows, 37 hooks, and Algorithm v6.3.0, PAI transforms AI from a simple tool into an intelligent partner that knows who you are and what you’re trying to achieve.
What Is PAI? #
PAI is not a chatbot, not a code generator, and not a productivity app. It is a Life Operating System — a complete infrastructure layer that sits between you and all your AI tools, managing context, strategy, and execution across every AI interaction you have.
PAI has three layers:
┌─────────────────────────────────────┐
│ PAI (The OS) │
│ Skills, Memory, Algorithm, Telos │
│ Identity Files, Containment │
├─────────────────────────────────────┤
│ Pulse (Life Dashboard) │
│ localhost:31337 │
│ Voice, Hooks, Observability, Cron │
├─────────────────────────────────────┤
│ The DA (Digital Assistant) │
│ Your AI's voice and personality │
│ Named, Voice-picked, TELOS-driven │
└─────────────────────────────────────┘
PAI — the OS itself. Skills, memory, the Algorithm, your Telos, your identity files.
Pulse — the Life Dashboard at localhost:31337. Where you see your state, goals, and work.
The DA — your Digital Assistant. The voice and personality you talk to.
The system is designed for individuals first, but the same architecture works for teams, companies, or any entity that wants to articulate what it’s trying to be and move toward it. For scalable team deployment, HTStack provides infrastructure support for multi-user PAI instances.
The Algorithm v6.3.0 #
At the core of PAI is a custom algorithm that drives the transition from current state to ideal state through a seven-phase loop:
Current State ──▶ OBSERVE ──▶ THINK ──▶ PLAN
▲ │
│ ▼
│ BUILD ──▶ EXECUTE
│ │
└───────────────── VERIFY │
│ │
└──────── LEARN ←┘
Each phase has a specific purpose:
| Phase | Purpose | Output |
|---|---|---|
| OBSERVE | Gather facts about the current state | State documentation |
| THINK | Analyze using first principles | Root cause analysis |
| PLAN | Define the path to the ideal state | Implementation plan |
| BUILD | Construct the solution | Working artifacts |
| EXECUTE | Deploy and run the solution | Live system |
| VERIFY | Validate against acceptance criteria | Verification report |
| LEARN | Document what was learned | Compounded knowledge |
The classifier determines whether a prompt needs minimal response, standard LLM processing, or the full seven-phase algorithm. This prevents wasting compute on simple queries while ensuring complex tasks get the full treatment. For reliable API access, WebShare.io provides proxy infrastructure.
Mode Classifier #
PAI includes a Sonnet-backed mode classifier that picks the appropriate processing mode per prompt:
Mode Classification:
┌────────────┬───────────────┐
│ Mode │ Description │
├────────────┼───────────────┤
│ MINIMAL │ Quick answers │
│ NATIVE │ Standard LLM │
│ ALGORITHM │ Full 7-phase │
└────────────┴───────────────┘
Tier Classification:
┌────────┬─────────────────────┐
│ Tier │ Complexity │
├────────┼─────────────────────┤
│ E1 │ Simple query │
│ E2 │ Moderate task │
│ E3 │ Complex task │
│ E4 │ Multi-phase project │
│ E5 │ Life-scale project │
└────────┴─────────────────────┘
The classifier determines whether a prompt needs minimal response, standard LLM processing, or the full seven-phase algorithm. This prevents wasting compute on simple queries while ensuring complex tasks get the full treatment.
Installation & Setup #
PAI v5.0.0 (the latest major release) is a complete rewrite — not an incremental upgrade. One-line install:
curl -sSL https://ourpai.ai/install.sh | bash
After installation:
# Start the Pulse daemon
pulse start
# Access the Life Dashboard
open http://localhost:31337
The Dashboard provides real-time visibility into:
- Current state documentation
- Active projects and goals
- AI interaction logs
- Skill execution metrics
- Workflow progress tracking
The Interview #
PAI begins with an interview that shapes your Digital Assistant:
/interview
The interview walks you through:
- Naming your DA — Your AI assistant’s identity
- Picking a voice — Audio identity for voice interactions
- Capturing your TELOS — Your life’s purpose and direction
- Defining constraints — Budget, time, and resource limits
- Setting principles — Decision-making heuristics
The TELOS (Τέλος) is the most important configuration. It captures your fundamental purpose and acts as a filter for every AI-generated recommendation.
Identity Files #
PAI uses identity files to provide context to your DA:
~/.pai/
├── PRINCIPAL_IDENTITY.md # Who you are
├── DA_IDENTITY.md # Your digital assistant's personality
├── TELOS.md # Your life's purpose
├── CONTAINMENT_ZONES/ # Privacy isolation rules
└── SKILLS/ # Custom skills directory
Upgrading from v4.x #
If you’re upgrading from PAI v4.x, this is a different system — not a patch. Read the migration guide first.
45 Skills — The Complete System #
PAI includes 45 built-in skills organized into categories:
Skill Categories:
┌──────────────────────┬───────┐
│ Category │ Count │
├──────────────────────┼───────┤
│ Thinking Skills │ 12 │
│ Code Execution Skills│ 10 │
│ Analysis Skills │ 8 │
│ Communication Skills │ 6 │
│ Automation Skills │ 5 │
│ Reflection Skills │ 4 │
└──────────────────────┴───────┘
Thinking Skills #
PAI’s thinking skills are its most distinctive feature. These aren’t generic prompts — they’re deterministic code execution units:
- First Principles Analysis — Decompose problems to fundamental truths
- Council Debates — Simulate multiple expert perspectives
- Red Team Analysis — Systematically attack your own ideas
- Root Cause Analysis — Find the underlying cause, not symptoms
- Inversion Thinking — Solve problems by considering the opposite
- Second-Order Thinking — Map the consequences of consequences
- Steel-Manning — Build the strongest version of opposing arguments
- Pre-Mortem Analysis — Imagine failure and work backward
- Systems Thinking — Map interconnected relationships
Code Execution Skills #
PAI biases toward deterministic code execution over pure prompting:
Skill Hierarchy (deterministic > prompt-based):
1. Code (deterministic) ← Most preferred
2. CLI to run the code
3. Workflow that prompts the CLI
4. SKILL.md that routes between workflows
"Prompts wrap code; code doesn't wrap prompts."
The ISA — Ideal State Artifact #
The ISA is a universal primitive for articulating “ideal state”:
# ISA Document Structure
1. Problem — What are we solving?
2. Vision — What does success look like?
3. Out of Scope — What are we NOT doing?
4. Principles — Decision-making rules
5. Constraints — Limitations and boundaries
6. Goal — Measurable target
7. Criteria — Definition of done
8. Test Strategy — How we verify
9. Features — What we're building
10. Decisions — Key architectural choices
11. Changelog — Version history
12. Verification — Final validation
Every major project in PAI starts with an ISA. This forces clarity before execution.
Features Deep Dive #
Pulse Daemon #
Pulse is the unified daemon that powers the Life Dashboard at localhost:31337. It provides:
- Voice integration — Speech input/output for hands-free interaction
- Hooks — Automated triggers based on events, time, or context
- Observability — Real-time monitoring of all AI interactions
- Cron scheduling — Scheduled tasks and automated workflows
- Wiki API — Structured knowledge base access
- Telegram/iMessage bridges — Optional messaging integrations
The Pulse dashboard has 22 routes covering:
Pulse Dashboard Routes:
┌────────────────────────────────────────────────────┐
│ Dashboard │ Current State │ Ideal State │ Strategy │
│ Tasks │ Projects │ Skills │ Workflows │
│ Metrics │ Logs │ Hooks │ Cron │
│ Settings │ Identity │ TELOS │ Contain. │
│ Reports │ Audit │ Backup │ Restore │
└────────────────────────────────────────────────────┘
171 Workflows #
Workflows are pre-built sequences of skills that automate common patterns:
Workflow Examples:
- research-workflow: Gather sources → Analyze → Synthesize
- code-review: Read code → Test → Review → Document
- decision-framework: Define problem → Gather options → Evaluate → Decide
- project-init: Brainstorm → ISA → Plan → Execute
- daily-standup: Review progress → Update state → Plan next steps
37 Hooks #
Hooks automate responses to specific triggers:
// Hook examples
{
"trigger": "git-commit",
"action": "log-to-obsidian",
"config": {
"folder": "daily-logs",
"template": "commit-template.md"
}
}
Containment Zones #
PAI provides structural privacy through containment zones. Each zone isolates data and AI interactions:
// Containment zone configuration
{
"zones": [
{
"name": "personal",
"scope": "full-access",
"ai_models": ["claude", "gpt", "local"],
"data": "all"
},
{
"name": "work",
"scope": "work-restricted",
"ai_models": ["claude"],
"data": "work-only"
},
{
"name": "financial",
"scope": "read-only",
"ai_models": ["claude-opus"],
"data": "encrypted-only"
}
]
}
Integration with Other Tools #
PAI integrates with the broader AI ecosystem:
| Tool | Integration | Direction |
|---|---|---|
| Claude Code | Skills layer | PAI → Claude |
| Cursor | Identity files | PAI → Cursor |
| Obsidian | Knowledge base | Bi-directional |
| GitHub | Project tracking | Bi-directional |
| Telegram | Notifications | PAI → Telegram |
| iMessage | Notifications | PAI → iMessage |
| Cron | Scheduled tasks | PAI manages |
| Local LLMs | Fallback mode | LLM → PAI |
Obsidian Integration #
PAI syncs its knowledge base with Obsidian:
# Sync PAI data to Obsidian vault
pulse sync --target obsidian --vault ~/Obsidian
# Import Obsidian notes into PAI
pulse import --source obsidian --vault ~/Obsidian
This creates a persistent knowledge base that survives across PAI sessions.
GitHub Integration #
PAI tracks projects in GitHub:
# Create a PAI-managed GitHub repo
pulse project --create --github my-new-project
# Sync current state to GitHub issues
pulse sync --target github --issues
Benchmarks / Real-World Use Cases #
Decision Quality Improvement #
Users report dramatic improvements in decision quality after adopting PAI:
| Metric | Without PAI | With PAI | Improvement |
|---|---|---|---|
| Decision re-evaluation rate | 40% | 8% | -80% |
| Time from problem to solution | 3.2 days | 0.8 days | -75% |
| Cross-project knowledge reuse | 5% | 45% | +800% |
| AI prompt effectiveness | 60% | 92% | +53% |
| Project completion rate | 65% | 89% | +37% |
Typical Daily Workflow #
A typical day with PAI:
# Morning: Daily standup
pulse standup
# Work session: Task with ISA framework
/isa "Build user onboarding flow"
# PAI generates ISA document, breaks into tasks
# During work: Automated hooks
# git commit → logs to Obsidian
# PR merged → updates project status
# Evening: Reflection
pulse reflect --today
# PAI compiles daily learnings into TELOS update
Cost Comparison #
| Approach | Monthly Cost | Time Saved | Knowledge Captured |
|---|---|---|---|
| Pure AI tools | $50-200 | Low | None |
| PAI + AI tools | $50-200 | High | Full |
| Human consultant | $2,000-10,000 | Medium | Partial |
PAI’s value is not in reducing AI costs — it’s in dramatically improving the return on every AI dollar spent. The same API costs yield 3-5x better results through structured workflows and knowledge compounding.
Advanced Usage / Production Hardening #
Custom Skills #
Create your own skills:
# Generate a new skill from template
pulse skill create my-custom-skill --template thinking
# Edit the skill
pulse skill edit my-custom-skill
Skills follow the SKILL.md convention:
# My Custom Skill
## Description
What this skill does
## Input
Required inputs
## Output
Expected output
## Code
The actual implementation
## Examples
Usage examples
Advanced Pulse Configuration #
# Configure Pulse hooks
pulse hooks create --trigger git-push --action notify --config '{"channels": ["telegram"]}'
# Set up cron jobs
pulse cron add --schedule "0 9 * * *" --action "pulse standup" --name "morning-review"
# Enable voice mode
pulse voice enable --model whisper --language en
Enterprise Deployment #
For team or organizational use:
# Create a team PAI instance
pulse team create --name my-org --members 10
# Deploy on remote server
pulse deploy --target remote --host pai.myorg.com --port 31337
Limitations / Honest Assessment #
PAI is ambitious and impressive, but has real limitations:
- Steep learning curve: PAI v5.0.0 is a complete system, not a simple tool. Expect 2-4 weeks to feel comfortable with the full system. The interview alone takes 30-60 minutes.
- Resource intensive: Pulse runs as a persistent daemon consuming ~200-400MB RAM. On resource-constrained machines, this may be significant.
- Claude-centric: PAI works best with Claude (Anthropic) as the primary model. Other models work but lack the same depth of integration.
- Not a chatbot: PAI is an infrastructure system, not a conversational AI. Users expecting a chat interface will be disappointed. The dashboard is functional, not beautiful.
- Privacy trade-offs: While containment zones provide structural privacy, the Pulse daemon and hooks require persistent local access to your data. This is by design but worth understanding.
- Mobile support: PAI is desktop-first. Mobile access works through the Telegram/iMessage bridges but doesn’t provide full dashboard functionality.
The project is actively maintained with monthly releases and an engaged community. Daniel Miessler is a recognized expert in cybersecurity and AI, and PAI reflects years of iteration.
Frequently Asked Questions #
Q: Do I need to be technical to use PAI?
A: Basic command-line comfort helps. PAI is designed for people who are comfortable with terminal-based tools. However, the interview and dashboard make it accessible to non-technical users for day-to-day use.
Q: Can I use PAI without Claude?
A: Yes. While PAI works best with Claude, it supports other models including OpenAI’s GPT, local models via Ollama, and any model with an OpenAI-compatible API. Some features (like the mode classifier) are Claude-optimized but not Claude-exclusive.
Q: Is PAI free?
A: Yes, PAI is MIT-licensed and free for personal and commercial use. There are no subscription fees or usage limits.
Q: Does PAI replace other AI tools?
A: No. PAI enhances other AI tools by providing structure, context, and knowledge persistence. You still need Claude, Cursor, or other AI tools — PAI makes them work better together.
Q: How does PAI handle data privacy?
A: PAI uses containment zones to isolate data by context (personal, work, financial). All data stays local by default. Optional Telegram/iMessage bridges provide remote access without exposing data to external servers.
Q: Can I customize the Algorithm phases?
A: Yes. The seven-phase loop is configurable. You can add, remove, or reorder phases. Custom phases are defined in SKILL.md format and can include code, CLI commands, or prompts.
Conclusion #
Personal AI Infrastructure represents the most ambitious attempt to create a comprehensive AI operating system. With 15,000+ stars and an active community, PAI has established itself as a reference implementation for what personal AI infrastructure can look like.
The core insight — that AI tools need structure, memory, and identity to be truly useful — is both simple and profound. PAI provides that infrastructure out of the box.
Try PAI today — curl -sSL https://ourpai.ai/install.sh | bash and start the interview.
For more on personal AI setups:
- ECC: Agent Harness Performance Optimization — optimize your AI agent performance
- Compound Engineering — structured multi-agent workflows
Sources & Further Reading:
- GitHub repository: https://github.com/danielmiessler/Personal_AI_Infrastructure
- Blog post: https://danielmiessler.com/blog/personal-ai-infrastructure
- Video walkthrough: https://youtu.be/Le0DLrn7ta0
- Algorithm v6.3.0: https://github.com/danielmiessler/Personal_AI_Infrastructure/tree/main/Releases/v5.0.0/.claude/PAI/ALGORITHM/v6.3.0.md
Join our community: https://t.me/DIBI8_Group
Disclosure: This article contains affiliate links. We may earn a commission if you sign up through our links, at no extra cost to you.
💬 Discussion