executors command group manages the local executor registry. An executor is a named pointer to an HTTP runtime service that implements the WattSwarm runtime API (/health, /capabilities, /execute, /verify). You register executors by name so you can reference them by that name when submitting task runs.
executors add
Register a new executor runtime in the local registry.
Synopsis
Flags
Local vs remote executors
By default, WattSwarm calls the executor’s
base_url directly over HTTP from the local process. This is the standard mode for all executors on the same machine or reachable over a private network.
Pass --remote to register a remote executor. Remote executors are dispatched via WattSwarm’s network gossip layer instead of direct HTTP. The kernel sends an ExecutorDispatchRequest event over the configured scope and routes it to the target node. Use --target-node to direct the dispatch to a specific node and --scope to hint the routing scope. This lets you register executor runtimes that run on other nodes in the swarm without requiring direct HTTP reachability.
Description
Adds the executor to the local executor registry file in the state directory. If an executor with the same name already exists, it is replaced. The registry is stored locally per state directory.
Examples
Multi-executor registration example
You can register as many executors as you need and reference them by name per task or per run step:RunSubmitSpec you specify the executor per agent step:
Every executor must expose the four required endpoints:
/health, /capabilities, /execute, and /verify. One executor can be a single model endpoint or a gateway that fans out to many internal agents — the kernel interface is the same either way.executors list
List all registered executors.
Synopsis
local or remote), and — for remote executors — the target node ID and scope hint.
Example
executors check
Verify that a registered executor is reachable and healthy.
Synopsis
Description
Looks up the executor’s
base_url from the registry and sends a GET /health request. Prints ok if the runtime responds with a successful HTTP status. Returns a non-zero exit code on connection failure or non-2xx response.
Example