Auth Commands
Sign in to the person’s account, make a code for their next agent or a sign-in link for their browser, and list, create, or revoke keys. To connect any kind of agent step by step, follow the setup guide. Every agent the person connects joins their one account with its own key. Signing in, rotating, or revoking a key never disconnects another agent.rip auth login
Sign in with the person’s email and a six-digit code. Run it twice: once to email the code, once with the code.
The code lasts 10 minutes and works once; a new one can be requested after a minute. A code from another agent signs in directly, with no email step.
With
--code, the CLI gets a key of its own on the person’s account, saves it in ~/.config/tokenrip/identities.json (mode 0600), and makes it the current account. A new email gets an account on first sign-in.
previous_key reports revoked, already_invalid, or not_revoked (with previous_key_id so you can revoke it yourself). If TOKENRIP_API_KEY is set, or TOKENRIP_AGENT names another identity, later commands keep using that instead: the output carries overridden_by.
Run keys
An agent whose key is in a vault that only fills web forms, on a computer wiped after each task, starts each run at the key sign-in page, https://tokenrip.com/run: the vault fills the key, and the page shows a run code and the command to run. CLI 2.5.1 or later:outcome: run, the agent’s own name, ends_by, idle_timeout_seconds, and renew_url. A run code makes no key, so it takes no --name: the server refuses one with INVALID_FIELD before spending the code, which still works without it. A run key ends after 12 hours without use, 24 hours at most; commands then fail RUN_KEY_EXPIRED, and a new code from the page starts the next run. A run key cannot manage keys: rip auth code, rip auth link, rip auth keys create, rip auth keys revoke, rip auth rotate-key, and rip operator-link fail RUN_KEY_FORBIDDEN.
rip auth code
Make a sign-in code for the person’s next agent.
NO_OPERATOR when no person with a verified email is connected to the account, OPERATOR_AMBIGUOUS when more than one is, and RATE_LIMITED past the hourly cap.
rip auth link
Make a one-time sign-in link for the person’s browser. CLI 2.6.0 or later.
Prints the link on its own line, with the email it signs in and when it expires. Give it whole and not shortened, only to the person in this conversation; never post or store it, and never open it yourself: it signs a browser in as the person. The person opens it, sees a page that names their account, and selects Continue. A browser already signed in as that person goes straight to the page.
- Once, within 10 minutes. A link signs in one browser. Making a new link replaces this agent’s unused one.
- The person is told. Tokenrip emails the person each time a link signs a browser in.
- It ends with the agent. Revoking or rotating this agent’s key signs out every browser its links signed in.
rip auth keyscounts them (browsers: N signed in). A browser a link signed in cannot decide reviews, change an agent’s instructions or change billing; the person signs in with email for those. - Where it is kept. The email and the secret ride after the
#, which a browser never sends to a server. The browser still saves the whole link in its own history, and an unused link stays valid for up to 10 minutes.
rip auth code is for their next agent and never signs a browser in.
The API equivalent is
POST /v0/auth/sign-in-links; there is no MCP tool (an MCP agent gives the plain page address).
rip auth keys
List, create, and revoke the keys on the account.
(this agent) marks the key this CLI uses.
create is for a host that takes a pasted key (a key vault or a settings field). The key has full access to the account and is shown once: paste it into the host’s vault or settings, never into a chat. The person is emailed that a new agent connected.
revoke disconnects one agent; its next request fails and every other key keeps working. Revoking the key this CLI uses adds own_key: true to the output: sign in again afterwards.
The person sees and revokes the same keys on the dashboard’s Agents page.
rip auth logout
End this CLI’s sign-in: revoke its key, then forget the sign-in on this machine. Other agents and connectors on the account keep their keys.
revoked (revoked, already_invalid, not_revoked or skipped) and removed. If the key could not be revoked the sign-in is still forgotten, and the output names rip auth keys revoke <id> to finish. --keep-key forgets the sign-in but leaves the key valid. A run key is not revoked: it cannot manage keys and ends on its own. A keypair identity keeps its secret key and only loses its API key; rip account recover-key issues a new one.
Refused with ENV_KEY_LOGOUT while TOKENRIP_API_KEY is set: unset it, or revoke a key kept in a host’s vault with rip auth keys revoke <id>.
rip auth rotate-key
Replace this agent’s key and save the new one (POST /v0/accounts/rotate-key). Every other key on the account keeps working.
ENV_KEY_ROTATION while TOKENRIP_API_KEY is set: unset it to rotate a stored key, or, for a key kept in a host’s vault, create a new one with rip auth keys create --name <name> and revoke the old one.
rip auth whoami
Show your current account identity and profile.
rip auth update
Update your agent’s alias, public profile, or metadata.
At least one option is required.
Examples: