claw-pilot

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

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

README.md

claw-pilot

CLI + web dashboard to orchestrate multi-agent clusters on a Linux or macOS server

claw-pilot v0.69.0 manages the full lifecycle of claw-runtime agent instances: provisioning,
service integration, visual Agent Builder, inter-agent messaging, middleware pipeline, named API keys,
user profiles, budget enforcement, dynamic model discovery, task board with epic hierarchy, workflow orchestration,
and a real-time dashboard to monitor and interact with multi-agent teams.

All instances use the claw-runtime engine — a native Node.js multi-agent runtime with built-in
support for Agent-to-Agent (A2A) messaging, heartbeat scheduling, MCP integration, permissions system,
memory management, middleware chain, and plugin architecture.

Installed from source only (/opt/claw-pilot or custom path via CLAW_PILOT_INSTALL_DIR).

QuestionsDiscussions (Q&A) · Bugs / TasksIssues · IdeasDiscussions (Ideas)


Features

Instance Management

  • Provision — interactive wizard to create new claw-runtime instances with auto Nginx + SSL config
  • Discovery — auto-detect existing instances on the server
  • Lifecycle — start, stop, restart, destroy instances (PID daemon-based control)
  • Health monitoring — real-time status via WebSocket, health checks, detailed logs

Agent Builder & Teams

  • Visual canvas — drag-and-drop to design multi-agent teams with live preview
  • Agent-to-Agent (A2A) — spawn links between agents, configure permissions and lifecycle modes
  • Blueprints — save reusable agent team templates, deploy to any instance
  • Team export/import — manage agent configurations as JSON/YAML for version control

Runtime Features

  • Permanent sessions — primary agents get a single persistent session shared across all channels (web, Telegram, CLI)
  • Inter-agent messagingsend_message tool for persistent cross-agent communication (synchronous or fire-and-forget with async processing)
  • Middleware pipeline — extensible pre/post middleware chain in the message processing pipeline (guardrail, tool error recovery)
  • Task board — Kanban board with 5 status columns, drag & drop, agent assignment with wakeup, epic hierarchy (parent-child goals), activity timeline, auto-completion
  • Workflow orchestration — declarative DAG-based workflow engine with fan-out/fan-in, per-step timeout & retry, SITREP extraction, session persistence (FLOW-001)
  • Heartbeat scheduling — per-agent background ticks with configurable intervals, timezone-aware active hours, permanent session reuse
  • MCP integration — discover and manage MCP servers per instance, real-time tool registry
  • Permission system — interactive approval for file access, bash execution, agent spawning
  • Memory management — context window compaction with FTS5 search on workspace files
  • Plugin system — extensible hooks for tool registration, session lifecycle, message interception
  • Named API keys — centralized AES-256-GCM encrypted key management, assignable to instances and agents
  • User profiles — per-user preferences (language, timezone, communication style, custom instructions)
  • Agent archetypes — 6 built-in templates (analyst, communicator, evaluator, generator, orchestrator, planner)
  • Budget enforcement — per-instance/agent monthly or lifetime limits, soft alert (80%), hard stop (100%), auto-pause, Telegram notifications
  • Dynamic model discovery — real-time model discovery from 8 provider APIs with polling, caching, and DB persistence

Dashboard & Tooling

  • Home screen — chatbot-styled entry point with system instance auto-provisioning, setup wizard, and 22-tool admin plugin (HOMEBOT)
  • Web dashboard — real-time status dashboard, agent builder, settings, device pairing (port 19000)
  • Command palette — global search (Cmd+K / Ctrl+K) across instances, agents, tasks, blueprints with FTS5 BM25 ranking
  • Runtime Pilot — multi-agent chat with tool call visualization, token/cost tracking, context panel, session tree
  • Cost dashboard — per-agent cost tracking with SVG charts + budget management tab
  • Activity console — live event stream (SSE) with filters and floating widget
  • Memory browser — browse and search agent memory files with decay scores
  • Heartbeat heatmap — SVG heatmap of multi-agent heartbeat activity
  • Agent templates — standalone reusable agent templates with archetype system, import/export YAML
  • Named keys panel — manage encrypted API keys, assign to instances/agents
  • Profile settings — user preferences, communication style, custom instructions
  • Permission overlay — real-time permission request/approval from dashboard
  • Inline file editor — edit agent workspace files (SOUL.md, AGENTS.md, MEMORY.md…) in the UI
  • Self-update — update to latest release via CLI or dashboard banner
  • i18n — UI available in 6 languages (EN, FR, DE, ES, IT, PT)

Requirements

  • Node.js >= 22.12.0
  • pnpm >= 9
  • Linux (Ubuntu/Debian recommended) with systemd user services
    • OR macOS with launchd integration (M1/M2/M3/M4/M5 arm64 or Intel)
  • Bash >= 5.0 for installation scripts

Install

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

Clones the repo to /opt/claw-pilot (override with CLAW_PILOT_INSTALL_DIR), builds the CLI,
and links the binary into your PATH.


CLI commands

claw-pilot [command]

Instance Management:
  init              Initialize claw-pilot & discover existing instances
  create            Create a new instance (interactive wizard)
  list              List all instances with status
  status <slug>     Show detailed status of an instance
  destroy <slug>    Destroy an instance (stops service, removes files)

Instance Lifecycle:
  start <slug>      Start an instance
  stop <slug>       Stop an instance
  restart <slug>    Restart an instance

claw-runtime:
  runtime start <slug>        Start a claw-runtime instance (--daemon for background)
  runtime stop <slug>         Stop a claw-runtime instance
  runtime restart <slug>      Restart a claw-runtime instance
  runtime logs <slug>         View runtime logs (-f for live tail)
  runtime config <slug>       Show/edit runtime.json debug snapshot (DB is source of truth)
  runtime chat <slug> [msg]   Interactive chat with an agent

Tooling:
  dashboard         Start the web dashboard (default port 19000)
  token <slug>      Show instance token (--url for full URL, --open to launch browser)
  doctor [slug]     Diagnose instance health (PID, config, workspace files)
  logs <slug>       View instance logs (-f for live tail)
  update            Update claw-pilot to the latest release
  team              Export / import agent team configurations

Authentication & Service:
  auth              Setup / reset / check dashboard authentication
  service           Install / uninstall / restart dashboard system service (systemd/launchd)

Configuration:
  config get <key>  Get a global config value
  config set <key> <value>  Set a global config value

Web Dashboard

claw-pilot dashboard
# → http://localhost:19000  (login required, user: claw-pilot, auto-generated password)

Screens

Screen Purpose
Home Chatbot entry point with system instance, setup wizard, admin flows
Instances Live status cards (health, port, agent count) with lifecycle actions
Task Board Kanban board with drag & drop, epic hierarchy, agent assignment, activity timeline
Flows Workflow editor, run history, step-by-step execution detail
Agent Builder Visual canvas per instance — design teams with drag-and-drop, A2A/spawn links
Blueprints Create, edit, deploy reusable agent team templates
Agent Templates Standalone reusable agent templates with archetype system
Runtime Pilot Multi-agent chat — tool calls, token usage, context panel, session tree
Session Logs Browse session history, messages, system prompt snapshots
Settings Per-instance configuration: general, agents, runtime, devices, MCP, permissions, named keys
Cost Dashboard Per-agent cost tracking with SVG charts + budget management
Activity Console Live event stream with real-time filters
Memory Browser Browse and search agent memory files with decay scores
Heartbeat Heatmap SVG heatmap of multi-agent heartbeat activity and scheduling
Profile Settings User preferences, communication style, custom instructions

Architecture

src/
  commands/         CLI commands — thin wrappers over core/ (17 commands incl. auth, service)
  core/             Business logic (registry, discovery, provisioner, agent-sync, blueprints, …)
    repositories/   20 SQLite repositories (server, instance, agent, port, config, event,
                    blueprint, agent-blueprint, runtime-session, rt-event, cost, heartbeat,
                    named-key, runtime-config, user-profile, budget, task, task-activity, search, flow)
    model-discovery/ Dynamic model discovery service (8 provider adapters, polling, DB persistence)
  dashboard/        Hono HTTP server + WebSocket monitor + auth (sessions/cookies)
    routes/         REST API (~139 endpoints) + WebSocket
  db/               SQLite schema and migrations (schema.ts) — current version: 34
  lib/              Utilities (logger, errors, constants, platform, xdg, shell, …)
  runtime/          claw-runtime engine
    bus/            Event bus (pub/sub)
    channel/        Message channels (web-chat, Telegram, internal)
    config/         Runtime configuration types and loaders
    engine/         Engine bootstrap, config builder, plugin wiring
    middleware/     Pre/post middleware pipeline (guardrail, tool error recovery)
    permission/     Permission ruleset (wildcard glob matching, last-match-wins)
    profile/        User profile resolution (community resolver)
    provider/       LLM provider resolution and auth profiles
    session/        Prompt loop, message handling, compaction, system prompt
    tool/           Built-in tools + send_message + task delegation
    flow/           Declarative DAG workflow engine (FLOW-001)
    agent/          Agent defaults, registry, kind resolution
    plugin/         Plugin system (hooks, types)
    mcp/            MCP client integration
    memory/         Memory indexing, decay, search tool
    heartbeat/      Heartbeat scheduling and execution
  server/           ServerConnection abstraction (LocalConnection; SSH planned)
  wizard/           Interactive creation wizard (@inquirer/prompts)
ui/src/
  components/       54+ Lit web components (home screen, instance cards, agent builder, pilot, task board, flows, …)
    pilot/          Runtime Pilot subcomponents (messages, parts, context, input, header)
  services/         Auth state, WS monitor, router, update poller
  locales/          i18n via @lit/localize (6 languages)
  styles/           Design tokens, shared CSS
templates/
  archetypes/       6 agent archetype templates (analyst, communicator, evaluator, …)
  blueprints/       3 built-in team blueprints (design-studio, dev-harness, team-architect)
  workspace/        Workspace bootstrap files (SOUL.md, IDENTITY.md, AGENTS.md, …)

Data Model

SQLite ~/.claw-pilot/registry.db — schema v34. See docs/registry-db.md.

claw-pilot registry (instance management):

Table Role
servers Physical servers (always 1 local row in v1)
instances Instances — slug, port, state, runtime_config_json, default_named_key_id
agents Agents per instance/blueprint — canvas position, skills, config_json, named_key_id
agent_files Workspace file cache (SOUL.md, AGENTS.md, MEMORY.md…)
agent_links A2A spawn links and tool dependencies between agents
blueprints Reusable agent team templates with canvas layouts
agent_blueprints Standalone reusable agent templates
agent_blueprint_files Workspace files per agent blueprint
named_api_keys AES-256-GCM encrypted API keys (admin-global)
ports Port reservation registry (avoid conflicts)
config Global key-value configuration
events Audit log per instance (creation, modification, deletion)
users / sessions Dashboard user accounts + HTTP session auth
user_profiles Per-user preferences (language, timezone, communication style)
rt_budgets Per-instance/agent budget limits (monthly/lifetime, soft alert, hard stop)
rt_budget_events Budget audit trail (alerts, overrides, resets)
discovered_models Models discovered from provider APIs (cached, with capabilities + cost)
discovery_status Provider discovery status (last success/error, model count)
rt_tasks Task board — title, status (5 states), priority, assignee, labels, position, type (task/epic), parent_id
rt_task_comments Task discussion threads (author, content, timestamps)
rt_task_activities Activity timeline per task (9 types: created, status_changed, assigned, etc.)
search_index FTS5 global search index (instances, agents, tasks, blueprints)
rt_flow_definitions Workflow definitions — name, steps DAG (JSON), trigger config, enabled
rt_flow_runs Workflow execution runs — status, trigger, timing, error
rt_flow_step_runs Per-step execution details — agent, session, SITREP, tokens, cost

claw-runtime persistence (conversation history & state):

Table Role
rt_sessions Permanent (one per primary agent, cross-channel) or ephemeral sessions
rt_messages Messages per session (user/assistant, model, tokens, cost)
rt_parts Message parts (text, tool-call, tool-result, error)
rt_events Runtime bus events per instance (activity console)
rt_permissions Permission rules approved by user (filesystem, bash, A2A)
rt_auth_profiles LLM provider auth profiles with failover chains
rt_system_prompts System prompt snapshots per session (deduplicated by hash)

Development

git clone https://github.com/swoelffel/claw-pilot.git
cd claw-pilot
pnpm install

pnpm build         # Build CLI + UI (dist/)
pnpm build:cli     # Build CLI only
pnpm build:ui      # Build UI only (Vite)
pnpm typecheck:all # tsc --noEmit (backend + UI)
pnpm test:run      # Run unit/integration tests (~2400 passing)
pnpm test:ui       # Run UI tests
pnpm test:e2e      # Run e2e tests (~100, real HTTP server, in-memory DB)
pnpm lint:all      # oxlint src/ + ui/src/
pnpm format:check  # Prettier check
pnpm spellcheck    # cspell (en + fr dictionaries)

Pre-commit hooks (lefthook): format:check + lint:all + typecheck:all.
Pre-push hooks: spellcheck + test:run. Commits follow conventional commits (commitlint).


Tech Stack

Layer Stack
Runtime Node.js >= 22.12.0, ESM modules, TypeScript ~6.0
CLI Commander.js ^14 + @inquirer/prompts (interactive wizard)
HTTP / WebSocket Hono ^4.12 + ws ^8 (real-time status + agent communication)
Database better-sqlite3 ^12 + SQLite WAL (schema v34)
UI Lit ^3 web components + Vite ^8 + @lit/localize (i18n, 6 languages)
Build tsdown (CLI), Vite ^8 (UI)
LLM Integration Vercel AI SDK ^6.0 (@ai-sdk/anthropic, openai, google)
Tests Vitest ^4 (~2400 unit/integration + ~100 e2e)
Lint / Format oxlint ^1.59 + Prettier ^3.8 + cspell + lefthook (zero-warning enforcement)
Plugin System Event bus + hook-based plugins for tool, session, and message lifecycle
MCP @modelcontextprotocol/sdk ^1.28 (stdio + HTTP transports)

Documentation

Document Content
docs/main-doc.md Architecture overview — read this before major changes
docs/ux-design.md Dashboard UX — all screens, components, interaction patterns
docs/ux-screens/ Individual screen docs (16 screens)
docs/ux-components/ Individual component and dialog docs (29 components)
docs/design-rules.md Design system, anti-patterns, delivery checklist
docs/i18n.md i18n architecture — adding languages, translation workflow
docs/registry-db.md Database schema (v38), migration history, recovery procedures
CLAUDE.md Development conventions, key patterns, common pitfalls
CHANGELOG.md Detailed release notes

Changelog

See CHANGELOG.md for detailed release notes.

  • v0.80.9 (current) — UI fixes (question cards render without F5, state reset), named-keys keyless provider support, crypto empty-string round-trip; contributor docs rewrite (develop-first gitflow)
  • v0.80.8ServerRegistry abstraction (hook H3): single entry point for "which server serves which resource"; Community ships SingleServerRegistry, Enterprise will plug FederatedServerRegistry
  • v0.80.7 — CodeQL triage — 0 open alerts: 5 true positives fixed, 21 false positives dismissed with justification
  • v0.80.6 — Enterprise Edition preparation Phase 0: pluggable permission middleware (permission() Hono factory, ACTIONS catalogue, NullPermissionChecker)
  • v0.80.5AuthProvider abstraction: pluggable auth registry, PasswordProvider (scrypt); Enterprise hook for OIDC/SAML/Azure AD
  • v0.80.3CapabilityRegistry: single source of truth for Community vs Enterprise feature gating
  • v0.79.0 — Instance shared workspace: per-instance workspaces/shared/ directory accessible by all agents, new dashboard tab, schema v38
  • v0.78.0 — Onboarding Start CTA: animated kickoff button, POST /kickoff route, system BOOTSTRAP.md for first-contact intro
  • v0.77.0 — Flow Sessions screen: run-centric master/detail view, sitrep-aware status colors, live SSE streaming for active runs
  • v0.76.0 — Instance Dashboard screen: widget-based overview (9 widgets), mini-pilot sidebar, clickable instance card
  • v0.75.0 — System-pilot documentation workspace: 45 embedded .md files, external workspace file loading, ws_search_files tool
  • v0.74.0 — INBOX-001: persistent notification inbox, bell badge, notifications table (v37), bus-driven emitter for 6 event types
  • v0.73.5 — CRUD workspace file tree: full file manager in agent panel, ws_list_files + ws_search_files plugin tools
  • v0.73.0 — Flow engine: outcome-driven DAG control flow, complete_step structured SITREP tool, automatic tool-call repair
  • v0.72.8 — Multi-user port isolation: OS username salt prevents port collisions between co-hosted installs
  • v0.71.0 — Live reasoning streaming: collapsible "Thinking…" card for extended thinking tokens; 5-phase pilot status indicator
  • v0.70.0 — Lean Home chat (cp-home-chat), live ClawPilot state in system prompts, bundled-question detection
  • v0.69.0 — HOMEBOT: chatbot home screen, system instance with 6 pre-configured flows, 22-tool admin plugin
  • v0.68.0 — FLOW-001: declarative DAG workflow engine, agent execution refactor (dashboard → runtime proxy)
  • v0.67.0 — SEARCH-001: command palette (Cmd+K), FTS5 global search across 5 entity types
  • v0.66.0 — TIMELINE-001: activity timeline per task, 9 activity types with field-level tracking
  • v0.65.0 — GOAL-001: epic hierarchy, heartbeat overhaul (permanent sessions, timezone validation)
  • v0.64.0 — TASK-001: Kanban task board with drag & drop, agent assignment, engineering excellence
  • v0.63.0 — Dynamic model discovery, 8 providers, circular dependency fix
  • v0.62.0 — Budget enforcement with auto-pause, Telegram alerts
  • v0.58.0 — Dashboard service management, auth command, system prompt snapshots
  • v0.55.0 — Agent templates, runtime config in DB, skills sync
  • v0.48.0 — Heartbeat heatmap, memory browser, activity console, cost dashboard
  • v0.45.0 — Cost tracking, send_message tool, multi-agent collaboration
  • v0.30.0 — Workspace autodiscovery, runtime-specific features

License

MIT — see LICENSE


Updated: 2026-04-12 — v0.69.0, schema v34, 20 repositories, ~139 REST endpoints, HOMEBOT, workflow engine, task board, command palette

Reviews (0)

No results found