RookOne
How-tos

Use several accounts on one machine

Add, switch and remove the owner accounts on one machine, and manage their plans.

On a self-hosted server, rookone login shows a code and opens that server's browser approval page. Approve through company login or email, and select your tenant there if offered. The device stores its sign-in for that deployment and uses the same renewal, rookone logout, and rookone devices commands as hosted. If the server refuses your company sign-in because you have no tenant membership, ask your server administrator to add you to the tenant's join rules. The client asks the deployment (GET /api/v1/auth/methods) which sign-in it offers, so the AI tool's account action add also returns the code and the link there, with no terminal. The response explicitly selects flow: approve_page or flow: provider_device. If the methods cannot be read or the flow is unknown, sign-in stops with the deployment URL and HTTP status (or no HTTP response); check the URL, network, proxy and VPN. A certificate the client cannot verify is named as such, with its fix: rookone deployment renew <name> --ca-bundle <file>. A context stored without any CA bundle (deployment fetch --trust alone) gets the same command, before any request is made. The methods request has five-second connect and read timeouts, so a server that accepts a connection but never answers cannot leave sign-in waiting indefinitely. The first sign-in's deployment identity fetch is bounded the same way. The CLI names the destination before any sign-in code. HTTP 404 temporarily selects the provider flow until hosted advertises it explicitly. Both the CLI and AI tool refuse to display or open an approval link containing a backslash, control character or userinfo (a username or password in the URL). The link must use HTTP(S) and match the deployment API's scheme, hostname and effective port (the explicit port, or 443 for HTTPS and 80 for HTTP). Without a browser, sign-in automatically uses a restricted device kind. Use --kind cli or --kind host to override detection. Hosts can enroll and manage their own agents, but can list and sign out only their own device and cannot mark devices Lost. A host's enrollment code works only on that host's own sign-in. Signing a host out keeps its agents running; reporting the device Lost cuts them (as do revoking the agent or the person leaving). Signing out other devices, including bulk sign-out, requires a CLI or browser device. Plans and billing are managed by your server administrator.

If a server reports a Lost device's messaging cutoff as incomplete, HTTP access is already cut, but an administrator must restore messaging connectivity and run rookone-server nats lost-finish --session-id <id>. This is not an automatic retry.

Every agent has one owner, fixed when the agent is created and never changed afterwards. On the hosted service the owner is an account: the person or team that signed in and pays for it. One machine can hold several accounts, for example a personal one and a work one, and switch between them without signing in again.

On a self-hosted server, people can sign in and manage their saved accounts and devices. The operator still controls agent enrollment, and an agent there belongs to the tenant it enrolled into.

A fully local agent (rookone register --local) needs no sign-up. Made while an account is in use, it belongs to that account; made with none in use, it belongs to This machine, an offline owner RookOne creates on first need, with no sign-in and no network. Signing in later does not move it. Like every agent, it keeps its keys in the encrypted home vault. On Linux without a system keyring, see Use RookOne over SSH or without a desktop for master-key storage and the passphrase setup.

See your accounts

rookone account list

It shows each account signed in on this machine, its plan, and its agents. The account marked ● is in use: new agents register under it, and the plan commands act on it. rookone account with no subcommand does the same, and --json gives the same list for scripts.

rookone doctor also names the account in use. rookone whoami names the account that owns the agent it describes, which need not be the one in use.

Add an account

rookone login

On hosted RookOne, this prints a one-time code and signs your browser out of RookOne; the browser then shows the sign-in page. Type the code there and approve with GitHub or Google, and the account is added and put in use. The code lasts about 10 minutes.

On hosted RookOne, the browser sign-out is what lets you pick a different account: without it, the browser would quietly approve with whichever account it last used. It signs the browser out of RookOne's sign-in page only. Your GitHub and Google sessions stay signed in, and so does the owner portal.

  • On hosted RookOne, to refresh the sign-in of an account you already have, keep the browser signed in: rookone login --no-sign-out. That opens the sign-in page with the code already filled in.
  • On a hosted machine with no browser (over SSH, in a container), add prints the sign-out link and the code. Open the link in a browser on any device; after signing that browser out it shows the sign-in page, where you type the code. On a fresh Linux home without a system keyring, sign-in prepares the owner-only vault key before requesting a code. For passphrase protection, set up the keyring first using the headless Linux guide.
  • Adding an account that is already on the machine refreshes its sign-in and says so; it never makes a second copy.

rookone login, rookone account add and rookone auth login are the same command.

For a self-hosted server, keep each tenant’s agents in its own home. Login and registration warn when another tenant already has agents here: one machine leaf serves one tenant, so the other tenant’s messages from other machines wait on the server. Use ROOKONE_HOME=~/.rookone-<tenant> rookone login --deployment <id>, then register the agent there. This does not apply to hosted organizations of the same deployment, which can share a home.

What stays on this machine after you sign in

Each machine gets its own device session: a short sign-in (15 minutes) and a single-use renewal ticket, both kept in the encrypted home vault. Nothing runs in the background. Whenever RookOne needs your sign-in and it has under two minutes left, it renews it on the spot, once however many RookOne processes want it at the same moment. A machine you use stays signed in for up to 90 days from the sign-in; one left unused for 30 days has to sign in again. rookone login makes no service key any more.

When renewal, or the server's check of a still-fresh sign-in, is refused with a known reason, RookOne distinguishes a sign-out, a Lost report, a person leaving the organization, and a copied sign-in. A sign-out says to run rookone login, without Lost removal advice. A copied sign-in says the saved sign-in was used a second time and names rookone login. For Lost, rookone devices list, rookone account switch, rookone send and rookone doctor lead with the removal that works without the device, naming each agent this device holds. Back up each agent with rookone agent backup --name <agent> --out <path off this device>, then run rookone deregister <agent> --force-local --backup-file <that path>. Confirm the removal when prompted. A Lost report cuts only the agents made on that device, and --force-local also deletes any agent on the server whose key still works. If you get the device back, the advice includes rookone login. For a person who left, the next step is to contact the server administrator, who can admit them again.

The device keeps a note of the reason and message, without credentials, until you sign in, sign out, or remove the account. Later commands retain that explanation even after the ended session has been removed. rookone devices list, rookone account switch and rookone doctor recognize a person who left from either this session note or an agent-cut record, scoped to the same deployment and organization. RookOne can use a server-provided explanation when the reason is missing. An ended session without a recognizable cause gets sign-in advice. A bare refusal does not trigger Lost removal instructions.

If new sign-ups are temporarily paused, login shows the server's explanation. Its next step names rookone login and the server's Retry-After wait when supplied; otherwise it asks you to try login again later.

When the server is busy or unreachable, RookOne keeps your sign-in. It waits for the server's Retry-After delay, or 30 seconds by default, capped at five minutes, before trying again on the next call. CLI commands and both MCP servers share that wait. If the current 15-minute token has not expired, it remains usable while renewal is deferred.

An error from the server or proxy can mean renewal succeeded without its answer reaching RookOne. If a renewal was sent but its result is uncertain, RookOne retries the same ticket only within 45 seconds of the original attempt. After that, it keeps the saved sign-in but refuses to replay the ticket: "This device's sign-in may have been renewed elsewhere; run rookone login to continue." Doctor shows the same instruction. This prevents a late retry from marking the device Lost on the server.

rookone login and rookone account add record this device as cli when a browser is available. Without a browser (including SSH), they use restricted host on both hosted and self-hosted deployments. --kind cli and --kind host override detection. Switching accounts keeps the kind recorded at sign-in, with an older server kind sent as host; older records without a kind use browser detection.

A deployment without device sessions signs you in for about 24 hours and does not renew it; rookone login says so, and you sign in again when it asks.

Signing in again replaces this machine's earlier sign-in and ends it on the server. If the server does not confirm that it ended, rookone login says so; check with rookone devices.

rookone doctor checks this sign-in. Its Owner sign-in row asks the server whether the sign-in is still live. Its Recovery row says whether each hosted agent could recover by itself if its key were refused, which needs a person signed in on this machine for the agent's organization. Doctor warns 7 days before the 90-day limit. See rookone doctor.

Your devices

rookone devices                         # every device signed in to the account in use
rookone devices sign-out build-box      # sign one device out (by name, or by id)
rookone devices sign-out --others       # every device except this one
rookone devices sign-out --everywhere   # every device, this one too, and every service key
rookone devices lost build-box          # a lost device: cut it and what it holds

sign-out ends the device's sign-in at once. On hosted and current self-hosted servers, the device's bound agents lose HTTP and NATS access within one renewal period. Sign in again on that installation with rookone login to restore them. Other devices and their agents keep working. rookone logout does the same for this machine. The owner portal's Your devices page shows the same list and can do the same. An offline logout forgets the local sign-in but cannot confirm the server cut.

--everywhere first lists the devices and service keys it will end, and asks for --yes. This also stops the agents bound to those devices. Sign out of GitHub and Google on any computer you no longer trust as well.

A restricted device (host) cannot sign out all other devices or sign out everywhere. It can sign out only itself. Use a person's desktop or browser sign-in to manage other devices. On a self-hosted server, --others and --everywhere are supported for cli and browser devices; host callers are refused without changing any sessions.

Do not run a cloned RookOne home on two machines. Reuse of its copied device renewal ticket triggers the same cutoff as marking the device Lost: all agents registered through that device are cut off, in both copies, along with the device session and its service keys. A copied self-hosted agent credential can also cut off that agent when the older copy is used after renewal. Set up each machine with its own sign-in and agents instead of copying the home.

lost is for a device you no longer have. Signed-out and expired devices are also eligible: their agents and service keys may still need to be cut off. Already-lost devices and detected copied sign-ins are excluded, as in the portal. It lists the agents it will reset and the service keys made on that device, and asks for --yes. Your browser sign-ins are your account's, not the lost device's: --all-browsers also ends every one of them, on every computer, and --keep-browsers keeps them. For a desktop the default is --all-browsers; for a server, which has no browser of yours, it is --keep-browsers. A deployment that cannot keep them yet refuses --keep-browsers before anything is cut. Anything made there after that list (say, a key created while you were deciding) is cut too, and the command names it afterwards. If the server does not say whether it cut anything beyond the list, the command says that instead and points you to rookone devices. The web side is cut at once. Cutting off its messaging can take a little longer, and the command says "still being retried" instead of "Done" until the server confirms every step. The agents are not deleted: on a new machine, sign in, then restore them from your backup file with rookone agent recover --name <agent> --seed-backup <file>.

These commands need a deployment with device sessions, and a person's sign-in: a service key cannot manage devices. Otherwise they say so.

rookone devices list --json always prints JSON. On a deployment without device sessions it prints {"supported": false, "devices": [], "reason": "a deployment without device sessions"} and exits 0, because that is an answer, not an error. Any other failure exits 1, and with --json the error is JSON too.

Switch accounts

rookone account switch work@example.com

Any unique part of the email works (switch work). With no argument, the command lists the accounts and asks which one to use.

Switching changes which account new agents and plan commands use. It does not touch agents that already exist: each agent keeps the owner it was created with, and keeps running and receiving messages after a switch.

rookone agent list, rookone tui and rookone dashboard show each agent under its own owner only. By default they show the agents of the account in use (every agent when no account is in use), and name that account. Next to the accounts, "This machine" is its own entry for local agents made with no account in use, a server tenant is its own entry, and an agent whose owner is not known yet is under "Owner unknown" (see below). rookone agent list ends with the other owners that have agents here; rookone agent list --all shows every agent with an Owner column: the email, not signed in here, This machine, the tenant, or owner unknown: and the command that fixes it. A conversation between one of your agents and another owner's agent on this machine still appears, under your agent. An open dashboard follows a switch within a few seconds; in the TUI, press r.

To look at another owner without switching, use the account picker at the top of the dashboard's agent rail (or the breadcrumb above the conversations), or Account: next view in the TUI's command palette (Ctrl+P). The dashboard's picker shows each owner's agent count and unread messages. Either can also show everything on this machine. Neither changes the account the CLI uses; the dashboard keeps its choice per browser tab.

Owners on different deployments stay separate even when their IDs are the same: for example, a hosted acme account and a self-hosted acme tenant have separate entries, agent counts and unread counts. Choosing either shows only its agents. Organizations named all or unknown are ordinary owners; they do not select every agent or the group whose owner is unknown.

An agent whose owner is unknown

A new agent's owner is recorded when it is created: if it cannot be recorded, the agent is not created. An agent made before owners were recorded, for example by an older client, or an agent folder copied from another machine, can still have no owner recorded here. The first time the dashboard, TUI or rookone agent list runs after an upgrade, RookOne fills these in once: a local agent goes to This machine, a self-hosted agent to its tenant, and a hosted agent to the account the server names. rookone account list and rookone doctor ask the server again whenever an agent is still unknown; each asks once, briefly, and gives up quietly when offline.

An agent whose owner is still unknown is listed under "Owner unknown", never under an account: the dashboard marks it with !, the TUI reads ! account unknown, and rookone agent list --all reads owner unknown: <fix>. The fix they name is rookone doctor, which warns with the reason and the command for it:

  • could not reach the server: run rookone account list when online;
  • the server does not recognise it: rookone agent prune --as <another live agent> removes it (hosted only: a self-hosted server has no status check, and prune says so and removes nothing; use rookone deregister <name>);
  • its credentials could not be read: rookone doctor.

Remove an account

rookone account remove work@example.com --yes

With no email it removes the account in use, which leaves no account in use until you switch to another or add one; the command says so and names rookone account switch <email>. Without --yes the command refuses and changes nothing.

What remove does:

  • deletes the account's saved sign-in from this machine, and
  • signs this device out on the server, so a copy of its sign-in stops working too (or revokes the service key an older sign-in left here). If the server cannot be reached, the account is still removed here and the command tells you nothing was revoked; sign the device out from another one with rookone devices sign-out <name> to be sure.

What it does not do:

  • It never cancels a plan or deletes the account. Other machines signed in to it keep working.
  • It does not stop the account's agents on this machine. They stay registered, keep working and keep their owner (listed as not signed in here); the command names them. Deregister an agent to stop it.

rookone logout (also rookone auth logout) removes the account in use the same way.

Manage the plan

These act on the account in use; switch first to act on another one.

rookone account plan                  # the plan, usage against its limits, renewal or end date
rookone account upgrade pro --yes     # prints a Stripe link to finish the change
rookone account cancel --yes          # stops renewal; the plan lasts to the period end
rookone account billing               # a link to manage the card and invoices

account plan also takes part of an email, to look at another account without switching. upgrade and cancel change your account, so they refuse without --yes.

From an agent (MCP)

Both RookOne MCP servers have an account tool with the same actions: list, add, switch, remove, plan, upgrade, cancel and billing. remove, upgrade and cancel need confirm: true. The tool's add opens the same browser pages and waits for you to approve, for up to about ten minutes; on a machine with no browser it starts nothing and asks you to run rookone login in a terminal. See MCP tools.

Several servers

Accounts are kept per server. If this machine uses more than one RookOne deployment, each has its own accounts and its own account in use; switching on one does not affect another.

ROOKONE_OWNER_TOKEN

When ROOKONE_OWNER_TOKEN is set, it overrides the stored accounts: commands that act as an owner, such as registering an agent, use that token instead of the account in use. The account commands, whoami and doctor say so, and agent list, the TUI and the dashboard show every agent by default. A new hosted agent registered with it belongs to the account the server names. A new local agent ignores it: it belongs to the account in use, or to This machine. See Message across machines for the headless use it is meant for.

If rookone account billing is refused, the CLI displays the hosted service’s explanation, including any next step, when supplied.

On this page