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

CLI reference

devices

Your devices for end-to-end encrypted session sync: pair this computer so its nexus claude and nexus codex sessions show in Nexus UI, and revoke a device.

View as Markdown

nexus devices list

nexus devices list [--json]

Your devices for encrypted session sync, oldest first: this computer, each one's state and pairing code.

OptionMeaning
--jsonPrint only JSON on stdout

nexus devices pair

nexus devices pair [--name N] [--new] [--no-wait] [--approver-code C] [--json]

Make this computer a trusted device: it shows a code and a QR code, and you approve it from a trusted device (Settings › Devices in Nexus UI or the desktop app). Then confirm the approver's code: sync starts only after that.

OptionMeaning
--name <N>This computer's name in your devices (default: nexus CLI on <hostname>)
--newForget this computer's key and pair a new one
--no-waitShow the code and return without waiting for the approval
--approver-code <C>Confirm the approver without a prompt: the code its own screen shows
--jsonPrint only JSON on stdout
Examples
nexus devices pair

nexus devices revoke

nexus devices revoke <device-id> [--yes]

Revoke a device with this computer's key: it gets no key for anything new. Revoking this computer also deletes its key.

OptionMeaning
--yesRevoke without asking
Examples
nexus devices revoke dev_…

nexus devices org-key

nexus devices org-key [--fingerprint F] [--vault-public-key FILE] [--json]

Your org's recovery key: compare its fingerprint with the one computed from your vault, then confirm it here. Your synced sessions are also locked for it when your org chooses so.

OptionMeaning
--fingerprint <F>Confirm your org's recovery key without a prompt: the fingerprint computed from your vault
--vault-public-key <FILE>Compute a fingerprint offline from your vault's X25519 public-key export, raw 32 bytes or base64url
--jsonPrint only JSON on stdout

nexus devices control

nexus devices control [on|off] [--json]

Phone control for this computer's nexus claude and nexus codex sessions: off until you turn it on. With no setting, says where it stands.

OptionMeaning
--jsonPrint only JSON on stdout

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.