Skip to content
NewNexus 2.0 is here, and it’s open source. Read the launch post

CLI reference

keys

Your organization's own provider keys (BYOK): Gateway calls each provider with its key.

View as Markdown

nexus keys add

nexus keys add <provider> <key> [--team <slug|id>] [--user <me|id>]

Bring your own provider key (owners and admins); encrypted at rest. With --team or --user, a team's or a person's key, which their calls use first.

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id
Examples
nexus keys add anthropic sk-ant-…

nexus keys list

nexus keys list

Your provider keys, masked, with the teams' and people's keys you may read.

Examples
nexus keys list --json

nexus keys history

nexus keys history <provider> [--team <slug|id>] [--user <me|id>]

A provider key's versions: who added each, when, and its last four characters.

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id

nexus keys replace

nexus keys replace <provider> <key> [--team <slug|id>] [--user <me|id>] [--dry-run]

Replace a provider key, checked against its provider first (owners and admins).

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id
--dry-runShow what would change, change nothing

nexus keys disable

nexus keys disable <provider> [--team <slug|id>] [--user <me|id>] [--dry-run]

Stop calls from using a provider key; it stays sealed (owners and admins).

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id
--dry-runShow what would change, change nothing

nexus keys enable

nexus keys enable <provider> [--team <slug|id>] [--user <me|id>] [--dry-run]

Use a disabled or rejected provider key again, checked against its provider first (owners and admins).

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id
--dry-runShow what would change, change nothing

nexus keys remove

nexus keys remove <provider> [--team <slug|id>] [--user <me|id>] [--dry-run]

Delete a provider key; its versions stay (owners and admins).

OptionMeaning
--team <slug|id>The team that holds the key: its slug or id
--user <me|id>The person who holds the key: me, or their user id
--dry-runShow what would change, change nothing

nexus keys revoke

nexus keys revoke <scoped key id> [--dry-run]

Revoke a module's scoped key before it expires (owners and admins): its key id (keyId in the JSON of nexus spend, or the audit log), or its smk_… id.

OptionMeaning
--dry-runShow what would change, change nothing

Generated from the CLI's own command list (nexus help --json), version 0.45.0. nexus help and nexus <command> --help always show your installed version.