CLI Reference
Complete reference for the elasticclaw CLI.
--profile to target a specific ElasticClaw Server,--json for machine-readable output, and --quiet to suppress non-essential output.Global Flags
--config — CLI profile config path (default ~/.elasticclaw/config.yaml)
--profile — Server profile to use
--json — Output as JSON
--quiet, -q — Suppress non-essential output
--yes, -y — Answer yes to all prompts
elasticclaw upgrade
Upgrade the CLI to the latest GitHub release. Auto-detects platform and replaces the binary atomically.
elasticclaw upgradeRestarts the ElasticClaw Server systemd service if it is running.
elasticclaw install
Install ElasticClaw Server on a remote server via SSH. Sets up the binary, systemd service, Caddy reverse proxy with TLS, and generates tokens.
elasticclaw install --server ssh://root@my-server.com --domain server.mycompany.comFlags:
--server— SSH URI (required)--domain— Domain for TLS (required)--ssh-key— SSH private key path--version— Pin a release version (default: latest)--token— Server user token (default: random)--ui-password— Web UI password (default: random)--skip-caddy— Skip Caddy/TLS setup
elasticclaw hub
ElasticClaw Server management commands.
hub init
Generate a server config file.
elasticclaw hub init
elasticclaw hub init --public-url https://server.example.com
elasticclaw hub init --print # stdout only, don't writehub upgrade
Upgrade ElasticClaw Server on a remote server via SSH.
elasticclaw hub upgrade --server ssh://root@server.example.comhub service
Manage the systemd service (Linux only).
sudo elasticclaw hub service install # write unit file, enable, start
sudo elasticclaw hub service uninstall # stop, disable, remove
elasticclaw hub service statushub caddy
Manage Caddy reverse proxy (Linux only). Handles TLS via Let's Encrypt.
sudo elasticclaw hub caddy install --domain server.example.com
sudo elasticclaw hub caddy uninstallelasticclaw profile
Manage server connection profiles. Each profile stores a server URL and token.
elasticclaw profile ls
elasticclaw profile create work --url https://server2.example.com --token mytoken
elasticclaw profile use work
elasticclaw profile rename work prod
elasticclaw profile rm work
elasticclaw profile showelasticclaw create
Legacy template-based agent creation. This command is hidden and deprecated; use elasticclaw workspace push and elasticclaw workflow trigger for workflow-created agents.
elasticclaw chat
Start an interactive chat session with an agent.
elasticclaw chat my-agentelasticclaw list / ls
List running agents.
elasticclaw list
elasticclaw ls --jsonelasticclaw inspect
Show detailed info about an agent.
elasticclaw inspect my-agentelasticclaw kill
Terminate an agent and destroy its sandbox.
elasticclaw kill my-agentelasticclaw workspace
Manage workspaces.
elasticclaw workspace create --name my-workspace # scaffold .elasticclaw/workspaces/my-workspace
elasticclaw workspace list # list server workspaces
elasticclaw workspace push my-workspace # push workspace files to server
elasticclaw workspace rm my-workspace # remove from server
elasticclaw workspace show my-workspace # show workspace configelasticclaw workflow
Push, inspect, and manually trigger workflows in a workspace.
elasticclaw workflow push --workspace my-workspace .elasticclaw/workflows
elasticclaw workflow list --workspace my-workspace
elasticclaw workflow show triage --workspace my-workspace
elasticclaw workflow trigger triage --workspace my-workspace --input key=valueelasticclaw secret
Manage workspace-scoped secrets.
elasticclaw secret create openai_api_key --workspace my-workspace --value "$OPENAI_API_KEY"
printf '%s' "$TOKEN" | elasticclaw secret create deploy_token --workspace my-workspace
elasticclaw secret list --workspace my-workspace
elasticclaw secret rm deploy_token --workspace my-workspaceelasticclaw github-app
Manage workspace-scoped GitHub Apps for repository access.
elasticclaw github-app create app-bot --workspace my-workspace \
--app-id 123456 \
--url https://github.com/apps/app-bot \
--installation my-org \
--private-key-file ./app-bot.private-key.pem
elasticclaw github-app list --workspace my-workspace
elasticclaw github-app rm app-bot --workspace my-workspaceelasticclaw provider
List available sandbox providers.
elasticclaw provider listelasticclaw login
Authenticate with ElasticClaw Server.
elasticclaw login --hub https://server.example.com --token mytokenelasticclaw hub
Start ElasticClaw Server, including the embedded web UI.
elasticclaw hub