@enforgate/cli
v0.1.0
Published
Command-line tool for the Enforgate gateway: check tool calls, simulate and lint policies.
Readme
@enforgate/cli
Command-line tool for Enforgate — action-boundary security for AI agents. Check tool calls against your gateway, and simulate/lint policy files locally.
Install
npm i -g @enforgate/cli
# or run without installing:
npx @enforgate/cli helpGet an API key
Generate a key in the Enforgate dashboard (Dashboard → API Keys → Create). The full key (bwb_…) is shown once — copy it. Then either pass it with --key or set it in your environment:
export ENFORGATE_API_KEY=bwb_xxx
export ENFORGATE_GATEWAY_URL=https://your-gateway.example.com # default http://localhost:3000Commands
# Get a verdict for a tool call (allow / deny / require_approval)
enforgate check demo send_email --args '{"to":"[email protected]"}'
# Dry-run a policy file against a tool name (no network)
enforgate simulate ./policy.json send_email
# Validate a policy file's rules
enforgate lint ./policy.jsonenforgate check exit codes: 0 allow, 1 deny/error, 2 require_approval — handy in scripts and CI.
License
MIT
