Skip to content

swoelffel/claw-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,087 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

claw-pilot

Self-hosted multi-agent orchestration runtime β€” task board, flow engine, budget control, real-time dashboard.

version ci license: MIT node: >=22.12 website

Run a team of LLM agents on your own server. Wire them together with A2A messaging, schedule them with heartbeats, orchestrate them with DAG flows, cap their spend with budgets, watch them work in a real-time dashboard.

πŸ“– Documentation Β· 🌐 Website Β· πŸ’¬ Discussions Β· πŸ› Issues


What you can build in an afternoon

πŸ€– A 3-agent ops team with spending cap

Provision an instance, drop three archetypes on the canvas (analyst, communicator, orchestrator), wire A2A links, set a $50/month hard-stop budget. The orchestrator delegates via send_message; if the cap hits 80% you get a Telegram alert, at 100% the instance auto-pauses.

πŸ“… A daily maintenance flow

Declare a DAG (check-site β†’ run-audit β†’ post-report), schedule it on a cron trigger, let the flow engine fan out steps in parallel, collect structured SITREPs at each completion, stream the whole run live to the dashboard. Failed step? Automatic retry with backoff, then inbox notification.

πŸ’¬ A chat-first assistant with persistent memory

Pair a primary agent with a permanent cross-channel session (web, Telegram, CLI), give it workspace tools (ws_search_files, memory with decay scoring), expose MCP servers for domain tools. Same conversation whether you ping it from your phone or your terminal.


Quickstart

Requirements: Node.js β‰₯ 22.12, pnpm β‰₯ 9, Linux (systemd) or macOS (launchd), Bash β‰₯ 5.

curl -fsSL https://raw.githubusercontent.com/swoelffel/claw-pilot/main/install.sh | sh

Then:

claw-pilot init           # discover / bootstrap
claw-pilot create         # interactive wizard β†’ first instance
claw-pilot dashboard      # http://localhost:19000

Override the install path with CLAW_PILOT_INSTALL_DIR. For production setup (systemd / launchd service, reverse proxy, SSL), see docs/main-doc.md.


What's inside

Runtime engine (claw-runtime)

Capability What it does
Flow engine Declarative DAG workflows β€” fan-out/fan-in, per-step timeout & retry, structured SITREP outcomes, automatic tool-call repair
Task board Kanban with 5 states, drag & drop, epic hierarchy, agent auto-assignment with wakeup, activity timeline
A2A messaging send_message tool for persistent sync or fire-and-forget cross-agent communication
Permanent sessions One session per primary agent, shared across web / Telegram / CLI channels
Heartbeat scheduler Per-agent background ticks, timezone-aware active hours, session reuse
Budget enforcement Monthly or lifetime limits, soft alerts (80%), hard stop (100%), auto-pause, Telegram notifications
MCP integration Per-instance MCP server registry, live tool discovery, stdio + HTTP transports
Memory Context compaction, FTS5 search on workspace files, decay scoring
Middleware Pre/post message pipeline (guardrail, tool error recovery), extensible via plugins
Permissions Interactive approval for filesystem, bash, agent spawning β€” wildcard rules persisted

Dashboard & tooling

Screen What it's for
Home (HOMEBOT) Chatbot entry point with admin plugin (22 tools), setup wizard
Instances Live status cards, lifecycle actions, health widgets
Task Board Kanban + epics + timeline
Flows Editor, run history, live SSE step-by-step detail
Agent Builder Drag-and-drop canvas per instance, A2A/spawn links, blueprints
Runtime Pilot Multi-agent chat with tool calls, token/cost tracking, session tree
Cost Dashboard Per-agent spend charts, budget management
Command Palette Cmd+K global search (FTS5 BM25) across instances/agents/tasks/blueprints
Activity Console Live event stream (SSE) with filters
Memory Browser Browse/search agent memory with decay scores
Inbox Persistent notification feed, bell badge, 6 event types
Named Keys AES-256-GCM encrypted API keys, assignable per instance/agent
i18n UI in 6 languages (EN, FR, DE, ES, IT, PT)

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Dashboard (Hono + Lit)         :19000  (SSE + WS)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                β”‚
       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚  claw-pilot CLI  │──────│  registry.db    β”‚
       β”‚  (provisioner)   β”‚      β”‚  (SQLite WAL)   β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚           β”‚           β”‚             β”‚
β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”   β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”   β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”     β”Œβ”€β”€β”€β–Όβ”€β”€β”€β”
β”‚ inst1 β”‚   β”‚ inst2 β”‚   β”‚ inst3 β”‚ ... β”‚ instN β”‚   claw-runtime instances
β””β”€β”€β”€β”¬β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”˜   (multi-agent, A2A, flows)
    β”‚
    β”œβ”€β”€ Agent(main)  ──┐
    β”œβ”€β”€ Agent(ops)    ─┼── bus + middleware + permissions
    └── Agent(analyst)β”€β”˜
         └── MCP tools, memory, heartbeat, budget

Single ~/.claw-pilot/registry.db (schema v41) is the source of truth for instances, agents, blueprints, flows, tasks, budgets, and conversation history. See docs/main-doc.md for the full architecture and docs/registry-db.md for the data model (40 tables, 23 repositories).


CLI at a glance

claw-pilot init | create | list | status | destroy
claw-pilot start | stop | restart <slug>
claw-pilot runtime start|stop|restart|logs|config|chat <slug>
claw-pilot dashboard | token | doctor | logs | update | team
claw-pilot auth | service | config

Run claw-pilot --help for the full reference.


Development

git clone https://github.com/swoelffel/claw-pilot.git
cd claw-pilot && pnpm install
pnpm build                 # CLI + UI
pnpm test:run              # ~2400 unit/integration tests
pnpm test:e2e              # ~100 e2e
pnpm typecheck:all lint:all format:check spellcheck

Tech stack β€” Node 22+, TypeScript ~6, Hono + Lit + Vite, better-sqlite3 WAL, Vercel AI SDK ^6, MCP SDK ^1.28, Vitest ^4, oxlint + Prettier + cspell + lefthook, conventional commits.

Contributing guide: CONTRIBUTING.md β€” strict develop-first gitflow, PRs target develop, never bump version in feature PRs.


Documentation

docs/main-doc.md Architecture index
docs/registry-db.md Database schema + migration history
docs/ux-design.md Dashboard UX β€” screens, components, patterns
docs/design-rules.md Design system, anti-patterns, delivery checklist
docs/i18n.md i18n workflow
docs/sse-architecture.md Real-time streaming (3 SSE + 1 WS)
CHANGELOG.md Release notes
CLAUDE.md Development conventions for AI coding assistants

License

MIT β€” see LICENSE.

About

Multi-agent orchestration runtime with task board, flow engine, budget control, MCP integration and real-time dashboard. Self-hosted on Linux/macOS.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages