Skip to content
Cisco AI Defense logo
CiscoAI Security

Python CLI — DefenseClaw

Overview

defenseclaw is the Python control-plane CLI. It provisions config, drives scanners, manages policy, and wraps the gateway sidecar lifecycle. Run it anywhere you have the Python package installed.

How to use this page

The table below is auto-generated from the Click root group — every command that exists in the Python CLI shows up here. Click the link for the full flag reference, options, env vars, and usage recipes. For globals (--help, --version, --config) see the CLI overview.

Reference

Global synopsis

defenseclaw [--version] [--help] <command> [<args>]

Commands

CommandDescription
aibomAI Bill of Materials — scan live OpenClaw inventory.
alertsView and manage security alerts.
auditAudit trail helpers (activity logging).
codeguardCodeGuard static-analysis skill management.
configInspect and validate DefenseClaw configuration.
doctorVerify credentials, endpoints, and connectivity.
initInitialize DefenseClaw environment.
keysInspect and manage DefenseClaw API keys.
mcpManage MCP servers — scan, block, allow, list, set, unset.
pluginManage DefenseClaw plugins — install, list, remove, scan, block, allow, disable, enable, quarantine, restore.
policyManage DefenseClaw security policies — create, list, show, activate, validate, test, edit.
quickstartZero-prompt end-to-end setup with safe defaults.
resetWipe ~/.defenseclaw so 'defenseclaw quickstart' starts clean.
sandbox[experimental] Manage openshell-sandbox standalone mode.
settingsOperator settings (parity with the TUI setup panel save path).
setupConfigure DefenseClaw components.
skillManage OpenClaw skills — search, install, scan, block, allow, disable, enable, quarantine, restore.
statusShow DefenseClaw status.
toolManage tool-level block/allow lists.
tuiLaunch the DefenseClaw interactive dashboard (TUI).
uninstallUninstall DefenseClaw (reversibly by default).
upgradeUpgrade DefenseClaw to the latest version.
versionShow DefenseClaw CLI / gateway / plugin versions and flag drift.

Global options

FlagTypeDefaultEnv varRequiredDescription
--versionbooleannoShow the version and exit.

Automation tips

See Automation for CI/CD patterns, exit code handling, and JSON output conventions.