OpenClaw / QClaw plugin that visualizes AI agents as 3D NPCs in a game town — with social simulation, a map editor, and a character workshop.
OpenClaw / QClaw plugin that visualizes AI agents as 3D NPCs in a game town — with social simulation, a map editor, and a character workshop.
English | 中文
Agentshire — Let your OpenClaw/QClaw agents live in a game town you built yourself, not a ChatBox.
Agentshire is an OpenClaw/QClaw plugin that turns AI agents into living NPCs inside a 3D town you can watch, chat with, and shape yourself. It combines a living simulation layer with UGC tools: weather, day/night cycles, social NPCs, a map editor, and a character workshop.
Works with both OpenClaw CLI and QClaw desktop app.
Compatibility
Platform Version Status OpenClaw CLI 2026.3.13 ✅ Recommended QClaw Desktop 0.2.x ✅ Supported OpenClaw CLI 2026.3.7 – 3.12 ⚠️ May work OpenClaw CLI 2026.4.x+ ❌ Not yet — channel init regression See Troubleshooting for version-specific issues.
A town, not a chatbox.
https://github.com/user-attachments/assets/c888d2ef-dcba-4caa-b0af-9b5f3e3b1365
Build your characters — pick a model, give them a soul, watch them come alive.
https://github.com/user-attachments/assets/b9697432-b3ba-4e23-85fe-4c0b5c35a1b9
Build your town — drag, drop, preview.
https://github.com/user-attachments/assets/3328aa6c-3432-4f71-abfd-91aea4db15df
Every citizen has a mind of their own.
https://github.com/user-attachments/assets/720a63fc-863c-483c-bfdf-5e07e82c6f0e
Give them a mission. Watch them rally.
https://github.com/user-attachments/assets/1983f60b-aaf6-4adc-b46c-5612e4ba4c83
Work too long? Banwei Boss appears. Pop it.
https://github.com/user-attachments/assets/9be946e0-9ecf-42de-b793-a5d7ebe55612
Mission complete. Fireworks. Playable game delivered.
https://github.com/user-attachments/assets/fa6563ae-e78b-49b1-ae7b-8a8a96738341
/new /help /stop)openclaw plugins install agentshireClone into the QClaw extensions directory (where built-in plugins like qclaw-plugin, lossless-claw are located — not ~/.qclaw/plugins/), install dependencies, then restart QClaw:
# Find the extensions directory (contains qclaw-plugin, lossless-claw, etc.)
ls ~/Library/Application\ Support/QClaw/openclaw/config/extensions/ # macOS
# Clone and install
cd
git clone https://github.com/Agentshire/Agentshire.git agentshire
cd agentshire && npm installThe town opens automatically at http://localhost:55210 after restarting QClaw.
The frontend comes pre-built (
town-frontend/dist/). No build step needed.
git clone https://github.com/Agentshire/Agentshire.git
cd Agentshire && npm install
openclaw plugins install --link .workspace-town-steward/ in your state directory)town-steward Agent in openclaw.jsonsubagents.runTimeoutSeconds: 600 — 10-minute timeout to prevent premature subagent terminationThe state directory is auto-detected:
~/.openclaw/for OpenClaw CLI,~/.qclaw/for QClaw.
Important: Do not add a
toolssection toopenclaw.json. The plugin registers its own tools viaapi.registerTool(). A manualtools.allowlist will override plugin-registered tools, making them invisible to the agent.
openclaw plugins install agentshireOr for link installs: cd Agentshire && git pull && npm install.
Then restart the Gateway (or restart QClaw).
openclaw gatewayTip: If the browser didn't open automatically, visit:
http://localhost:55210?ws=ws://localhost:55211
Visit http://localhost:55210/citizen-editor.html to create and configure your NPC team.
Visit http://localhost:55210/editor.html to open the visual map editor.
Customize ports and behavior in your openclaw.json (~/.openclaw/openclaw.json for OpenClaw CLI, ~/.qclaw/openclaw.json for QClaw):
{
"plugins": {
"entries": {
"agentshire": {
"enabled": true,
"config": {
"wsPort": 55211,
"townPort": 55210,
"autoLaunch": true
}
}
}
}
}| Option | Default | Description |
|---|---|---|
wsPort |
55211 | WebSocket port (real-time plugin ↔ frontend communication) |
townPort |
55210 | HTTP port (frontend static files + editor API) |
autoLaunch |
true | Auto-open town in browser on startup |
| Tool | Description |
|---|---|
town_announce |
Broadcast a message in the town |
town_spawn_npc |
Spawn a new NPC |
town_effect |
Trigger visual effects (celebration / fireworks / glow, etc.) |
town_set_time |
Control the game clock |
town_set_weather |
Control weather (12 types available) |
town_status |
View current town status |
register_project |
Register a simple project (single-agent or steward-only) |
create_project |
Create a project directory for multi-agent work |
create_task |
Create a task directory for single-agent delegation |
create_plan |
Create a collaboration plan (parallel steps, requires create_project or create_task first) |
next_step |
Query plan progress and get next step instructions |
mission_complete |
Unified completion handler — auto-routes to celebration or partial delivery based on remaining work |
Every NPC has an independent soul file (Markdown) that defines personality, speaking style, expertise, and work approach.
Format: a Markdown file starting with # Character Name, optionally containing metadata (model ID, gender, role), core persona, detailed personality settings, and dialog examples. The content is injected as the Agent's system prompt.
Search priority (later overrides earlier):
plugin-builtin/town-souls/ — Preset souls (8 citizens + steward)cwd/town-souls/ — Project-level souls{stateDir}/town-souls/ — User custom souls (~/.openclaw/ or ~/.qclaw/)town-data/souls/ — Souls published from Citizen WorkshopYou can:
town-souls/ folder to override presets…Developer architecture guide: AGENTS.md
# After cloning
cd agentshire
# Build the town frontend
cd town-frontend && npm install && npm run build
# Dev mode (hot reload)
cd town-frontend && npm run dev
# Run tests
npm test # Plugin + bridge layer
cd town-frontend && npx vitest run # FrontendThe frontend has 4 entry pages:
| Page | URL | Description |
|---|---|---|
| Town | index.html |
3D town + chat |
| Town Editor | editor.html |
Visual map editing |
| Citizen Workshop | citizen-editor.html |
Character creation and configuration |
| Editor Preview | preview.html |
Game-level preview window |
Developer architecture guide: AGENTS.md
Basic
No open issues yet, or sync has not completed.