Skip to content
Cisco AI Defense logo
CiscoAI Security

Gateway CLI — DefenseClaw

Overview

defenseclaw-gateway is the Go sidecar daemon. It connects to the OpenClaw gateway WebSocket, enforces policy on tool calls in real time, runs the audit pipeline, and exposes the local REST API that the Python CLI drives.

Reference

Global synopsis

defenseclaw-gateway [flags] <command> [args]

Description

DefenseClaw gateway sidecar — connects to the OpenClaw gateway WebSocket, monitors tool_call and tool_result events, enforces policy in real time, and exposes a local REST API for the Python CLI.

Run without arguments to start the sidecar daemon.

Commands

CommandDescription
auditInspect and export the local audit database
policyManage and inspect OPA policies
provenancePrint binary and config provenance (v7 quartet)
restartRestart the gateway sidecar daemon
sandboxManage the openshell-sandbox instance
scanRun security scanners
startStart the gateway sidecar as a background daemon
statusShow health of the running sidecar's subsystems
stopStop the running gateway sidecar daemon
tuiLaunch the interactive TUI dashboard
watchdogHealth watchdog that notifies when the gateway is down

Persistent flags

FlagTypeDefaultDescription
--hoststringGateway host (default: from config)
--portint0Gateway port (default: from config)

Running as a daemon

  • systemd: scripts/systemd/defenseclaw-gateway.service (generated by defenseclaw start --install-service).
  • launchd (macOS): managed by defenseclaw start / defenseclaw stop.
  • Docker / k8s: run the binary as PID 1; it handles graceful shutdown signals and flushes audit sinks before exit.

Related