Skip to main content

CLI reference

The bunny command is the agent CLI. Run from a git checkout (./bunny …) or from an installed binary (/usr/local/bin/bunny).

bunny --help
bunny <command> --help

Setup and run

CommandDescription
bunny configureFirst-run wizard: owner account, MFA, public URL, optional Discord
bunny config-initWrite default ~/.config/bunny/config.yaml if missing
bunny runStart agent + Web UI (builds UI on first run in dev)
bunny startStart API only (UI if dist exists)
bunny doctorCheck dependencies (Chromium, Node, sidecars, tmux)
bunny statusShow terminals, previews, bind address

bunny run flags

FlagDefaultDescription
--host127.0.0.1Bind address (0.0.0.0 in Docker)
--port7681HTTP port
--no-web-uioffSkip Web UI build/serve
--web-ui-rebuildoffForce npm run build in apps/web
--no-discord-bridgeoffDo not start Discord bridge with agent

bunny configure flags

FlagDescription
--emailOwner email (non-interactive)
--passwordOwner password (non-interactive)
--public-url / BUNNY_SERVER__PUBLIC_URLAgent public URL (watch links, OAuth, team chat deep links)

Auth and users

CommandDescription
bunny init-authInitialize auth database
bunny auth-statusShow auth bootstrap status
bunny user invite …Create invitation (MVP: owner CLI)
bunny user revoke …Revoke user by email

Sessions and dev

CommandDescription
bunny dev --cmd "…"Dev session + terminal + optional preview/browser
bunny stop --session-id …Stop session
bunny recover <session_id>Recover session
bunny reset <session_id>Reset session

Secrets

CommandDescription
bunny secrets initCreate encrypted vault
bunny secrets set NAME --scope system|project|sessionStore secret
bunny secrets list / get / removeManage vault
bunny secrets unlockUnlock for current shell
bunny secrets statusVault state

See Security.

Discord

CommandDescription
bunny discord setupWrite agent + bridge config (bot token, OAuth)
bunny discord bridgeRun Discord bot (needs running agent)
bunny discord syncSync agent config.yaml from bridge YAML (token mismatch fix)

bunny discord setup flags

FlagDescription
--application-id / DISCORD_APPLICATION_IDDiscord application ID
--bot-token / DISCORD_BOT_TOKENBot token
--guild-id / DISCORD_GUILD_IDServer ID for instant slash command registration
--bridge-outBridge YAML path (default .discord/bridge.yaml)
--skip-oauthBot only, no user linking

Full Discord usage: Discord setup, slash commands.

Service (systemd)

CommandDescription
bunny service installInstall systemd unit
bunny service statusService status

Shell wrapper (git checkout only)

CommandDescription
./bunny setupInstall prerequisites + build release binary + PATH symlink
./bunny setup --minimalSkip browser stack

Environment

VariableDescription
BUNNY_INSTALL_DIRPre-built install root (/opt/bunny)
BUNNY_SERVER__BIND_HOSTOverride server.bind_host
BUNNY_SERVER__PORTOverride server.port
BUNNY_SECRETS_PASSPHRASEAuto-unlock secrets vault
BUNNY_DOCKER_DEV=1Docker dev hints for Discord setup

Config file: ~/.config/bunny/config.yaml. See Configure the server.