Skip to main content

Switch between Cloider accounts

One Cloider user can work in several accounts: their own, and every account they have been invited to as a member. In the dashboard you switch between them from the account menu. Every other tool uses an API token, which belongs to a single account, so you keep one token (or CLI profile) per account.

At a glance​

ToolHow you choose the account
DashboardAccount menu, Switch account, then pick on Select an account
CLIOne profile per account: cloider login --profile acme, then cloider profile use acme or --profile acme
TerraformOne provider block per account, told apart by alias
REST APIThe token you send decides the account
MCPOne server entry per account, each running cloider --profile <name> mcp

Which account am I in?​

  • Dashboard: the name and picture in the top right corner are the account's, not yours. In your own account they are your own.
  • CLI: cloider whoami prints the User and the Account separately.
  • API: GET /api/whoami returns user, account and role.

Switch accounts in the dashboard​

  1. Click your account's name or picture in the top right corner.
  2. Click Switch account. The item only appears if you belong to at least one other account.
The account menu in the dashboard top bar open, showing Switch account and Logout
Switch account takes you to the Select an account screen.
  1. The Select an account screen lists your own account (with the Owner chip) and every account you are a member of, each with your role in it.
  2. Click the account to open.
The Select an account screen listing the user's own account with the Owner chip, Acme Inc with the Admin chip and a highlighted pending invitation with the Restricted chip
Select an account lists every account you can open, with your role in each.

Accounts you were invited to but haven't opened yet are highlighted as pending; opening one accepts the invitation. The screen also has a Logout button.

When the dashboard asks you to pick an account​

If you belong to at least one other account, the dashboard shows Select an account after you sign in, instead of opening an account straight away. Pick one to continue. Users who aren't members anywhere else go straight to their own account.

Leave an account​

To stop being a member of an account, switch to it, open Access Control, and choose Leave account in the menu on your own row. See Access control.

Troubleshooting​

SymptomCause and fix
No Switch account in the menuYou aren't a member of any other account, or your memberships are deactivated. Ask the account's Owner or an Admin.
An account you were invited to is missingYou signed in with a different email address than the one invited. Sign in with the invited address, or ask for an invitation to the address you use.
The CLI works in the wrong accountCheck cloider whoami. A CLOIDER_TOKEN in your environment overrides profiles; unset it or use --profile.
This endpoint can't be used with an API token!Switching accounts is a dashboard action. With tokens, use one token per account.

Next steps​

Frequently asked questions

How do I switch accounts in the Cloider dashboard?

Click the account name in the top right corner, click Switch account, and pick the account on the Select an account screen.

Can one API token work in several accounts?

No. A token belongs to the account it was generated in. Use one token, or one CLI profile, per account.

How do I use the Cloider CLI with several accounts?

Log in once per account with cloider login --profile <name>, choosing the account in the browser. Then pick the profile with --profile, the CLOIDER_PROFILE variable or cloider profile use.

Why do I see Select an account every time I sign in?

Because you are a member of at least one other account besides your own, so the dashboard asks which one to open.