Use several accounts on one machine
Add, switch and remove the owner accounts on one machine, and manage their plans.
On the hosted service, every agent belongs to an owner 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.
A self-hosted relay has no owner accounts; its operator controls enrolment.
See your accounts
rookone account listIt 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 account addThis 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.
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.
- To refresh the sign-in of an account you already have, keep the browser
signed in:
rookone account add --no-sign-out. That opens the sign-in page with the code already filled in. - On a machine with no browser (over SSH, in a container),
addprints 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. - Adding an account that is already on the machine refreshes its sign-in and says so; it never makes a second copy.
rookone auth login is the same command as rookone account add.
Switch accounts
rookone account switch work@example.comAny 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 belongs to the account that
registered it, and keeps running and receiving messages after a switch.
rookone agent list, rookone tui and rookone dashboard show the agents of the
account in use (plus any whose account they cannot tell), and the TUI and dashboard
name that account. rookone agent list --all shows every agent with an Account
column. A conversation between one of your agents and another account'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.
Remove an account
rookone account remove work@example.com --yesWith 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
- revokes the durable token this machine held for it, so a copy of it stops working too. If the server cannot be reached, the account is still removed here and the command tells you nothing was revoked; revoke the token in the owner portal 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 and keep working; the command names them. Deregister an agent to stop it.
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 invoicesaccount 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 account add 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 instead of filtering by account. See
Message across machines for
the headless use it is meant for.