Skip to content
Cisco AI Defense logo
CiscoAI Security

defenseclaw doctor — DefenseClaw

Overview

defenseclaw doctor — Verify credentials, endpoints, and connectivity.

Reference

Synopsis

defenseclaw doctor [OPTIONS]

Description

Verify credentials, endpoints, and connectivity

Verify credentials, endpoints, and connectivity.

Runs a series of checks against every configured service and API key to catch problems before they surface at runtime.

Use --fix to auto-repair safe issues (stale sidecar PID files, OpenClaw gateway token drift, missing .env file, and unpatched openclaw.json when the guardrail is enabled). Destructive or ambiguous fixes still require the operator to run the relevant setup command explicitly.

Exit codes: 0 = all pass, 1 = any failure.

Options

FlagTypeDefaultEnv varRequiredDescription
--json-outputbooleannoOutput results as JSON
--fixbooleannoAuto-repair safe issues (stale PIDs, OpenClaw token drift, etc.)
--yesbooleannoWhen used with --fix, apply fixes without prompting

Usage

Run diagnostics

defenseclaw doctor
defenseclaw doctor --json-output

The plain output is for humans; --json-output is intended for automation.

Apply supported fixes

defenseclaw doctor --fix --yes

--yes confirms repair prompts for non-interactive runs.

Related