Skip to main content
Commands Reference

CLI Commands

Every ZoarkBot command explained. Run these in your terminal on the machine where ZoarkBot is installed.

CommandWhat it does
zoarkbot startStarts the ZoarkBot gateway process in the background
zoarkbot stopGracefully stops the gateway process
zoarkbot restartStops then starts the gateway. Also reloads your config file.
zoarkbot statusShows gateway health: running/stopped, channel connections, active sessions, config state
zoarkbot tokenPrints your gateway access token. Paste this into Mission Control to connect.
zoarkbot logsStreams live logs from the gateway. Shows agent activity, errors, and events.
zoarkbot setupInteractive first-time setup wizard. Creates ~/.zoarkbot/zoarkbot.json with your answers.
zoarkbot updateUpdates ZoarkBot to the latest version. Pulls new binary/package and restarts.

zoarkbot start

Starts the ZoarkBot gateway process in the background

When to use: After installing or after your server reboots

zoarkbot start

zoarkbot stop

Gracefully stops the gateway process

When to use: To shut down ZoarkBot without deleting data

zoarkbot stop

zoarkbot restart

Stops then starts the gateway. Also reloads your config file.

When to use: After editing zoarkbot.json, after updates, or when something seems stuck

zoarkbot restart

zoarkbot status

Shows gateway health: running/stopped, channel connections, active sessions, config state

When to use: First thing to run when something is wrong

zoarkbot status zoarkbot status --all # more detail zoarkbot status --deep # includes channel probes

zoarkbot token

Prints your gateway access token. Paste this into Mission Control to connect.

When to use: When logging in to mc.zoarkai.org for the first time, or after a token change

zoarkbot token

zoarkbot logs

Streams live logs from the gateway. Shows agent activity, errors, and events.

When to use: Debugging issues, or watching agent activity in real-time

zoarkbot logs zoarkbot logs --follow # tail -f style

zoarkbot setup

Interactive first-time setup wizard. Creates ~/.zoarkbot/zoarkbot.json with your answers.

When to use: Only during initial installation

zoarkbot setup

zoarkbot update

Updates ZoarkBot to the latest version. Pulls new binary/package and restarts.

When to use: To get new features and bug fixes. Check mc.zoarkai.org for release notes.

zoarkbot update

Environment variables

These env vars affect all commands:

ZOARKBOT_GATEWAY_TOKENAuth token for the gateway. Same as gateway.auth.token in config.
ZOARKBOT_GATEWAY_PORTOverride the gateway port (default: 18789).
ZOARKBOT_CONFIG_PATHOverride the config file path (default: ~/.zoarkbot/zoarkbot.json).
ANTHROPIC_API_KEYYour Anthropic API key. Can also go in ~/.zoarkbot/.env.
ZOARKBOT_SKIP_LICENSESet to 1 to bypass license check (for development only).