← Lanchu · GitHub · npm

How Lanchu works

What it solves, what you do, and how to see, update, and uninstall it.

What it solves

When you run several AI agents at once, they step on each other's work, act blindly, and there's no way to see or trust what they did.

Lanchu is a local-first control & trust layer. It gives your agents a shared workspace so they coordinate without colliding, keeps each one in its lane (a role can only touch what it's allowed to), and gives you a panel + full history to see and trust everything they do. It doesn't run or orchestrate your agents — it coordinates and bounds the work. Nothing ever leaves your machine.

What you do as a user

  1. Start it in your project — a guided wizard sets up your organization, agent and role:
    npx lanchu
  2. Connect your agent (Claude Code). The wizard wires it for you, or run the printed command, e.g.:
    claude mcp add lanchu --transport http http://127.0.0.1:4319/mcp \
      --header "Authorization: Bearer <token>"
  3. Tell your agent to work in Lanchu. It reads its objective, role and tasks, claims what's in its lane, and reports progress — all visible to you. Run more agents (with different roles) and they coordinate through Lanchu, never directly.

Two roles in practice: an operator (semi-technical) does the setup; a supervisor just watches the panel — no coding needed.

How to see things

CommandShows
lanchu panelOpens the live dashboard: agents, tasks, roles, docs, and the audit log.
lanchu agentsWho's active, their role and what they're on.
lanchu tasksThe task board (flags stale tasks).
lanchu statsA quick local summary.
lanchu doctorEnvironment + version check.

The panel is at http://127.0.0.1:4319 and updates live. It's local and read-focused; the supervisor actions (retire an agent, release/reassign a task) are there too.

See it inside Claude

Run lanchu statusline once to wire a status line into Claude Code — then every session shows, at the bottom, whether Lanchu is running and the team's pulse:

lanchu ● acme/web · 3 agents active · 5 open tasks

Your agent also greets you on connect (its name, role and task count), so you know Lanchu is live without leaving the chat.

For one-word control from inside Claude Code, install the slash command once:

npx lanchu install-commands

Then type /lanchu panel, /lanchu status, /lanchu spawn "write the docs" or /lanchu tile — these are your controls (opening the panel, spawning a teammate, arranging terminals), separate from what the agent does.

How to update

How to uninstall

lanchu uninstall           # stops the server, shows where your data lives
lanchu uninstall --purge   # also deletes all local Lanchu data

To clean up fully:

Your data (orgs, agents, tasks, docs, audit) is a single local database under your OS app-data folder — removing it with --purge leaves no trace.

Learn more