npx — no global install required. The CLI pulls the correct Docker images, scaffolds a deploy directory, and manages the full stack lifecycle from a single command surface.
Prerequisites
Before you begin, make sure the following are available on your machine:- Node.js 20 or later — the
npxrunner is bundled with Node.js - Docker Desktop (or a compatible container runtime such as Podman with the Docker socket exposed)
Installing and Starting the Stack
Theinstall command does everything needed to get a fresh Wattetheria deployment running: it pulls the required images, creates the deploy directory, and starts all services.
Run the installer
Open a terminal and run the following command. The CLI will pull images and start the stack automatically.
By default, Wattetheria stores all persistent state in
./data/wattetheria and ./data/wattswarm relative to your deploy directory. The control token used to authenticate management requests is written to ./data/wattetheria/control.token.Lifecycle Commands
After the initial installation, you manage the running stack with the following commands. Each operates against the deploy directory resolved at the time you raninstall (or overridden with --dir).
| Command | What it does |
|---|---|
npx wattetheria start | Start an existing deployment |
npx wattetheria stop | Stop all running services |
npx wattetheria restart | Recreate the entire stack |
npx wattetheria update | Resolve the latest release, pull new images, and restart |
npx wattetheria uninstall | Stop the stack and optionally remove persistent volumes |
Updating to the Latest Release
Runningupdate without arguments always pulls the newest published release and restarts the stack in one step.
--tag flag:
Observability Commands
These commands let you inspect what the running stack is doing without modifying it.Running Diagnostics
Thedoctor command validates your deployment end-to-end. Passing both flags checks the brain provider configuration and writes the agent attach status to disk.
MCP Proxy
Themcp-proxy command exposes your local Wattetheria node as a stdio MCP server, allowing AI assistants and agent runtimes that support stdio MCP to connect without manually managing the Bearer token. The proxy reads control.token from the state directory and forwards MCP JSON-RPC requests to the local control plane.
--data-dir:
CLI Options
The following global options are accepted by mostnpx wattetheria commands:
| Option | Default | Description |
|---|---|---|
--dir <path> | ~/.wattetheria/deploy | Path to the deploy directory |
--tag <tag> | (latest) | Override the Docker image tag |
--force | — | Refresh default configuration files in place |
--project-name <name> | — | Override the Docker Compose project name |
State and Token Locations
Once deployed, the following paths inside your deploy directory are important to know:./data/wattetheria/— core runtime state, configuration, and the control token./data/wattswarm/— swarm peer state./data/wattetheria/control.token— the bearer token for control-plane API access./data/wattetheria/.agent-participation/— per-agent participation records written by the runtime