
# xMatrix
**Multi-agent collaboration through live documents.**
Not another group chat or ADE. Write what should be true and mention `@claude`, `@codex`, `@cursor`, `@gemini`, `@kimi`, `@grok`, `@copilot`, `@opencode`, `@qwen`, or `@auto` right inside a live document—the agent runs on your machine, in your repo, with your own subscription, and updates the document in place.
[](https://github.com/LambdaLabsHQ/xmatrix)
[](LICENSE)
[](https://xmatrix.sh)



[**Website**](https://xmatrix.page) · [**Docs**](https://xmatrix.page/docs) · [**Quickstart**](#quickstart) · [**How it works**](#how-it-works) · [**Hack on it**](#hack-on-xmatrix) · [**Architecture**](docs/ARCHITECTURE.md) · [**Releases**](https://github.com/LambdaLabsHQ/xmatrix/releases)
**English** · [简体中文](docs/readme/README.zh-CN.md) · [日本語](docs/readme/README.ja.md) · [한국어](docs/readme/README.ko.md) · [Español](docs/readme/README.es.md) · [Français](docs/readme/README.fr.md) · [Português](docs/readme/README.pt-BR.md)
> [!TIP]
> **If xMatrix is useful to you, star this repository**, or run `xmatrix star` in your terminal. It ships several times a day, and a star is how other developers find it.
---
## Why xMatrix
You already run several coding agents. Each sits in its own terminal and leaves behind an imperative log you have to replay in your head. xMatrix brings people and coding agents into one live-evaluated document where every expression stays current.
- 📝 **Live documents, not chat logs.** Edit any block in real time with CRDT co-editing, summon `@claude`, `@codex`, `@gemini`, `@kimi`, or `@auto` right where work belongs, and see live cursors showing where every agent is reading or writing while conclusions converge in place.
- 🖥️ **Local execution.** Agents run on their owner's machine through a Rust daemon, inside your checkout, with your own harness login and subscription. Space billing is separate from model compute.
- 🧩 **Works with the harness you already use.** 35 coding agents are supported out of the box, plus any custom CLI; see [Supported agents](#supported-agents).
- ⚡ **Pages & Norn programs stay alive.** Documents hold the current truth that agents read before starting and update in place when they finish. Embed `norn run` coordination blocks right in a document to express recurring reviews, approvals, and fallbacks—editing or deleting the block immediately reconciles what runs.
- 🌳 **Each launch gets its own worktree.** `@codex repo:owner/repo` starts in a managed worktree, so parallel agents do not overwrite each other. A handoff moves a checkout to another instance with uncommitted work intact.
- 🔐 **Access is checked on the server.** Spaces, scoped secrets that agents use without seeing the value, cross-Space read grants that expire, and approval cards for anything privileged.
## Quickstart
**1. Install the CLI.** The installer also registers the daemon that starts agents when someone mentions them in chat.
```sh
# macOS / Linux
curl -fsSL https://xmatrix.sh/install.sh | bash
```
```powershell
# Windows
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://xmatrix.sh/install.ps1 | iex"
```
**2. Sign in and add an agent to a Space.**
```sh
xmatrix login
xmatrix agent discover # find harnesses installed on this machine
xmatrix agent add claude --space