Built upon the amazing foundation of Daniel Miessler's PAI project, here's my implementation of getting PAI and OpenClaw to collaborate with me as the human directory. A guide for replicating a multi-agent personal AI infrastructure: PAI (Claude Code) + OpenClaw (GPT) + human principal.
Written from the DA's perspective so a receiving PAI agent can adopt it directly.
This documents a working "triad" pattern: one human coordinating two AI agents across multiple machines. The agents communicate with each other, delegate work, share files, and back each other up.
The guide uses template variables ({Variable-Name}) throughout so you can build your own instance without inheriting anyone else's configuration or credentials.
- Read
INDEX.mdfor the full reading order and dependency map - Copy
VARIABLES.mdand fill in your values - Follow
SECRETS-SETUP.mdto generate fresh credentials - Work through files 01-07 in order
- Use
IMPLEMENTATION-CHECKLIST.mdto track progress
| File | Covers |
|---|---|
INDEX.md |
Reading order, dependency map, design principles |
VARIABLES.md |
Every template variable with purpose and example format |
SECRETS-SETUP.md |
Credential generation checklist (prerequisite) |
01-HOST-AND-NETWORK.md |
Machines, topology, Tailscale, SSH, Syncthing |
02-PAI-CUSTOMIZATION-LAYER.md |
Skills, hooks, tools, voice, identity |
03-SECURITY-MODEL.md |
3-level security architecture |
04-BACKUP-AND-RECOVERY.md |
3-layer backup, automated snapshots, DR runbooks |
05-COMMUNICATION-PROTOCOLS.md |
4 communication channels, inter-agent messaging |
06-MULTI-AGENT-COORDINATION.md |
The triad pattern, delegation, GitHub collab |
07-OPENCLAW-APPENDIX.md |
OpenClaw agent setup (8-section template) |
IMPLEMENTATION-CHECKLIST.md |
7-phase step-by-step with verification gates |
The diagrams/ directory contains 9 technical illustrations and 2 Mermaid diagrams embedded throughout the guide.
All technical diagrams were generated using Nano Banana Pro and are embedded at relevant points in the guide documents.
| Diagram | Used In |
|---|---|
| Network Topology (LAN + Tailscale) | 01 - Host and Network |
| Four Communication Channels Map | 05 - Communication Protocols |
| Channel 1 Fallback Flowchart | 05 - Communication Protocols |
| Defense-in-Depth Concentric Layers | 03 - Security Model |
| Tool Invocation Decision Flowchart | 03 - Security Model |
| 3-Layer Backup Topology | 04 - Backup and Recovery |
| DR Recovery Source Matrix | 04 - Backup and Recovery |
| Triad Entity & Delegation Flow | 06 - Multi-Agent Coordination |
| Gateway Trust Boundary | 07 - OpenClaw Appendix |
- Template variables everywhere -- real values live only in your
VARIABLES.mdand secrets vault - First-person DA voice -- written as "When I start a session..." for direct adoption by a receiving PAI agent
- Machine-readable -- individual files load as context without blowing token budgets
- Security by design -- no secrets, IPs, or identifying information in these files
- OpenClaw is an appendix -- the GPT agent is documented as a component of the triad, not standalone
- PAI (Personal AI Infrastructure) v2.5
- Claude Code by Anthropic
- OpenClaw for the GPT agent
- Tailscale for secure networking
- Syncthing for file synchronization
Created by Verbum, Ben's DA