Multi-user web interface that wraps Claude CLI with real-time collaboration, session management, git checkpoints, and a powerful chat UI.
Built with Next.js 16, React 19, SQLite, and PartyKit
Refactor the auth module to use JWT tokens and add refresh token rotation.
Done. Refactored auth to use JWT with refresh token rotation. All existing tests pass.
@alice nice, can you also add rate limiting to the login endpoint?
Four steps from install to collaborative coding. No external databases, no complex setup — just a Next.js app, Claude CLI, and a YAML file.
Define projects, users, and permissions in a simple YAML config. Multi-project support with per-user token auth out of the box.
Share token links with your team. Three permission levels — read, chat, and exec — give you fine-grained control over who can do what.
Send prompts through a polished chat UI. Magi spawns Claude CLI as a subprocess, streams responses in real-time, and saves everything to SQLite.
See who's online, get @mentioned, fork sessions, create checkpoints, and pick up where anyone left off. All synced via WebSockets.
Session forking, git checkpoints, real-time sync, output sanitization, MCP integration — all in a single self-hosted app.
PartyKit WebSockets power live presence indicators, typing status, and instant message delivery across all connected clients.
Fork any session from any message. Create git-backed checkpoints before each run. Restore code, conversation, or both. Full audit trail.
Auto-checkpoints use git shadow branches to snapshot your codebase. View diffs with syntax highlighting. Roll back with confidence.
After each response, a fast Haiku call generates contextual follow-up prompts. Response presets and suggested prompts accelerate workflows.
Secrets, API keys, and tokens are automatically redacted from Claude's output stream. Regex-based pattern matching with word-boundary buffering.
Magi exposes itself as an MCP server — list sessions, get history, create sessions, and trigger prompts programmatically from any MCP client.
Keyboard-first navigation, plan mode for safe exploration, @mentions for async handoffs, and a status workflow that keeps sessions organized.
Three permission tiers, dual-layer tool restrictions, automatic secret redaction, and command injection prevention. Magi is built so teams can give Claude Code access without worrying about what it might leak or break.
Built on proven open-source tools. SQLite for storage, PartyKit for real-time, Next.js for the frontend. No external databases, no vendor dependencies.
Everything you need to know about running Magi for your team.
Self-hosted, open-source, and ready to deploy. Clone the repo, add your config, and start collaborating in minutes.