use-lanchu

use-lanchu is a skill for Claude Code, Codex from lanchuske/lanchu. It costs 29 tokens per session (570 once invoked), scanned A, original, MIT.

Instructions for using Lanchu, a local control layer that coordinates multiple AI agents through MCP. It assigns roles, keeps agents within scope, prevents collisions, and records actions in an audit log on your machine.

In plain words
What is it for?
Setting up Lanchu, defining an organization, agent, and role, connecting an MCP client, and coordinating concurrent agent work with recorded actions.
Why use it?
It gives several agents a shared, traceable workspace so their work can be coordinated and reviewed without sending the coordination service to the cloud.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Setting up Lanchu, defining an organization, agent, and role, connecting an MCP client, and coordinating concurrent agent work with recorded actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lanchuske/lanchu/use-lanchu
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lanchuske/lanchu --skill use-lanchu
Clone the repo
git clone --depth 1 https://github.com/lanchuske/lanchu

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for use-lanchu

README.md
[![agentmods](https://agentmods.dev/badge/skills/lanchuske/lanchu/use-lanchu/github.svg)](https://agentmods.dev/skills/lanchuske/lanchu/use-lanchu)
Your own site
<a href="https://agentmods.dev/skills/lanchuske/lanchu/use-lanchu"><img src="https://agentmods.dev/badge/skills/lanchuske/lanchu/use-lanchu/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for use-lanchu

Your own site · 80×15
<a href="https://agentmods.dev/skills/lanchuske/lanchu/use-lanchu"><img src="https://agentmods.dev/badge/skills/lanchuske/lanchu/use-lanchu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00570
Opus 5 $0.00015 $0.00285
Sonnet 5 $0.00006 $0.00114
Haiku 4.5 $0.00003 $0.00057

Measured 11d ago against content hash 831ff42305af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

use-lanchu scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/.well-known/agent-skills/use-lanchu/SKILL.md · 60 lines

What it actually says

Use Lanchu

Lanchu is a free, open-source, local-first control and trust layer for AI agents. It does not run or orchestrate agents — it coordinates and bounds their work so several agents can operate at once without colliding, each stays within a role you define, and every action is recorded in an audit log. It runs entirely on the user's machine over the Model Context Protocol (MCP); there is no cloud service.

When to use

Use this skill when a user wants to run more than one AI agent at a time and needs them to coordinate (claim tasks, stay in scope) with a shared, auditable workspace — or when a user asks how to install or connect to Lanchu.

Install

Requires Node.js 22.5 or newer.

npx lanchu

A guided wizard sets up the organization, an agent and a role, wires the MCP client, and launches it. The local server listens on http://127.0.0.1:4319.

Connect an agent (MCP)

The wizard can wire Claude Code automatically, or run:

claude mcp add lanchu --transport http http://127.0.0.1:4319/mcp \
  --header "Authorization: Bearer <session-token>"

The bearer token is issued per session by the launcher. There is no public endpoint by design.

What an agent does inside Lanchu

  1. Read the lanchu://me resource for your objective, role, allowed tags and tasks.
  2. Break the objective into tasks with task_create; claim only tasks within your role with task_claim; report progress with task_update.
  3. Do not work on other agents' tasks or outside your scope — Lanchu rejects and records it.

Core MCP tools: session_whoami, task_list, task_create, task_check_scope, task_claim, task_update, task_release, task_handoff, doc_list, doc_read, doc_update.

Learn more

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 60 lines · 29 tokens per session scan A 831ff42305af

Subscribe to this mod's changes

use-lanchu is a skill published in the GitHub repository lanchuske/lanchu (2 stars, last pushed 19d ago), licensed MIT. It adds 29 tokens to every session and 570 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.