CLI reference

Every officeclaws command and flag in one place.

Run officeclaws help for the built-in summary. Most commands that act on an agent accept --agent <id>. Without it, they use your first agent.

Account

CommandDescription
officeclaws register [--email] [--name] [--password-stdin]Create an account and log in
officeclaws login [--email] [--password-stdin]Log in
officeclaws logout [--keep-credentials]Log out. Also deletes saved credentials unless you pass --keep-credentials.
officeclaws whoamiShow the current account and whether it has an agent
officeclaws subscribe [--plan selfHosted] [--locale en]Open the checkout linked to your account

--password-stdin reads the password from standard input, for scripts. Example: echo "$PW" | officeclaws login --email [email protected] --password-stdin.

Agents

CommandDescription
officeclaws onboard [flags]Set up a Contabo VPS as an agent. See Create your agent.
officeclaws agentsList your agents
officeclaws connect-codex [--agent]Connect your ChatGPT subscription
officeclaws chat [--agent] [-m "message"]Chat interactively, or send a single message
officeclaws logs [--agent] [--lines N] [-f]Show or stream the agent's logs

onboard flags: --name, --vps, --reinstall, --ssh-pubkey, --avatar, --comm-style, --tailscale-hostname, --tailscale-authkey, --contabo-client-id, --contabo-client-secret, --contabo-api-user, --contabo-api-password. --reinstall is meant for our internal prebuilt server images and doesn't wipe your VPS. To start from a clean server, reinstall Ubuntu 24.04 from the Contabo control panel instead.

Scheduled tasks

CommandDescription
officeclaws cron listList scheduled tasks
officeclaws cron add --name --schedule --message [--timezone] [--channel] [--target]Add a task
officeclaws cron rm <name-or-id>Remove a task

Telegram

CommandDescription
officeclaws telegram set [--bot-token] [--dm-policy pairing|allowlist|open|disabled]Connect or update the bot
officeclaws telegram showShow the current settings
officeclaws telegram pairingsList pending pairing codes
officeclaws telegram approve <code>Approve a Telegram user
officeclaws telegram disableTurn Telegram off

Credentials and devices

CommandDescription
officeclaws vault list [--type contabo|tailscale|telegram]List saved credentials (values masked)
officeclaws vault apply <id>Make a saved set the active one
officeclaws vault rm <id>Delete a saved set
officeclaws devices list / approve <id>Device requests on the agent's gateway
officeclaws pairing list / approve <id> / reject <id> / repairOperator pairing requests; repair fixes "1008 pairing required"

Advanced

CommandDescription
officeclaws adopt --vps <id> --host <tailscale-ip> --name <name>Register an agent that's already running when setup got interrupted after the server was ready. Use it only if support asks you to.
officeclaws versionPrint the version

Environment variables

VariableDescription
OFFICECLAWS_DEBUG=1Print detailed logs to stderr
OPENCLAW_RPC=0Use the fallback chat connection (rarely needed)

Where things are stored

WhatWhere
Session, Contabo and Tailscale credentials, vaultSystem keychain, service openclaw-office
SSH key used to manage your agents~/.ssh/openclaw_id_ed25519
Setup logs~/.openclaw/logs