Account Commands
rn account register
Generate an Ed25519 keypair and register the public key with the server.
rn account register
Keys are saved to the paths configured in ~/.rn/config.toml (defaults: ~/.rn/private.key and ~/.rn/public.key). If keys already exist, the existing public key is re-registered.
The server returns your fingerprint — a SHA-256 hash of your public key that uniquely identifies your account.
rn account login
Authenticate with the server using your private key.
rn account login
The login flow:
- Client requests a challenge nonce from the server
- Client signs the message
rockstar.ninja.v1.auth:{nonce}:{fingerprint}with your private key - Server verifies the signature and issues a JWT
The token is cached at ~/.rn/token (mode 0600) and refreshed automatically when it expires. You rarely need to run this manually — the CLI re-authenticates transparently on 401 responses.
rn account whoami
Display your current identity.
rn account whoami
Shows your fingerprint, username (if set), and profile URL.
rn account username set
Claim or change your username.
rn account username set <name>
Rules:
- 3-20 characters
- Lowercase alphanumeric and hyphens only
- Cannot start or end with a hyphen
- Must not be a reserved name
Setting a username gives you a profile page at rockstar.ninja/@name. Your username appears on all sessions and plans you share.
Cooldown: You can only change your username once per year. The server returns a warning with the next available change date.
rn account username release
Release your current username, making it available for others to claim.
rn account username release
rn account destroy
Permanently delete your account and all associated data.
rn account destroy
This deletes everything: your account, all shared sessions (all versions), all shared plans (all versions), your username, and your key registration. You'll be prompted with a confirmation code before deletion proceeds.
This action is irreversible.