Signing in
Moontors runs each agent through its vendor’s own command-line tool. You sign in to each agent in Moontors, from one sign-in dialog, and can keep several of its accounts, switching between them (see Several accounts). It opens where you need it:
- Create session, for an agent that’s signed out. Once you’re signed in, the session is created.
- Sign in, in a session’s transcript or in the Configuration dialog, when the agent needs signing in.
/logoutin a session, to sign out.- Providers, in Profile, to sign an agent in, switch the account it’s signed in with, or sign it out (see Providers). Add project and a project’s button open it while no agent is signed in or set to check at start.
Installing the agent
Section titled “Installing the agent”Moontors downloads and verifies its own copy of each agent the first time you pick it, in the sign-in dialog or in Create session. It never uses an agent you installed yourself, and never changes yours.
In Create session and on Profile’s Providers tab, each agent says Not installed, Installing… or Couldn’t install until it’s installed, then Signed in, Signed out, Checks at start or, for OpenCode with no sign-in, Free models. The download shows its progress, such as 12 MB of 80 MB, and the sign-in dialog shows it in place of the ways to sign in until it’s done. If it fails, Moontors says why; choose Retry.
Each version of Moontors runs one version of each agent. When an update of Moontors moves to a newer one, Moontors downloads it as soon as it starts, for each agent it had installed, one at a time, and until it’s in the agent says Updating…, never Signed out: your sign-in carries over. If that download fails, Moontors says why, and downloads it the same way the next time the agent starts, you pick it or Moontors starts again; a session whose agent is downloading shows the progress. An agent you’ve never used is still downloaded only when you first pick it. Moontors keeps only the version it runs: an older one goes once the newer one is installed, and any other each time Moontors’ background service starts, so the copies don’t take up your disk.
Ways to sign in
Section titled “Ways to sign in”The sign-in dialog opens on the agent’s mark, Sign in to the agent and Choose how to sign in, then the ways that agent offers, each a card, in the agent’s own order: its own ways first, in the browser, with a device code or with an API key, then the ones through AWS, Google Cloud and Azure under Cloud platforms, then its instructions last, as a link. A way that isn’t for every account says who it’s for in an ⓘ beside its card, and API key’s says where Moontors keeps the key. Choose a card to go on that way: its step takes the dialog’s place, its actions in one row at its foot, with All ways to sign in to go back, which stops a sign-in under way, and Cancel, the × or Escape to close the dialog, which stops it too. If a sign-in stops short, the dialog says why, with Try again.
| Agent | Browser | Device code | API key | AWS | Google Cloud | Azure | Instructions |
|---|---|---|---|---|---|---|---|
| Claude Code | Claude subscription, or Anthropic Console | — | yes | Amazon Bedrock | Vertex AI | Microsoft Foundry | Bedrock, Vertex and Foundry |
| Codex | ChatGPT | ChatGPT | yes | Amazon Bedrock | Vertex AI | — | — |
| Gemini CLI | — | yes | — | Vertex AI | — | — | |
| Grok Build | grok.com | — | yes | — | — | — | — |
| OpenCode | — | OpenCode Console | OpenCode Console | — | — | — | — |
- Browser: choose Sign in in your browser, or with Claude Code, Sign in with Claude subscription or Sign in with Anthropic Console. Your browser opens on the vendor’s sign-in page, and the dialog says “Continue in your browser.” while it waits. Finish there. Where the agent names the page, as Codex does, Open again opens it again and Copy the page’s address copies its address for another browser. With Claude Code, the dialog then adds a box headed “No browser opened? Sign in on this page and paste the code it shows.”, with the page’s address, Copy the page’s address and Open the page: paste the code into Code, and choose Continue. If what you pasted isn’t the code, such as a code cut short or a web address, the dialog says so, and you can paste it again.
- Device code: choose Sign in with a device code. Moontors shows the code, large, with Copy code, and the page’s address under it: choose Open the page, and enter the code there.
- API key: choose API key, paste the key into its field, and choose Save key; Show key shows what you typed. Moontors checks it where the agent can, then keeps it encrypted in its own store (see Where Moontors keeps your sign-ins) and gives it to the agent each time it starts. If the agent refuses the key, the dialog says so and keeps the key you typed, to correct. Claude Code and Codex take it unchecked, and check it at a session’s first turn, and so does OpenCode. Signing in another way keeps the key’s account beside the new one (see Several accounts).
- AWS: choose Sign in with Amazon Bedrock. The dialog says “Looking for credentials on this
computer…” while the agent looks, then lists the AWS credentials your computer already has under
Found on this computer: each AWS profile, then the AWS access keys or Bedrock API key in
your environment. Bedrock API key and AWS access keys follow under Give credentials
here; an ⓘ beside access keys says that a profile is the safer way to give the same keys. Choose one, check its
AWS Region (a profile’s own comes filled in), give its keys where it takes some, and choose
Continue. Providers then shows the sign-in as Amazon Bedrock. Moontors hasn’t tried either
agent’s against a real AWS account: no recording of one exists yet.
- Codex finds the credentials itself, and the region list offers the regions it runs Bedrock
in. It also asks which Bedrock endpoint to run on: Bedrock Mantle, Codex’s default, or
Bedrock Runtime, which runs in any region where your account has Bedrock models, so you can
type a region the list doesn’t offer; an ⓘ beside each says which. Where Codex refuses an
answer, the dialog says why in Codex’s words and you can change it. In
AWS GovCloud (
us-gov-east-1,us-gov-west-1), once you’re signed in, the dialog shows Codex’s guidance for GovCloud where Codex’s check asks for it, with a link to it, and Acknowledge in Done’s place, from Create session too, until you choose it. A Codex conversation goes on only through the sign-in it began on: one begun with ChatGPT or an API key continues once you sign in one of those ways again, and one begun on Bedrock once you’re back on Bedrock. Until then the session says so. - Claude Code keeps no Bedrock sign-in of its own, so Moontors finds the profiles in your AWS
config and credentials files, by their names and regions alone, never their keys, and keeps your
choice encrypted in its own store, as it keeps an API key, giving it to Claude Code each time it
starts. Claude Code takes it unchecked, and checks it at a session’s first turn. Claude Code runs
on Bedrock in Moontors through this sign-in alone: a
CLAUDE_CODE_USE_BEDROCKyour shell or a project’s settings set isn’t used, as their sign-in tokens aren’t. The profile and region you chose win over a project’s own, but a project’s own AWS keys still win over the ones you give here (see Known limits).
- Codex finds the credentials itself, and the region list offers the regions it runs Bedrock
in. It also asks which Bedrock endpoint to run on: Bedrock Mantle, Codex’s default, or
Bedrock Runtime, which runs in any region where your account has Bedrock models, so you can
type a region the list doesn’t offer; an ⓘ beside each says which. Where Codex refuses an
answer, the dialog says why in Codex’s words and you can change it. In
AWS GovCloud (
- Google Cloud: choose Sign in with Vertex AI. The dialog lists the Google Cloud credentials
your computer already has under Found on this computer: Your gcloud sign-in on this
computer, found by its file alone, which Moontors never opens, and The credential file your
environment names (
GOOGLE_APPLICATION_CREDENTIALS). A credential file follows under Give credentials here, to choose there, and with Gemini CLI, A Google Cloud API key, for Vertex AI’s express mode. Choose one, check the Project ID (the project your environment or gcloud’s active configuration names comes filled in), give a Location, or with an API key the key alone, and choose Continue. Providers then shows the sign-in as Vertex AI. With your gcloud sign-in, the agent is told where gcloud keeps it, as the agents look only in gcloud’s usual folder in your home. Moontors keeps Claude Code’s and Gemini CLI’s answer encrypted in its own store, as it keeps an API key, and gives it to the agent each time it starts; Codex keeps its own. Moontors hasn’t tried any agent’s against a real Google Cloud project: no recording of one exists yet.- Claude Code keeps no Vertex sign-in of its own either. It takes the answer unchecked, and
checks it at a session’s first turn. The location list offers the ones Claude Code’s own guide
names; fast mode needs global, us or eu. Claude Code runs on Vertex in Moontors through this sign-in alone: a
CLAUDE_CODE_USE_VERTEXyour shell or a project’s settings set isn’t used. The project and credential file you chose win over a project’s own (see Known limits). - Gemini CLI checks the answer as you give it: where it refuses one, the dialog says why in
Gemini CLI’s words and you can change it. With an API key, a project and location your shell or
a project’s
.envfile sets aren’t used; with any other way, a Google Cloud API key they set isn’t. - Codex checks the answer as you give it, getting an access token through gcloud with it, so
gcloud must be installed, with a credential file too: where Codex refuses one, the dialog says
why in Codex’s words and you can change it. It takes no API key. The location list offers
global, Codex’s own; you can type another. Codex keeps the sign-in in Moontors’ own folder for it, as it keeps an AWS one.
- Claude Code keeps no Vertex sign-in of its own either. It takes the answer unchecked, and
checks it at a session’s first turn. The location list offers the ones Claude Code’s own guide
names; fast mode needs global, us or eu. Claude Code runs on Vertex in Moontors through this sign-in alone: a
- Azure: Claude Code alone. Choose Sign in with Microsoft Foundry. The dialog lists the Azure
credentials your computer already has under Found on this computer: Your Azure CLI sign-in
on this computer, found by its profile alone, which Moontors never opens, and The Foundry API
key your environment sets (
ANTHROPIC_FOUNDRY_API_KEY). A Foundry API key and An Azure bearer token follow under Give credentials here; a token is short-lived, so sign in again once it expires. Give the Resource name or endpoint URL, a resource’s bare name or its endpoint’shttps://address, and a key or a token where the way you chose takes one. Under Deployments, folded away on a first sign-in, is the deployment each model family Claude Code lists runs on, such as Opus, Sonnet, Haiku and Fable: each comes filled in with the model Claude Code names it by, and one you leave as that keeps Claude Code’s own model, as its ⓘ says. Choose Continue. Claude Code takes the answer unchecked, so a wrong resource or deployment fails at a session’s first turn. With your Azure CLI sign-in, Claude Code uses it over any service principal or managed identity your shell or a project’s settings set up. Providers then shows the sign-in as Microsoft Foundry, and a session’s model list offers Change deployments…, which opens this dialog again with the resource and the deployments you gave last, Deployments open, so you change only the one you mean to; a key or token you give again. Moontors keeps your answer encrypted in its own store, as it keeps an API key, and gives it to Claude Code each time it starts. Claude Code runs on Foundry in Moontors through this sign-in alone: aCLAUDE_CODE_USE_FOUNDRYyour shell or a project’s settings set isn’t used. The resource and the deployments you chose win over a project’s own (see Known limits). Moontors hasn’t tried it against a real Azure resource: no recording of one exists yet. - Instructions: How to sign in opens the vendor’s own instructions.
Once you’re signed in, the dialog says Signed in to the agent, with a check, and the account it’s signed in as: its email or account where the agent says it, filled in as it’s read, and the way it signed in. Done closes it. From Create session, the session is created at once instead.
Moontors never keeps your browser or device-code sign-in, or Codex’s AWS or Google Cloud one. A code you paste, and the keys you give Codex for AWS, go to the agent alone: Moontors passes them on without keeping them, logging them or showing them again. Codex keeps an AWS or Google Cloud sign-in in Moontors’ own folder for it, as it keeps a ChatGPT one; Claude Code’s AWS, Google Cloud and Azure sign-ins, and Gemini CLI’s Google Cloud one, are kept encrypted in Moontors’ own store, as an API key is. The agent keeps the sign-in itself, in Moontors’ own folder for that agent, or in the system keychain where the agent keeps its sign-in there (Claude Code on macOS). Gemini CLI keeps a folder of its own for each sign-in, and an old one goes once no session uses it. Signing in here doesn’t change the agent you use outside Moontors.
Nor does a sign-in of your own reach Moontors’ agent. A key or token your shell sets for Codex
(CODEX_API_KEY, CODEX_ACCESS_TOKEN, or an OpenAI workload identity) isn’t passed on, and neither
is one it sets for Grok Build (XAI_API_KEY, GROK_AUTH, or your organization’s own sign-in:
GROK_OIDC_*, GROK_OAUTH2_* or GROK_AUTH_PROVIDER_COMMAND), nor a Grok Build switch that would
turn Moontors’ sign-in away (GROK_DISABLE_API_KEY_AUTH, GROK_FORCE_LOGIN_TEAM_ID), nor the key
it sets for OpenCode’s Console and Go (OPENCODE_API_KEY).
A project’s own Claude Code settings never stand in for your sign-in: Moontors keeps out the sign-in
tokens, keys and key helper they set, and Claude Code itself ignores a claude.ai sign-in token they
set (CLAUDE_CODE_OAUTH_TOKEN). Where a project’s own keys still win, with an API key or a cloud
sign-in, is in Known limits. Where Claude Code still has both an auth token
and an API key, as your organization’s own settings can give it, a session says so once as it
starts, naming where each comes from, as Claude Code’s own terminal warns; remove one of them to
be sure which one it signs in with.
With a claude.ai organization that offers Life Sciences use cases, Claude Code in Moontors uses the
one you chose with /use-case in Claude Code’s own terminal for the same account, from each
session’s next start. /use-case itself runs only there, as Claude Code asks it in its own screen.
/status in a session shows the account it uses, and its plan where the agent reports one (see
Insight and code workflows). Providers also shows
the way each agent signed in, and its email and organization.
Gemini CLI
Section titled “Gemini CLI”- Sign in in your browser, with Google, is for organizations with a Gemini Code Assist
subscription, which set
GOOGLE_CLOUD_PROJECTin their shell profile, as an ⓘ beside it says. Personal accounts, Google AI Pro and Ultra included, sign in with an API key from Google AI Studio, or with Google Cloud through Vertex AI. - Gemini CLI opens your browser to sign in with Google. If your shell’s environment tells it not to
(
CI,DEBIAN_FRONTEND=noninteractive,BROWSER=www-browser, orSSH_CONNECTIONon a Mac or Windows), or on Linux with no display, the dialog says which. Remove it from your shell profile, or sign in with an API key. - Gemini CLI in Moontors signs in only the way you choose here, never with an API key your own
Gemini CLI saved, nor with an access token your shell sets for it (
GOOGLE_CLOUD_ACCESS_TOKEN). - With an API key, a Google Cloud sign-in, or a Google sign-in made in Moontors, Gemini CLI shows as Signed in. Otherwise it can’t tell whether it’s signed in until a session starts, so it shows as Checks at start.
Grok Build
Section titled “Grok Build”- With your grok.com account, choose Sign in in your browser. Grok Build opens grok.com in your browser itself. Once you’ve signed in there, the dialog says you’re signed in, as every way of signing in does, and Done closes it.
- With an xAI API key, paste it into API key. Grok Build offers its key sign-in only for a key xAI takes, and says nothing of one it refuses, such as a key whose team has no credits left, a blocked team or a mistyped key. So for one xAI refuses, the dialog says “The API key was refused.”: check the key and its team’s credits in xAI’s console.
- With an API key, or a grok.com sign-in made in Moontors, Grok Build shows as Signed in. Otherwise it shows as Checks at start until a session starts.
OpenCode
Section titled “OpenCode”- With no sign-in, OpenCode runs on its own free models, and shows as Free models. A new session’s model menu lists them before you send anything, each marked Free. Each is free for a limited time and with a daily limit of requests, which all your OpenCode sessions share. What happens to what’s sent to one, your code included, depends on the model: by OpenCode’s own terms, several may use it to improve or train the model while they’re free, Big Pickle, the one a new session starts on, among them, and some keep it for a time, while others follow a zero-retention policy. OpenCode’s model list says which is which.
- The first time Moontors opens, it opens on a welcome session, titled “Welcome to Moontors: I’m a
free session, try me”, its composer ready for your first message: OpenCode on these free models,
on its own default model, in Manual. Its transcript opens on “This session runs on OpenCode’s
free models, with no sign-in. While a model is free, its maker may use what you send to improve
it.”, with Sign in to OpenCode beside it on your computer. Under it are three prompts to try,
on your computer and your phone: Make a web page, Find an idea and What can you do?,
each its words in its tooltip. One pressed goes as your first message, as if you’d typed it,
leaving what you’ve typed in the composer as it is, and they’re gone once a message is sent, theirs
or your own. Above them, “Try one of these, or write your own below.” also says that the agent
asks before each edit and command, while the session is in Manual. If OpenCode isn’t
installed yet, Moontors installs it as the session opens, and the session shows the download as
any session does. It works in a folder of Moontors’ own,
welcomein Moontors’ home (~/.moontors/welcome), which Moontors trusts for you and keeps out of the project bar: Add project adds it like any folder. It comes once: archive or delete it and it never comes back, and an update never brings it. Moontors first checks that OpenCode’s free model answers from your network, as OpenCode limits its free models for a whole network’s address: where it doesn’t, as on an office’s, a school’s or a VPN’s address that has reached the limit, or offline, Moontors makes no welcome session and opens as it does with none, and doesn’t try again at a later launch. The check takes a few seconds at most; if you open a page or a dialog, or bring up a session or a project meanwhile, the welcome session waits on the board instead of taking you away from it. - With your OpenCode Console account, choose Sign in to OpenCode Console with a device code: OpenCode’s own sign-in, in Moontors’ folder for it. It runs the OpenCode Console’s models on your workspace’s credits, with the workspace’s settings and policies, and Providers names the workspace.
- OpenCode Go’s models come with an API key: paste your OpenCode Console key into OpenCode Console API key. The key runs the Console’s models too, so the model menu lists both, each Go model with · Go after its name, such as Kimi K3 · Go, and its price as your plan’s allowance (see The model picker). OpenCode takes the key unchecked, so a key it refuses fails at a session’s first turn.
- A provider you set up in your own OpenCode config runs in Moontors too, as Moontors reads your
config, and so does one whose key your shell sets, such as
ANTHROPIC_API_KEY, but OpenCode’s own: the Console’s and Go’s key (OPENCODE_API_KEY) reaches them only as you sign in with it in Moontors, so a Console account’s turn never runs on your shell’s key. A sign-in you made withopencode auth loginin your own OpenCode, this version’s or 1.x’s, doesn’t come with it: Moontors’ OpenCode keeps sign-ins of its own, and its database takes in none of yours as it’s made. - With an API key, or an OpenCode Console sign-in made in Moontors, OpenCode shows as Signed in.
- Sign out of OpenCode signs Moontors’ OpenCode out of the Console, or forgets the key, and its sessions go back to the free models. Your own OpenCode stays signed in.
Providers
Section titled “Providers”The Profile button, the person icon at the right end of the top bar, shows Profile over the board and the panel, open on its Providers tab: one place for every agent’s sign-in. Its other tabs, Account and Subscription, are your Moontors account’s page and Pro’s (see Your Moontors account). Beside the icon, the button shows a ring for each usage limit at 75% or more (see The header). A sign-in or a sign-out shows there as it’s made, from this window or another, and on the phone. Its tabs stand down its left side, or in a row over the agents where the page is narrow, and move as Settings’ do (see Settings); the agents scroll beside them, under Profile’s title, and the title and the tabs stay in place. At the title’s right are the version of Moontors you’re running, as in Settings, and an ×; it, the button again, or Escape goes back to the board.
Each agent has a card with its logo, its name and where it stands: Signed in, Signed out, or Checks at start for an agent that can’t tell until a session starts, or Free models for OpenCode with no sign-in, which runs its own, after a dot, green signed in, grey checking at start or on free models, blue and glowing while it installs, red where its install failed, and hollow signed out or not installed. After the name, in small grey text, is the version of the agent Moontors runs, such as 2.1.318, once Moontors has installed it. An agent Moontors hasn’t installed yet shows Not installed, and its Sign in installs it first. One Moontors is updating shows Updating… and the download’s progress, then its new version once it’s in; one whose download failed shows Couldn’t install, why, and Retry. The agents signed in come first, then any that checks at start or runs its free models, then the rest, each in your order from Settings. Their cards stand in even columns, as many as the window has room for, so a narrow window shows one a line, and each card is as tall as what it shows, with no gap under a short one. A long email or organization wraps inside its card. At the card’s top right, a cog, Configure, opens the agent’s own setup, with no session: its MCP servers, skills, plugins, hooks and the rest, to switch on and off for all its sessions (see From Profile).
An agent that’s signed in shows:
- Signed in with: the way it signed in, by its product’s name where it has one, such as Claude subscription or Amazon Bedrock, else by its kind, such as Browser or API key.
- Account: the account’s kind and plan, where the agent says them.
- Email and Organization, where the agent says them.
- Sign-in ends, with a Claude subscription: the days its sign-in can end on, as Claude Code gives them. Using it doesn’t move them. From a week before the first, it asks you to sign in again before then; from the first, it says the sign-in can end any day; after the last, that it may have ended. Sign in to the same account again from Switch account (see Several accounts). A key or a cloud sign-in you gave in Moontors shows none, as sessions use that.
- Usage limits, as Status shows them (see Context, usage and limits): each limit’s bar of how much is used, and when it resets, with a Claude subscription, a ChatGPT sign-in for Codex, a paid grok.com plan for Grok Build, or the OpenCode Console’s sign-in, whose spend budgets show too, each its dollars spent of its limit. An API key or an AWS, Google Cloud or Azure sign-in has none to show, even where the agent’s own sign-in is saved beside it, as sessions use the key. Gemini CLI shows none, and nor does grok.com’s Free plan (see Known limits).
- Switch account, a menu of the agent’s other accounts and a sign-in to another, or, where it has no other, that sign-in at once (see Several accounts).
- Sign out of the agent, such as Sign out of Codex, as in the sign-in dialog (see Signing out): it names the sessions it would stop first, and the account your sessions move to, or that the agent is signed out, and Sign out or Stay signed in answers.
Any other agent shows Sign in, which opens the sign-in dialog, and where it still has saved accounts, as a sign-out leaves them when none of the others is still signed in, Switch account beside it (see Several accounts).
Where Codex reaches its models through a gateway that needs a sign-in of its own (see When a sign-in is needed), its card also shows Model gateway and the gateway’s name, signed in to Codex or not, and where its sign-in stands: Needs a sign-in, Signing in…, Signed in or Sign-in failed, with Codex’s own words for why it failed. While it needs a sign-in or failed, its Sign in opens the sign-in dialog at the gateway’s step, and while a sign-in to it is under way, Cancel ends it. Signing in to the gateway leaves Codex’s own account as it was.
Where ChatGPT has a reminder about your account’s security for Codex’s ChatGPT sign-in, such as setting up a second step to how you sign in, Codex’s card shows it in ChatGPT’s own words, with its button, which opens the page on chatgpt.com in your browser. It goes once ChatGPT no longer gives it.
What each agent says of its account:
- Claude Code: with a Claude subscription, the plan, email and organization, and when the sign-in ends; with the Anthropic Console, that it’s a key, and the email and organization; with an API key, only that it’s a key; through Bedrock, Foundry or Vertex, “Other sign-in”.
- Codex: with ChatGPT, the plan by the name Codex’s own
/statusgives it (Plus, Pro 200, Business, Enterprise, Edu, Academic Researchers and the rest), the email, and the ChatGPT workspace as the organization where Codex names one; with an API key, only that it’s a key, and no usage limits; through Bedrock or Vertex AI, “Other sign-in”. - Gemini CLI: with Google, “Other sign-in” and the email; with an API key, only that it’s a key; through Vertex AI, “Other sign-in”. It never says a tier or usage limits.
- Grok Build: with grok.com, a subscription with the plan grok.com names, such as Free or
SuperGrok, once Grok Build has fetched it, and the email, and on a paid plan its usage limit: the
share of the plan’s credits used this week, or this month, as Grok Build’s own
/usagereads it; with an API key, only that it’s a key. It names no organization. - OpenCode: with the OpenCode Console, “Other sign-in”, with OpenCode Go as its plan where the workspace subscribes to Go, and the Console’s workspace as the organization, such as Personal; on Go, its usage limits, the 5h window, Weekly and Monthly, as OpenCode counts them; and each spend budget the workspace sets for you, as a bar of its dollars spent of its limit, named by what it counts, such as All spend, Anthropic models or Each model, with when it resets and, under it, who shares it: everyone in the workspace, or your group. With an API key, only that it’s a key.
Several accounts
Section titled “Several accounts”Moontors keeps every account you sign an agent in to, and all of the agent’s sessions run on one of them, the one in use. Switch account opens a menu of the agent’s other accounts, each named as the agent names it: its email or organization, an API key by its last four characters, AWS access keys by their key ID’s, or a cloud sign-in by its profile, project, key file or resource, with its plan as it was last seen. Two credentials are never one account, so two cloud sign-ins that share a region or a project are two rows. Moontors checks each one’s sign-in as the menu opens, and one that no longer holds says Sign in again. Under them:
- Sign in to another account… opens the sign-in dialog to add one, and once you’re signed in, Moontors switches to it, as picking it would. Signing in to an account Moontors already has, in use or not, renews it and makes it the one in use, and it’s never listed twice. If the switch is refused, you’re still signed in, and the dialog says why.
- Remove an account lists the others. Picking one asks first, naming it and the account your sessions stay on: Remove signs it out and forgets it, and Keep it leaves it. The account in use goes only by a sign-out.
With no other account, there’s nothing to pick, so Switch account opens no menu: it opens the sign-in dialog to add one at once, as Sign in to another account… does.
Picking an account switches to it. Moontors checks its sign-in first, so a switch never lands on one that has expired: one that no longer holds opens its sign-in instead, at its own way in, and once you’ve signed in again, the switch goes on. Where the agent’s own read of a sign-in can’t tell whether its vendor still takes it, as with a Claude Code claude.ai sign-in signed out elsewhere or a Grok Build API key, Moontors asks the vendor too, with no prompt sent, while the menu says it’s switching. A cloud sign-in is read by what your computer keeps of its end, with nothing sent: an AWS profile’s SSO login, a Microsoft Foundry bearer token, or the Azure CLI signed out. A vendor that doesn’t answer within ten seconds, as when you’re offline, doesn’t hold the switch: it goes on. Picking a Sign in again account opens its sign-in at once. A session whose requests the vendor refuses marks the account it ran on Sign in again, and it stays so until you sign in to it again (see Known limits). Signing in from Sign in or the sign-in dialog makes that account the one in use too, whether it’s new or one Moontors has. Usage limits show for the account in use alone.
A switch starts each of the agent’s sessions again on the account and goes on with its conversation, so the account’s own connectors, MCP servers, models and limits come with it, as soon as the session is at rest. That’s the same for a sign-in again to the account in use: every new sign-in lands in a folder of its own, so a session never takes it in the middle of a turn. A session at rest starts again at once. One in the middle of a turn finishes the turn first. Background tasks the agent still runs, such as a wait for CI, hold the switch too, as starting the agent again would end them, and the session switches as soon as the last one ends, with no prompt needed. All the while, its header, on the phone too, and Configuration say which account it switches to and what it waits for: the turn under way, its background tasks, by their count, or other work the agent still runs. Switching back to the account the session still runs on, before it has switched, calls the switch off: the line goes, and the session goes on as it was, its background tasks still running. Switching to a third account instead switches to that one, still waiting the same way. Codex’s memories are each account’s own, but the accounts signed in with an API key share one, so a session switched to another Codex account reads and makes that account’s, and a sign-in again to an account keeps its memories.
A switch shows at once: Providers shows the new account as the one in use, and each session says it’s switching, on the phone too, and moves to it as it comes to rest. OpenCode runs all of its accounts from one place of its own, so OpenCode itself takes the new account once every turn of it under way, in any session, has ended, as a turn’s next request would otherwise take it in the middle of that turn: a turn that starts meanwhile starts on the account before.
While background tasks hold the switch, Switch now beside that line asks first, naming the tasks it stops: Keep waiting, or Stop and switch, which stops them and switches. A task that ends by itself meanwhile counts as stopped. It never cuts a turn: during one, it stops the tasks once the turn ends. A prompt you send while the switch waits runs on the old account, and the transcript says once that the change waits for the background work.
A Codex session begun on Amazon Bedrock and one begun on ChatGPT or a key don’t carry a conversation across: Moontors goes on with one only through the sign-in it began on, and the session says so until it’s back on that one. The plan Status shows for a session follows from its agent’s next start.
The phone switches between an agent’s accounts too, but signs none in and removes none (see The phone). What each agent can’t do with several accounts is in Known limits.
Where Moontors keeps your sign-ins
Section titled “Where Moontors keeps your sign-ins”Moontors keeps what you give it in its own store on this computer: an agent’s API key, or its AWS, Google Cloud or Azure sign-in; the values of an MCP server you add; your Moontors account’s sign-in; and the secret each paired phone’s notifications are locked with. Each is encrypted (AES-256-GCM) with a key Moontors makes the first time it keeps one, and that key alone is in your system’s keychain: the macOS keychain, Windows Credential Manager, or on Linux the Secret Service, such as GNOME Keyring or KWallet. None of them is in Moontors’ log, or sent to your phone, and none is in a file as you gave it but one: an OpenCode API key is also put in OpenCode’s own database, which only you can read, as OpenCode runs on a key it keeps over one it’s given (see OpenCode). An agent’s own sign-in stays where that agent keeps it: in Moontors’ own folder for the agent, or in the macOS keychain for Claude Code.
If that key is gone from the keychain, Moontors can’t open what it kept, and says so rather than dropping it quietly: Providers says the agent’s sign-in couldn’t be opened, so sign in again; your Moontors account is signed out, saying why; an MCP server’s Edit says to type its values again; and a paired phone’s notifications start again the next time it connects. The next thing you keep makes a new key, and what the old one locked is removed. Where Moontors can’t reach the keychain at all, it holds no sign-in of its own there (see Known limits).
An earlier Moontors kept each of these in the keychain itself. The first time this one starts, it moves each into its store, checks it reads back, then removes it from the keychain; one it can’t move stays where it was, and it tries again the next time it starts. Remove Moontors’ Data… removes the key from the keychain too (see Menus and your data).
When a sign-in is needed
Section titled “When a sign-in is needed”If an agent says it needs signing in during a session, the transcript offers Sign in. After you sign in, the next prompt continues with the new sign-in.
With Codex, a model provider in your own Codex config (~/.codex/config.toml) can go through a
gateway that needs a sign-in of its own, beside Codex’s (its gateway_oauth). Until you’ve signed
in to it, a turn that fails says Codex reaches its models through the gateway, by the name Codex
gives the provider, and needs you to sign in before it can go on, with Sign in. Each turn checks
the gateway again, so once you’ve signed in, the next prompt goes through.
The gateway’s sign-in is a step of the sign-in dialog, which that Sign in opens, as does the gateway’s on Providers. It’s also the step after Codex’s own sign-in, when the gateway still needs one: the dialog says Codex reaches its models through the gateway, which needs a sign-in of its own, and Sign in to the gateway continues in your browser, as a browser sign-in does, with its page to open again. Where your gateway’s administrator has set it up for codes too (Codex 0.169 or later), Sign in with a device code shows under that: it gives a code to enter on the gateway’s page, with Copy code and Open the page, as a device code sign-in does, and waits until you’ve entered it, handy where this computer’s browser can’t reach the gateway’s sign-in. Once it’s done, the dialog says you’re signed in to the gateway. If it fails, it says why in Codex’s words, with Try again, which tries the same way again, and Cancel ends it.
Signing out
Section titled “Signing out”Sign out from the sign-in dialog, which /logout opens, or from Providers. While an agent shows
as Signed in, the dialog shows its account first, as Providers does, with Sign out of
the agent, such as Sign out of Codex, then the ways to sign in under Sign
in another way. For
Gemini CLI, that’s with an API key, a Google Cloud sign-in, or a Google sign-in made in Moontors;
for Grok Build, with an API key or a grok.com sign-in made in Moontors; for OpenCode, with an API key
or an OpenCode Console sign-in made in Moontors.
Moontors then lists the agent’s sessions that are working now, with any background tasks they have, since signing out stops them. Signing out signs out the account in use. Moontors then checks your other accounts, the one used last first, and the first still signed in becomes the one in use, your sessions moving to it, so none ever moves to one that has expired (a Claude Code claude.ai sign-in signed out elsewhere reads as signed in until a session’s next request is refused, see Known limits); the question names it. With none still signed in, it says the agent is signed out, and the rest show Sign in again. Choose Sign out, or Stay signed in to keep it. Your sessions stay; with the agent signed out, the next prompt asks you to sign in again. For an API key, signing out forgets the stored key. Signing out here doesn’t sign out the agent you use outside Moontors.