Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

Run warden --help for the authoritative list. Options resolve flag ▸ WARDEN_* env ▸ --config TOML ▸ default (see Configuration).

Commands

CommandPurpose
warden demoSelf-contained walkthrough (no API key, no external server).
warden proxy …Run as an MCP proxy (stdio, or HTTP with --http).
warden approvals listList pending held actions.
warden approve <id> [--by WHO] [--approver-key PEM]Release a held action (signs a per-action assertion if a key is given).
warden deny <id> [--by WHO]Deny a held action.
warden pause / warden resumeStop/resume forwarding at Warden; resume reloads policy.
warden revoke (--jti X | --agent Y | --human Z) --revoke-key PEMAppend a signed revocation event.
warden token verify --token FILE …Verify a token the way the proxy would (conformance check).
warden audit tailShow the audit trail.
warden audit verify [--anchor FILE --anchor-pub PEM]Verify the chain (and signed checkpoints).
warden policy show | lint | testInspect, statically check, or dry-run a policy.

warden proxy — key flags

Core

FlagMeaning
--upstream "<cmd>"The real MCP tool server to launch and front (required).
--agent NAMEThis agent’s wire identity (must match the token’s leaf actor).
--policy FILEPolicy file (default warden.policy.toml).
--config FILEA [proxy] TOML table; flags override it.
--http ADDRServe MCP Streamable-HTTP instead of stdio.
--log-format jsonStructured decision logs to stderr.
--metrics FILEWrite a metrics snapshot on drain.
--drain-timeout SECSBound the graceful-shutdown drain.

Identity

FlagMeaning
--token FILESession delegation token (one principal for the process).
--request-identityPer-request bearer identity (shared gateway). Mutually exclusive with --token.
--aud AUD / --iss ISSRequired audience / issuer allowlist (comma-separated).
--jwks FILE / --jwks-url URL / --issuer-url URLJWKS by file, over HTTPS, or via OIDC discovery.
--issuer-key PEMA single PEM public key (instead of JWKS).
--token-key KEYDev-envelope keyed digest (local only).
--leeway SECSClock-skew tolerance.
--require-at-jwtRequire typ: at+jwt (RFC 9068).

Evidence & control

FlagMeaning
--audit FILE / --approvals FILEAudit log / approval queue paths.
--anchor FILE --anchor-key PEM [--anchor-interval N]Sign chain-head checkpoints.
--ocsf FILEOCSF event sink (SIEM).
--redact PROFILES [--redact-scan-values]PII/secret redaction (gdpr/hipaa/pci/secrets).
--budget FILEDurable per-run budget counts.
--http-auth-token TOKENRequire a bearer on the HTTP surface.
--approver-jwks FILERequire signed approvals from an allowlisted key set.
--revocations FILE --revocation-pub PEMSubscribe to a signed revocation feed.
--control FILEEnable the admin pause/resume control plane.
--require-handshakeReject any tools/call before MCP initialize.
--upstream-timeout SECSPer-call upstream timeout (auto-restart on hang/crash).

warden token verify

warden token verify --token FILE --agent NAME [--aud AUD] [--iss ISS] \
  (--jwks FILE | --jwks-url URL | --issuer-key PEM | --token-key KEY) [--require-at-jwt]

Prints the accountable subject, the delegation chain, roles, scope, and relationships if the token verifies; exits non-zero otherwise. This is the check SDK adapters run against.

warden policy

warden policy show  --policy FILE
warden policy lint  --policy FILE                      # exits non-zero on errors
warden policy test  --policy FILE --tool NAME [--args JSON] [--token FILE …]