Skip to content

CLI Reference

ZeptoClaw uses a subcommand-based CLI built with clap.

zeptoclaw [OPTIONS] <COMMAND>
OptionDescription
--helpShow help message
--versionShow version

Run a single agent interaction.

Terminal window
zeptoclaw agent [OPTIONS] -m <MESSAGE>
OptionDescription
-m, --message <TEXT>Message to send to the agent
--streamEnable streaming (token-by-token output)
--template <NAME>Use an agent template (coder, researcher, writer, analyst)
--workspace <PATH>Set workspace directory
Terminal window
# Simple message
zeptoclaw agent -m "Hello"
# With streaming
zeptoclaw agent --stream -m "Explain async Rust"
# With template
zeptoclaw agent --template coder -m "Write a CSV parser"

Start the multi-channel gateway.

Terminal window
zeptoclaw gateway [OPTIONS]
OptionDescription
--containerized [RUNTIME]Enable container isolation (auto, docker, apple)
--tunnel [PROVIDER]Enable tunnel (auto, cloudflare, ngrok, tailscale)
Terminal window
# Start gateway
zeptoclaw gateway
# With container isolation
zeptoclaw gateway --containerized docker

Process multiple prompts from a file.

Terminal window
zeptoclaw batch [OPTIONS] --input <FILE>
OptionDescription
--input <FILE>Input file (text or JSONL)
--output <FILE>Output file (default: stdout)
--format <FORMAT>Output format: text, jsonl
--template <NAME>Agent template to use
--streamEnable streaming per prompt
--stop-on-errorStop on first error
Terminal window
# Process text file
zeptoclaw batch --input prompts.txt
# JSONL output
zeptoclaw batch --input prompts.txt --format jsonl --output results.jsonl
# With template and error handling
zeptoclaw batch --input prompts.jsonl --template researcher --stop-on-error

Validate configuration file.

Terminal window
zeptoclaw config check

Reports unknown fields, missing required values, and type errors.

Manage conversation history.

Terminal window
zeptoclaw history <SUBCOMMAND>
Terminal window
zeptoclaw history list [--limit <N>]

List recent sessions with timestamps and titles.

Terminal window
zeptoclaw history show <QUERY>

Show a session by fuzzy-matching the query against session titles and keys.

Terminal window
zeptoclaw history cleanup [--keep <N>]

Remove old sessions, keeping the most recent N (default: 50).

Manage agent templates.

Terminal window
zeptoclaw template <SUBCOMMAND>

List all available templates (built-in and custom).

Terminal window
zeptoclaw template show <NAME>

Show template details including system prompt, model, and overrides.

Run the interactive setup wizard.

Terminal window
zeptoclaw onboard [OPTIONS]
OptionDescription
--fullRun the full 10-step wizard instead of express setup

Walks through provider key setup, channel configuration, and workspace initialization.

View heartbeat service status.

Terminal window
zeptoclaw heartbeat --show

Manage agent skills.

Terminal window
zeptoclaw skills list

List available skills from ~/.zeptoclaw/skills/.

Manage secret encryption at rest.

Terminal window
zeptoclaw secrets <SUBCOMMAND>

Encrypt plaintext API keys and tokens in your config file using XChaCha20-Poly1305.

Terminal window
zeptoclaw secrets encrypt

Decrypt secrets for editing.

Terminal window
zeptoclaw secrets decrypt

Re-encrypt with a new master key.

Terminal window
zeptoclaw secrets rotate

Manage long-term memory from the CLI.

Terminal window
zeptoclaw memory <SUBCOMMAND>
Terminal window
zeptoclaw memory list [--category <CATEGORY>]
Terminal window
zeptoclaw memory search <QUERY>
Terminal window
zeptoclaw memory set <KEY> <VALUE> [--category <CATEGORY>] [--tags <TAGS>]
Terminal window
zeptoclaw memory delete <KEY>
Terminal window
zeptoclaw memory stats

Discover available tools.

Terminal window
zeptoclaw tools <SUBCOMMAND>

List all available tools and their status.

Terminal window
zeptoclaw tools list

Show detailed info about a specific tool.

Terminal window
zeptoclaw tools info <NAME>

Monitor a URL for changes.

Terminal window
zeptoclaw watch <URL> [OPTIONS]
OptionDescription
--interval <DURATION>Check interval (e.g., 1h, 30m)
--notify <CHANNEL>Channel for notifications

Manage channels.

Terminal window
zeptoclaw channel <SUBCOMMAND>
Terminal window
zeptoclaw channel list
Terminal window
zeptoclaw channel setup <NAME>
Terminal window
zeptoclaw channel test <NAME>

Import config and skills from an OpenClaw installation.

Terminal window
zeptoclaw migrate [OPTIONS]
OptionDescription
--from <PATH>Path to OpenClaw installation
--dry-runPreview migration without writing files
--yesNon-interactive (skip prompts)