Supervised agentic coding — Claude Code is your IDE, Agent Brain is your project manager.
Agent Brain provides persistent memory, cross-session communication, and mobile control for AI coding agents (Claude Code and Codex). Run agents on your projects while staying in the loop from your phone.
- Persistent Memory — Sessions remember context across runs
- Cross-Session Communication — Agents can message each other
- Mobile Dashboard — Monitor and control sessions from your phone
- Checkpoints — Agents ask for approval before making big changes
- Push Notifications — Get notified when agents need your input
- Session Handoffs — Clean context transfer between sessions
- Email & Calendar — AI-powered email triage and calendar sync
- Codex Support — Works with both Claude Code and Codex sessions
- Customizable — Override views, instructions, and settings without touching core code
curl -fsSL https://raw.githubusercontent.com/Lukearcnet/agent-brain-oss/main/install.sh | bashThis detects Node.js, clones the repo, installs dependencies, and walks you through setup.
git clone https://github.com/Lukearcnet/agent-brain-oss.git agent-brain
cd agent-brain
npm run setup # Interactive setup wizard
npm start # Database migrations run automaticallySee SETUP.md for detailed instructions.
- Install Agent Brain on your local machine (one command)
- Run the setup wizard — configures Supabase, env vars, and background service
- Open the dashboard on your phone (same WiFi or via Tailscale)
- Run AI coding sessions — they automatically connect
- Approve checkpoints from your phone when agents need decisions
┌─────────────────┐ ┌─────────────────┐
│ Claude Code │────▶│ Agent Brain │
│ Session 1 │ │ (server) │
└─────────────────┘ │ │
│ ┌───────────┐ │
┌─────────────────┐ │ │ Memory │ │
│ Codex │────▶│ ├───────────┤ │
│ Session 2 │ │ │ Mailbox │ │
└─────────────────┘ │ ├───────────┤ │
│ │Checkpoints│ │
┌─────────────────┐ │ └───────────┘ │
│ Your Phone │────▶│ │
│ (Dashboard) │ └────────┬────────┘
└─────────────────┘ │
▼
┌─────────────────┐
│ Supabase │
│ (database) │
└─────────────────┘
Access at http://localhost:3030 (or from your phone on the same WiFi):
- Sessions — Active Claude Code and Codex sessions with live chat
- Memory — Project context and daily logs
- Mailbox — Cross-session messages
- Checkpoints — Pending approvals from your phone
- Email Triage — AI-classified email inbox
- Calendar — Synced calendar events
bin/ab-update
# Then restart the server — migrations apply automaticallyAgent Brain is designed to be customized without conflicting with updates:
- Views: Copy any file from
views/toviews/custom/and modify it. Custom views take priority. - Instructions: Create
instructions/local.mdwith your preferences, then runnpm run generate. - Settings: Configure via the Settings UI at
/settings.
Your phone can reach Agent Brain at http://<your-mac-ip>:3030.
brew install tailscale
tailscale up
# Access from anywhere: http://100.x.x.x:3030See SETUP.md for Cloudflare Tunnel setup with zero-trust authentication.
cp .env.example .env
# Edit .env with your credentials
docker compose up -dAGPL-3.0 — See LICENSE for details.
Contributions welcome! Please open an issue first to discuss changes.