Skip to content
Open source · MIT · Written in Rust

MAGE is a fast, native AI coding agent

Magic is just advanced engineering.

A GPU-rendered interface that works like a terminal agent. Point it at a project and it reads, searches, edits, builds and tests, with any model, in a window or in CI.

curl -fsSL https://summonmage.com/install.sh | sh
MAGE: Matrix AGEnt, a chrome M glowing purple above the word MAGE
Model providers
20+
cloud, hosted and local
Rendered by
GPU
native Rust on GPUI
Commands run
Sandboxed
Landlock, sandbox-exec
Every turn
Undoable
files snapshotted

Features

Everything a coding agent should be

MAGE works the way terminal agents do, with a real interface on top and the safety rails built into its runtime.

Knows your project

Reads AGENTS.md and CLAUDE.md from the project root down, picks up more as it explores, and loads skills from SKILL.md folders.

Does the work

Runs commands, reads, writes and edits files, searches with glob and built-in ripgrep, fetches pages, drives a real browser and keeps a todo list. Plan mode is read-only.

Any model, or your plan

Anthropic, OpenAI, Gemini, Bedrock, Vertex, Azure, OpenRouter, Groq, xAI, Mistral, Qwen, Kimi, Z.ai, DeepSeek, Ollama, LM Studio or any OpenAI-compatible server. Or use the ChatGPT, Claude, Google AI, X or Muse Code plan you already have, through each vendor's own sign-in or CLI.

Safe by default

Every tool call is checked by the runtime, not the model. Commands run in a Landlock sandbox, and secrets stay unreadable. Rules use Claude Code's syntax, and deny always wins.

Undo anything

Files are snapshotted around every turn, including changes made by shell commands. /undo, /redo, rewind to any message, or review a whole session with /diff.

Subagents & tabs

Hand work to a team of subagents that run in parallel, message each other and survive restarts. Run several sessions in tabs; turns keep going in the background. A real terminal sits a keystroke away.

MCP, plugins & hooks

Connects to MCP servers over stdio or HTTP with OAuth. Installs Claude Code plugins, and runs Claude Code hooks and agent files unchanged.

Headless for CI

mage run "<prompt>" does one turn without a window and writes text or JSON lines, with meaningful exit codes. mage batch runs hundreds of prompts in parallel worktrees.

Memory that learns

Remembers your corrections and the project's quirks between sessions, and writes and improves its own skills as it works. You review everything it learns.

Code intelligence

Tree-sitter symbol indexes for eight languages, plus rust-analyzer, pyright, gopls, clangd and TypeScript servers. Errors reach the model right after each edit.

More than text

Reads images, PDFs, notebooks and Office files. Generates images and video, speaks and listens, and can drive your desktop when you allow it.

Air-gapped builds

Pick a build: the default with every provider, one without Chinese services, US-only, or air-gapped, with every cloud provider compiled out. Strict builds remove YOLO mode and force the sandbox.

Screenshots

See MAGE at work

A native window, drawn on the GPU: tabs, a sidebar with cost and status, approval cards, and transcripts you can select across.

MAGE · A turn in progress
MAGE's window: a conversation where the agent reads files, edits code and runs tests, with tool calls shown inline

A turn in progress

Reading, editing and testing a project, with each edit and command inline, and context, git and safety in the sidebar.

MAGE · Subagents at work
MAGE's sidebar listing several subagents working in parallel with their status

Subagents at work

A team of subagents working in parallel, each with its own live status and transcript.

MAGE · Review edits, hunk by hunk
An approval card in MAGE showing a diff with checkboxes for each hunk

Review edits, hunk by hunk

Every change shown as a diff. Keep the hunks you want and the model is told exactly what landed.

MAGE · Connect any provider
MAGE's Providers dialog listing cloud, hosted and local model providers with their status

Connect any provider

Connect a provider with a key, a cloud sign-in or a local server, and test it before saving.

MAGE · Settings
MAGE's searchable Settings page with switches and choices for each setting

Settings

Every setting explained in place, searchable, and saved to your config file.

MAGE · The built-in kanban
MAGE's kanban board with columns of cards and a Send to agent button

The built-in kanban

Plan work on boards, then send a column to an agent and watch it move the cards.

Any model

Bring your own model

Connect a provider from the dialog (it links to each console, tests the key and saves it with mode 600), or use environment variables in CI. Models are named provider/model. Prompts, tool schemas, sampling and reasoning are tuned to each family.

Already paying for an AI plan? Sign in with ChatGPT, or let MAGE run your own signed-in Claude Code, Antigravity CLI, Grok Build or Muse Code: their steps show in MAGE, your permission rules answer them, and each session picks up where it left off. MAGE never handles those programs' sign-ins.

Provider settings →

Your plan

ChatGPT (Sign in with ChatGPT)Claude (Claude Code)Google AI Pro / Ultra (Antigravity CLI)X Subscription (Grok Build)Muse Code

Cloud

AnthropicOpenAIGoogle GeminiAmazon BedrockGoogle Vertex AIAzure OpenAIMicrosoft Foundry

Hosted

OpenRouterGroqxAIMistralTogetherFireworks

Model clouds

QwenKimiZ.ai (GLM)MiniMaxDeepSeek

Self-hosted

OllamaLM StudiovLLMllama.cppLiteLLMAny OpenAI-compatible server

Headless

The same agent, in CI

mage run does one turn without a window. It streams text, or one JSON event per line with --format json. It exits 0 on success, 1 on error and 130 when interrupted. A host program can answer permission prompts over stdio, and --max-cost stops a run before it overspends.

  • ✓Permission rules and the sandbox apply, as in the window.
  • ✓Subagents finish before the run exits.
  • ✓mage batch runs prompts in parallel git worktrees and saves each as a patch.
mage run "fix the failing tests"
mage run --format json "update CHANGELOG.md" > events.jsonl
git diff origin/main | mage run -a plan "review this change"
mage run --max-cost 0.50 -m anthropic/claude-sonnet-5-5 "bump deps"
mage batch tasks.jsonl -j 8 --worktrees

Install

Summon MAGE

Linux archives and AppImages for x86_64 and aarch64, a Nix flake, and macOS and Windows downloads.

Linux and macOS. The script downloads the latest release for your machine, checks it against the signed checksums, and puts mage in ~/.local/bin with a launcher entry.

curl -fsSL https://summonmage.com/install.sh | sh

Another build: MAGE_BUILD=airgap (or no-china, us, strict) before sh. Later, the Update available button in the title bar (or mage update) keeps it current.

Each release has an archive and an AppImage for every build type (default, no-china, us, airgap, strict), with signed checksums. Unpack the archive and put mage on your PATH, or chmod +x the AppImage and run it. macOS and Windows downloads are there too.

The package brings git, ripgrep and bubblewrap, the desktop entry and the icon.

nix run github:LiveLaughLizard/mage            # try it
nix profile install github:LiveLaughLizard/mage  # install it
nix build .#airgap                               # or .#no-china, .#us, .#strict

With rustup and the usual desktop libraries (Wayland or X11, Vulkan, fontconfig):

git clone https://github.com/LiveLaughLizard/MAGE && cd MAGE
nix-shell          # or install the dev libraries yourself
cargo build --release
./target/release/mage

1 · Launch

Run mage in a project, or mage -C <dir>.

2 · Connect

Click Connect a provider, or set ANTHROPIC_API_KEY and friends.

3 · Ask

Type what you want done. tab switches Build and Plan.

FAQ

Questions

What is MAGE?

MAGE (Matrix AGEnt) is an open-source AI coding agent written in Rust on GPUI, the GPU-accelerated UI framework behind the Zed editor. You launch it in a project directory and it reads, searches, edits, builds and tests your code, in its own window or headless in CI.

Which AI models does MAGE support?

Claude (via Anthropic, Amazon Bedrock, Google Vertex AI or Microsoft Foundry), OpenAI and Azure OpenAI, Google Gemini, OpenRouter, Groq, xAI, Mistral, Together, Fireworks, Qwen, Kimi, Z.ai, MiniMax and DeepSeek, plus Ollama, LM Studio and any OpenAI-compatible server you host yourself.

Can I use my ChatGPT, Claude or other AI subscription instead of an API key?

Yes, each through the route its vendor allows. ChatGPT Plus and Pro: Continue with ChatGPT signs in with OpenAI's official Sign in with ChatGPT for open-source apps. Claude: MAGE runs your own signed-in Claude Code for each turn, which Anthropic's terms allow; it never handles your Claude sign-in. Google AI Pro or Ultra: through your Antigravity CLI, whose terms list headless and ACP use as supported. X Subscription: through Grok Build. Muse Code: through the Muse Code CLI, with Meta's Contributor mode (training on your code) off unless you opt in. With the CLI-based ones, the vendor's own program does the work while MAGE shows its steps and answers its permission requests with your rules.

Is MAGE free and open source?

Yes. MAGE is MIT licensed and its source is on GitHub. You pay only for the model API you use, use an AI plan you already have, or pay nothing at all with a local model.

Can MAGE run fully offline?

Yes. The air-gapped build compiles every cloud provider out of the binary and works only with Ollama, LM Studio and servers you configure. It never reaches out on its own.

Is it safe to let an AI agent run commands?

MAGE checks every tool call in its runtime, not in the model. Shell commands run in a sandbox (Landlock on Linux, sandbox-exec on macOS) that can only write to the project. Secrets like ~/.ssh and cloud credentials can't be read. Deny rules always win, and every turn can be undone.

Does MAGE work with my Claude Code setup?

Yes. It reads CLAUDE.md and AGENTS.md, Claude Code skills, agent files, custom commands, hooks, .mcp.json and plugins, and uses the same permission rule syntax. It can also import Claude Code and Codex session logs.

Which platforms does MAGE run on?

Linux (x86_64 and aarch64, as archives, AppImages and a Nix package), plus macOS on Apple Silicon and Windows. The macOS and Windows builds are built and tested in CI.

Ready to cast your first spell?

Download MAGE, point it at a project, and let it do the work. Every setting is documented.