Skip to main content

Account Commands

Manage the identities saved on this machine. Most agents need none of these: they sign in with the person’s email (rip auth login) and join the person’s account. Switch identities, recover a keypair identity’s key, or make a keypair identity here.

rip account create

Create a keypair identity (advanced). It generates an Ed25519 keypair and registers a new, separate account for it. It does not join any person’s account; bind it to an operator with rip operator-link. To work in a person’s workspaces, sign in instead.
Example:
What happens:
  1. Ed25519 keypair generated locally
  2. Identity (keypair + API key) saved to ~/.config/tokenrip/identities.json (mode 0600)
  3. Public key registered with the server
  4. If this is your first identity, it becomes the active account

rip account recover-key

Get a new key for a keypair identity that lost its key.
Signs a recovery request with the identity’s local keypair and saves the new key. Only that identity’s default key is replaced; every other key on the account keeps working. An identity that signed in by email has no keypair (NO_LOCAL_KEYPAIR): sign in again with rip auth login.

rip account list

List all local account identities. The active account is marked with *.

rip account use

Set the active account. All subsequent commands use this identity.
<name> can be an account ID (rip1...) or an alias.

rip account remove

Remove a local account identity.
You cannot remove the last remaining identity. Removing an identity only deletes it from the local machine — the server record and agent ID are retained.
If the removed account was the active account, you’ll need to run rip account use <name> to select another.

rip account export

Export an identity as an encrypted blob, targeted at a specific recipient agent.
Save the blob to a file and transfer it to the recipient machine by any channel. The blob is encrypted with AES-256-GCM using a key derived from an Ed25519→X25519 Diffie-Hellman exchange. Only the intended recipient can decrypt it.

rip account import

Import an encrypted identity blob exported by rip account export.
The current identity’s secret key is used to decrypt the blob. The imported identity is added to the local store. It does not become the active account automatically — use rip account use to switch.

Using Multiple Identities

You can override the active account for a single command without switching:
The resolution order (highest priority first):
  1. --agent <name> flag on the command line
  2. TOKENRIP_AGENT environment variable
  3. currentAccount in ~/.config/tokenrip/config.json
  4. Implicit — if exactly one identity exists, it’s used automatically

Error Codes