Skip to main content

Pairing

Pair extension nodes with the relay and manage node credentials.

otto authcode

Generates a pairing authorization code that the extension uses to complete pairing.

Usage

otto authcode [options]

Flags

FlagShorthandRequiredTypeDefaultDescription
--relay-urlNostringFrom configRelay URL to request the authcode from

Examples

# Generate a pairing code
otto authcode

# Generate a pairing code against a specific relay
otto authcode --relay-url http://my-relay:8787

The generated code is entered into the extension's popup or options page to complete pairing. Codes expire after a short window.

Exit codes

CodeMeaning
0Authcode generated and displayed
1Failed to contact relay or relay error

otto pair <code>

Approves a pending pairing request using the code displayed in the extension popup.

Usage

otto pair <code> [options]

Arguments

ArgumentRequiredDescription
<code>YesPairing code shown in the extension popup

Flags

FlagShorthandRequiredTypeDefaultDescription
--relay-urlNostringFrom configRelay URL to approve the pairing on

Examples

# Approve a pairing request
otto pair ABC123

# Approve against a specific relay
otto pair ABC123 --relay-url http://my-relay:8787

Exit codes

CodeMeaning
0Pairing approved
1Code not found, expired, or relay error

otto revoke

Revokes an extension node's pairing, invalidating its tokens and forcing re-pairing.

Usage

otto revoke [options]

Flags

FlagShorthandRequiredTypeDefaultDescription
--node-idNostringSpecific node ID to revoke (omit to revoke all)

Examples

# Revoke all paired nodes
otto revoke

# Revoke a specific node
otto revoke --node-id node_abc123

Exit codes

CodeMeaning
0Node(s) revoked
1Revocation failed or relay error