Skip to content

CLI Overview

The netclaw CLI controls your agent — configuration, diagnostics, chat, daemon lifecycle.

Terminal window
netclaw <command> [options]

The Daemon column in each table indicates whether the netclaw daemon (the background process that manages sessions, connectors, and model routing) must be running for that command to work.

CommandDescriptionDaemonTUI
chatInteractive terminal UI chatRequiredYes
chat -p <text>Headless single-prompt mode (supports --resume / -r, --json)RequiredNo
sessionsBrowse and resume recent sessionsRequiredYes
sessions --onceList sessions without the terminal UIRequiredNo
sessions --jsonJSON output (implies --once)RequiredNo
CommandDescriptionDaemonTUI
initFirst-run setup wizard (starts the daemon for you)Not requiredYes
doctorConfig and connectivity diagnostics; --fix for auto-repairOptionalNo
statusDaemon runtime health, connector status, model infoRequiredNo
statsToken usage, session counts, memory stats; --tui for dashboardRequiredNo
CommandDescription
daemon startStart daemon as a background process
daemon stopStop daemon gracefully
daemon statusShow daemon process status
daemon installInstall systemd user service (Linux)
daemon uninstallRemove systemd user service (Linux)
daemon pairGenerate a pairing code (run on the host machine)
daemon devicesList paired devices
daemon devices revoke <name>Revoke a paired device by name
pair <endpoint>Pair this device with a remote daemon using a pairing code (run on the remote device)

See the Pairing Remote Devices guide for the full walkthrough.

CommandDescriptionDaemonTUI
providerManage LLM providersNoYes (bare invocation)
modelManage model role assignmentsNoYes (bare invocation)
mcpManage MCP (Model Context Protocol) server profiles and tool permissionsOptionalPartial
webhooksManage inbound webhook routesNoNo
secretsStore encrypted secrets via secrets set <key> <value>. See Secrets.NoNo
reminderManage scheduled remindersRequiredYes (ui or tui subcommand)
skillManage skills and external skill sources. See Skills.NoNo

See Configuration for field references and config file details.

CommandDescription
updateCheck for and install CLI updates; --check to check only
version / --version / -VPrint version, commit hash, and build timestamp
Terminal window
# First-time setup (starts the daemon automatically)
netclaw init
# Check everything is wired up
netclaw doctor
# Verify the daemon is healthy
netclaw status

If status shows errors, run netclaw doctor --fix to auto-repair common issues.

Terminal window
# Start chatting
netclaw chat

Once you’re up and running, head to First Conversation for a walkthrough of your first chat session.

netclaw status output

netclaw status shows the daemon’s health, active model, and connector states.

FilePurpose
~/.netclaw/config/netclaw.jsonMain configuration
~/.netclaw/config/secrets.jsonEncrypted credentials overlay
NETCLAW_* env varsHighest-priority overrides

See Configuration for field references.

CodeMeaning
0Success
1Validation, policy, or runtime failure
2Usage or argument error

Non-TUI commands silently check for updates on startup. TUI commands skip this — run netclaw update --check to check manually.

netclaw 0.16.2 (commit 5f3f0ee, built 2026-04-30T03:18:25Z)