policy
nexus policy show
nexus policy show [org|team/<slug>|agent/<claude|codex>]nexus policy show team/webnexus policy set
nexus policy set <target> --allow a,b --deny c
nexus policy set <target> --default m
nexus policy set <target> --from rule.yaml | --clear| Option | Meaning |
|---|---|
--allow <a,b> | Allowed model patterns, comma-separated (all clears the list) |
--deny <c> | Denied model patterns, comma-separated (none clears the list) |
--default <m> | The default model |
--from <rule.yaml> | A whole rule from a YAML or JSON file |
--clear | Remove the level's own rule |
nexus policy set org --deny "anthropic/claude-fable-*"nexus policy test
nexus policy test [--model m] [--as who] [--team T] [--agent a]| Option | Meaning |
|---|---|
--model <m> | A model (provider/model, or auto) |
--as <who> | Test as this person (email or user id) |
--team <T> | Test as a member of this team |
--agent <a> | Test for a coding agent (claude or codex) |
| Exit code | Meaning |
|---|---|
| 0 | Allowed |
| 1 | Refused |
nexus policy test --agent claude --model claude-haiku-5-5nexus policy controls
nexus policy controls [--team <slug>]| Option | Meaning |
|---|---|
--team <slug> | Act through this team: a lead may pause or limit it, or a person or key in it or in a team under it |
nexus policy pause
nexus policy pause <org|team/<slug>|person/<id>|key/<id>> --reason r --expires 12h [--team <slug>]| Option | Meaning |
|---|---|
--reason <r> | Why the control is needed; the audit log and the people it applies to can read it |
--expires <12h> | How long the control stays in force: 30d, 12h or a number of days |
--team <slug> | Act through this team: a lead may pause or limit it, or a person or key in it or in a team under it |
nexus policy pause person/usr_123 --reason "runaway spend" --expires 12hnexus policy limit
nexus policy limit <target> --models a,b --reason r --expires 12h [--team <slug>]| Option | Meaning |
|---|---|
--models <a,b> | The models a limit narrows to, or an override allows, comma-separated |
--reason <r> | Why the control is needed; the audit log and the people it applies to can read it |
--expires <12h> | How long the control stays in force: 30d, 12h or a number of days |
--team <slug> | Act through this team: a lead may pause or limit it, or a person or key in it or in a team under it |
nexus policy override
nexus policy override <target> --models a,b --reason r --expires 12h| Option | Meaning |
|---|---|
--models <a,b> | The models a limit narrows to, or an override allows, comma-separated |
--reason <r> | Why the control is needed; the audit log and the people it applies to can read it |
--expires <12h> | How long the control stays in force: 30d, 12h or a number of days |
nexus policy clear
nexus policy clear <control-id> [--team <slug>]| Option | Meaning |
|---|---|
--team <slug> | Act through this team: a lead may pause or limit it, or a person or key in it or in a team under it |
nexus policy connectors
nexus policy connectorsnexus policy connector
nexus policy connector <name> <disabled|available|enabled_for_all> [--teams a,b]| Option | Meaning |
|---|---|
--teams <a,b> | Only these teams' members and the teams under them, comma-separated slugs (default: everyone) |
nexus policy grants
nexus policy grants [list]
nexus policy grants set <product/capability> --connector c --actions a,b
nexus policy grants set robustness/review --for-mode <shadow|comment|comment_and_check>| Option | Meaning |
|---|---|
--connector <c> | The connector the grants are for (github; the default with --for-mode) |
--actions <a,b> | The writes the module holds, in full, comma-separated (empty revokes them all) |
--for-mode <shadow|comment|comment_and_check> | Grant Nexus Review exactly what this mode needs: shadow none, comment pull_review, comment_and_check pull_review,check_run |
nexus policy review-events
nexus policy review-events [show]
nexus policy review-events set <comment|request_changes|full>nexus policy agent-writes
nexus policy agent-writes [show]
nexus policy agent-writes <on|off>