Host your code with
freedom and power
Mag is the ultimate self-hosted alternative. It combines the speed of bare git repos with the isolation of WireGuard ephemeral networks and the modernity of Next.js 15.
mag Go CLI
Interactively manage issues, Pull Requests, and login from your local command line without extra dependencies.
Ephemeral PaaS (WireGuard)
Instantly deploy your code on isolated ephemeral virtual machines within a private VPN network, protecting your endpoints.
AI MCP Integration
Communicate natively with your AI coding assistant (like Claude) through the MCP protocol to automate repo analysis.
Architecture Comparison
Discover why mag redefines digital sovereignty and isolation compared to traditional SaaS solutions.
| Feature | mag (Sovereign) | GitHub (SaaS) |
|---|---|---|
| Data Sovereignty | 100% Self-Hosted (Your servers) | Proprietary Cloud (Centralized SaaS) |
| Network Isolation | Ephemeral WireGuard VPN Network | Public Internet (Port Forwards / Tunnels) |
| Deploy Builds | Isolated VMs with gVisor (Instant) | Shared Containers (GitHub Actions) |
| AI Interface | Native (MCP Tools Mapping) | Extensible Copilot (Proprietary API) |
| Secure CLI Auth | Encapsulated PAT (GIT_ASKPASS memory) | Browser Web Flow (Local OAuth) |