Registered Compute Commands
Commands for registering external hardware with Brev, managing SSH access, and deregistering machines.
For connectivity commands (brev shell and brev port-forward) that also work with registered compute, see Connectivity.
brev register
Register a Linux machine with your Brev organization. This installs the NetBird mesh VPN, profiles the machine’s hardware, and registers it with the Brev API.
Flags
What it does
- Installs the NetBird VPN agent via
https://pkgs.netbird.io/install.sh - Collects a hardware profile — GPUs (NVML), CPU, RAM, storage, OS, interconnects
- Registers the machine with the Brev API
Example
Requires sudo access. Linux only. The NetBird agent is installed as a systemd service.
brev enable-ssh
Enable SSH access on a registered machine for the current user. Prompts for the SSH port to use.
Flags
No flags. Prompts interactively for the SSH port.
Details
- Grants SSH access to yourself (a “reflexive grant”)
- Checks if the SSH daemon (
sshorsshd) is running and warns if it’s not active - Must be run on a registered machine
Example
brev grant-ssh
Grant SSH access to another member of your organization. Presents an interactive selector to choose the user.
Flags
No flags. Interactive user selector. Prompts for SSH port.
Example
Requires SSH to already be enabled on the device (run brev enable-ssh first). This command removes ~/.brev/credentials.json before granting access to prevent the other user from seeing the device owner’s auth tokens.
brev revoke-ssh
Revoke SSH access from a user. Presents an interactive selector showing Brev-managed SSH keys with a key preview and associated user.
Flags
No flags. Interactive key selector.
How it works
Revocation is two-stage:
- Removes the SSH key from the local machine
- Sends an RPC to the Brev server to revoke server-side access
Example
brev deregister
Remove the current machine from Brev. Performs a full cleanup.
Flags
No flags. Prompts for confirmation.
What it does
- Unregisters the machine from the Brev server
- Removes SSH keys
- Uninstalls the NetBird agent
- Deletes
/etc/brev/device_registration.json
Example
Using shell and port-forward with Registered Compute
The brev shell and brev port-forward commands work with registered compute nodes. If a workspace with the given name isn’t found, Brev automatically falls back to looking up registered external nodes.
Port forwarding supports TCP and UDP protocols via the OpenPort RPC.