Skip to content

CLI Overview

GuardClaw provides a full-featured command-line interface for managing the safety monitor, configuring LLM backends, connecting AI agents, and inspecting evaluation results.

Installation

Global install via npm

bash
npm install -g guardclaw

After installation, the guardclaw command is available globally.

From source

bash
git clone https://github.com/TobyGE/GuardClaw.git
cd GuardClaw
npm install && npm install --prefix client && npm run build
npm link

Verify installation

bash
guardclaw version
# GuardClaw v0.1.6

Command overview

CommandDescription
startStart the GuardClaw server
stopStop the GuardClaw server
restartRestart the server
statusServer and agent connection overview
updateUpdate GuardClaw to the latest version
setupRun the interactive setup wizard
configConfiguration management
hooksManage agent hook integrations
pluginManage the OpenClaw interceptor plugin
statsEvaluation statistics
historyRecent evaluations
checkManually risk-score a command
blockingToggle blocking mode
modelLLM model management
approvalsShow pending approvals
memoryShow learned patterns
briefSecurity memory sessions
versionPrint version
helpShow help

Command aliases

Several commands have shorthand aliases:

AliasCommand
rs, rrestart
log, logshistory
modelsmodel
blockblocking
analyzecheck
pendingapprovals
patternsmemory
bufferbrief
wizardsetup
upgradeupdate
--version, -vversion
--help, -hhelp

Port configuration

By default, GuardClaw runs on port 3002. You can change this with:

bash
# Via start flag
guardclaw start --port 4000

# Via environment variable
guardclaw config set PORT 4000

# Via .env file
echo "PORT=4000" >> .env

The CLI reads the port from GUARDCLAW_PORT, then PORT, then defaults to 3002.

Hot-reload

All configuration changes made via the CLI are applied immediately to the running server — no restart required. This includes LLM backend changes, approval mode, thresholds, tokens, and more.

Getting help

bash
guardclaw help        # Full command reference
guardclaw --help      # Same as above
guardclaw -h          # Same as above

Released under the MIT License.