CLI
Generated from nexum --help. Every command accepts -c/--config (env NEXUM_CONFIG, default nexum.yaml).
Zero-trust authorization and delegated identity for AI agents
Usage: nexum [OPTIONS] <COMMAND>
Commands: init Create a new organization: config, trust store, starter policy and org signing key gateway agents grants trust policies approvals audit trace risk discover call Call a gateway's decision API as an agent (signs a fresh proof) eval doctor Check configuration, keys, trust, policy, state and audit integrity console Local web console over this gateway's files (loopback only) help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print help -V, --version Print versionnexum init
Section titled “nexum init”Create a new organization: config, trust store, starter policy and org signing key
Usage: nexum init [OPTIONS] --domain <DOMAIN>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --domain <DOMAIN> This organization's trust domain, e.g. `abc.com` --issuer <ISSUER> Issuer URI for root grants. Default: https://identity.<domain> --dir <DIR> [default: .] --listen <LISTEN> [default: 127.0.0.1:8080] -h, --help Print helpnexum gateway
Section titled “nexum gateway”Usage: nexum gateway [OPTIONS] <COMMAND>
Commands: start Run the enforcement gateway help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum gateway start
Section titled “nexum gateway start”Run the enforcement gateway
Usage: nexum gateway start [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum agents
Section titled “nexum agents”Usage: nexum agents [OPTIONS] <COMMAND>
Commands: register Register an agent. Generates a development key unless --public-key is given list inspect revoke Revoke an agent; every grant naming it stops working immediately help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum agents register
Section titled “nexum agents register”Register an agent. Generates a development key unless --public-key is given
Usage: nexum agents register [OPTIONS] --id <ID> --name <NAME>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --id <ID> SPIFFE ID, e.g. spiffe://xyz.com/agents/procurement --name <NAME> --owner <OWNER> --description <DESCRIPTION> --environment <ENVIRONMENT> --framework <FRAMEWORK> --endpoint <ENDPOINT> --protocol <PROTOCOLS> --capability <CAPABILITIES> --public-key <PUBLIC_KEY> Existing public JWK file (key stays wherever the agent keeps it) -h, --help Print helpnexum agents list
Section titled “nexum agents list”Usage: nexum agents list [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum agents inspect
Section titled “nexum agents inspect”Usage: nexum agents inspect [OPTIONS] <ID>
Arguments: <ID>
Options: --a2a-card Print as an A2A Agent Card -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum agents revoke
Section titled “nexum agents revoke”Revoke an agent; every grant naming it stops working immediately
Usage: nexum agents revoke [OPTIONS] <ID>
Arguments: <ID>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --reason <REASON> -h, --help Print helpnexum grants
Section titled “nexum grants”Usage: nexum grants [OPTIONS] <COMMAND>
Commands: issue Issue a root grant signed by this organization's key delegate Delegate an attenuated child grant from a grant you hold inspect Decode a grant. Shows claims without verifying unless --verify revoke Revoke a grant (and every grant delegated from it) by its id help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum grants issue
Section titled “nexum grants issue”Issue a root grant signed by this organization's key
Usage: nexum grants issue [OPTIONS] --sub <SUB> --holder <HOLDER> --cap <CAPS> --res <RESOURCES> --aud <AUDIENCES>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --sub <SUB> --holder <HOLDER> Holder key: the agent's key file or public JWK file --cap <CAPS> --res <RESOURCES> --aud <AUDIENCES> Audience (receiving gateway / trust domain) --delegatable <DELEGATABLE> --max-depth <MAX_DEPTH> [default: 0] --ttl <TTL> Lifetime in seconds [default: 900] --actor <ACTOR> Human principal this agent acts for --purpose <PURPOSE> --max-value <MAX_VALUE> --signing-key <SIGNING_KEY> Org signing key. Default: .nexum/org.key.json next to the config --out <OUT> -h, --help Print helpnexum grants delegate
Section titled “nexum grants delegate”Delegate an attenuated child grant from a grant you hold
Usage: nexum grants delegate [OPTIONS] --parent <PARENTS> --key <KEY> --sub <SUB> --holder <HOLDER> --cap <CAPS>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --parent <PARENTS> Parent chain, root first (repeat) --key <KEY> The parent holder's private key file --sub <SUB> --holder <HOLDER> --cap <CAPS> --res <RESOURCES> --delegatable <DELEGATABLE> --max-depth <MAX_DEPTH> [default: 0] --ttl <TTL> [default: 300] --max-value <MAX_VALUE> --out <OUT> -h, --help Print helpnexum grants inspect
Section titled “nexum grants inspect”Decode a grant. Shows claims without verifying unless --verify
Usage: nexum grants inspect [OPTIONS] <GRANT>
Arguments: <GRANT> Grant file or compact token
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --verify Verify against this gateway's trust store and revocations -h, --help Print helpnexum grants revoke
Section titled “nexum grants revoke”Revoke a grant (and every grant delegated from it) by its id
Usage: nexum grants revoke [OPTIONS] <JTI>
Arguments: <JTI>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum trust
Section titled “nexum trust”Usage: nexum trust [OPTIONS] <COMMAND>
Commands: list add Trust another organization's root grants revoke Stop accepting anything from a trust domain (takes effect immediately) revoke-key Revoke a signing key: an issuer `kid`, or an agent key's JWK thumbprint. Every grant signed by or bound to it stops working help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum trust list
Section titled “nexum trust list”Usage: nexum trust list [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum trust add
Section titled “nexum trust add”Trust another organization's root grants
Usage: nexum trust add [OPTIONS] --issuer <ISSUER> --key <KEY> <DOMAIN>
Arguments: <DOMAIN>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --issuer <ISSUER> --key <KEY> The organization's public JWK file --allow <ALLOW> --deny <DENY> -h, --help Print helpnexum trust revoke
Section titled “nexum trust revoke”Stop accepting anything from a trust domain (takes effect immediately)
Usage: nexum trust revoke [OPTIONS] <DOMAIN>
Arguments: <DOMAIN>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --reason <REASON> -h, --help Print helpnexum trust revoke-key
Section titled “nexum trust revoke-key”Revoke a signing key: an issuer `kid`, or an agent key's JWK thumbprint. Every grant signed by or bound to it stops working
Usage: nexum trust revoke-key [OPTIONS] <KID>
Arguments: <KID>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --reason <REASON> -h, --help Print helpnexum policies
Section titled “nexum policies”Usage: nexum policies [OPTIONS] <COMMAND>
Commands: validate test Evaluate trust + policy for a hypothetical request simulate Re-evaluate recorded decisions under a proposed policy and report what would change help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum policies validate
Section titled “nexum policies validate”Usage: nexum policies validate [OPTIONS] [FILE]
Arguments: [FILE]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum policies test
Section titled “nexum policies test”Evaluate trust + policy for a hypothetical request
Usage: nexum policies test [OPTIONS] --agent <AGENT> --action <ACTION> --resource <RESOURCE>
Options: --agent <AGENT> Agent SPIFFE ID -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --action <ACTION> --resource <RESOURCE> --value <VALUE> --depth <DEPTH> Simulated delegation depth (0 = root grant holder) [default: 0] --purpose <PURPOSE> -h, --help Print helpnexum policies simulate
Section titled “nexum policies simulate”Re-evaluate recorded decisions under a proposed policy and report what would change
Usage: nexum policies simulate [OPTIONS] <PROPOSED>
Arguments: <PROPOSED> The proposed policy file
Options: --audit <AUDITS> Audit logs to replay (repeat). Default: this gateway's -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --json --fail-on-widen Exit non-zero if any decision would become more permissive -h, --help Print helpnexum approvals
Section titled “nexum approvals”Usage: nexum approvals [OPTIONS] <COMMAND>
Commands: list approve reject help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum approvals list
Section titled “nexum approvals list”Usage: nexum approvals list [OPTIONS]
Options: --all Include decided and expired approvals -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum approvals approve
Section titled “nexum approvals approve”Usage: nexum approvals approve [OPTIONS] --by <BY> <ID>
Arguments: <ID>
Options: --by <BY> [env: USER=sxb834] -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum approvals reject
Section titled “nexum approvals reject”Usage: nexum approvals reject [OPTIONS] --by <BY> <ID>
Arguments: <ID>
Options: --by <BY> [env: USER=sxb834] -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum audit
Section titled “nexum audit”Usage: nexum audit [OPTIONS] <COMMAND>
Commands: tail search verify Verify the tamper-evident hash chain help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum audit tail
Section titled “nexum audit tail”Usage: nexum audit tail [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -n <N> [default: 20] -h, --help Print helpnexum audit search
Section titled “nexum audit search”Usage: nexum audit search [OPTIONS]
Options: --agent <AGENT> -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --action <ACTION> --decision <DECISION> -h, --help Print helpnexum audit verify
Section titled “nexum audit verify”Verify the tamper-evident hash chain
Usage: nexum audit verify [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum trace
Section titled “nexum trace”Usage: nexum trace [OPTIONS] <COMMAND>
Commands: inspect Explain a decision: who acted for whom, through which delegation chain, and which check decided. Accepts a request id, decision id or trace id; a trace id gathers every hop across the given audit logs help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum trace inspect
Section titled “nexum trace inspect”Explain a decision: who acted for whom, through which delegation chain, and which check decided. Accepts a request id, decision id or trace id; a trace id gathers every hop across the given audit logs
Usage: nexum trace inspect [OPTIONS] <ID>
Arguments: <ID>
Options: --audit <AUDITS> Audit logs to search (repeat for several gateways; `.jsonl` or SQLite). Default: this gateway's audit log -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --json -h, --help Print helpnexum risk
Section titled “nexum risk”Usage: nexum risk [OPTIONS] <COMMAND>
Commands: scan Explainable findings from trust, policy, registry and recent audit. Exits non-zero if any HIGH finding exists help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum risk scan
Section titled “nexum risk scan”Explainable findings from trust, policy, registry and recent audit. Exits non-zero if any HIGH finding exists
Usage: nexum risk scan [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --days <DAYS> Audit window, in days [default: 7] --json -h, --help Print helpnexum discover
Section titled “nexum discover”Usage: nexum discover [OPTIONS] <COMMAND>
Commands: a2a Fetch A2A Agent Cards (read-only) and report which agents Nexum manages. A base URL is tried at /.well-known/agent-card.json help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum discover a2a
Section titled “nexum discover a2a”Fetch A2A Agent Cards (read-only) and report which agents Nexum manages. A base URL is tried at /.well-known/agent-card.json
Usage: nexum discover a2a [OPTIONS] <URLS>...
Arguments: <URLS>...
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --json -h, --help Print helpnexum call
Section titled “nexum call”Call a gateway's decision API as an agent (signs a fresh proof)
Usage: nexum call [OPTIONS] --grant <GRANTS> --key <KEY> --action <ACTION> --resource <RESOURCE>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --grant <GRANTS> Grant chain files, root first (repeat) --key <KEY> The leaf holder's private key file --action <ACTION> --resource <RESOURCE> --value <VALUE> --approval <APPROVAL> --gateway <GATEWAY> [default: http://127.0.0.1:8080] --audience <AUDIENCE> Gateway audience. Default: the leaf grant's audience if it has one -h, --help Print helpnexum eval
Section titled “nexum eval”Usage: nexum eval [OPTIONS] <COMMAND>
Commands: run Run security eval suites (and generated attacks) against sandboxed copies of this gateway's trust, policy and adapters. Exits non-zero if any scenario fails help Print this message or the help of the given subcommand(s)
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum eval run
Section titled “nexum eval run”Run security eval suites (and generated attacks) against sandboxed copies of this gateway's trust, policy and adapters. Exits non-zero if any scenario fails
Usage: nexum eval run [OPTIONS] [PATHS]...
Arguments: [PATHS]... Suite files or directories (searched recursively) [default: evals]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --json Machine-readable results for CI --baseline <BASELINE> A previous `--json` result: report scenarios that passed then and fail now (e.g. across Nexum versions or policy changes) -h, --help Print helpnexum doctor
Section titled “nexum doctor”Check configuration, keys, trust, policy, state and audit integrity
Usage: nexum doctor [OPTIONS]
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] -h, --help Print helpnexum console
Section titled “nexum console”Local web console over this gateway's files (loopback only)
Usage: nexum console [OPTIONS] --as <OPERATOR>
Options: -c, --config <CONFIG> Path to the gateway configuration [env: NEXUM_CONFIG=] [default: nexum.yaml] --listen <LISTEN> [default: 127.0.0.1:7070] --as <OPERATOR> Name recorded on approvals and revocations made in the console [env: USER=sxb834] -h, --help Print help