Skip to main content

Account Commands

Manage local account identities. Use these commands to create accounts, switch between them, and transfer identities to other machines.

rip account create

Create a new account identity and register with the platform.
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 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 agent 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 (email, paste, etc.). 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