> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Switch accounts in the mux

> See every saved account by provider, make one active, and sign in again, from the Connections view of the mux.

The Connections view lists the accounts F\[no] knows on this machine, one card per provider. From it you can make an account active, sign in to a Claude account again, add an account, and remove one. Each account row shows its usage for each window, with the time to the next reset.

If one Claude account nears its limit, use this view to put new work on another one. The same switch runs from the CLI with `fno config accounts use`. [Switch from the CLI](#switch-from-the-cli) shows that form.

## Terms

* **Mux:** the F\[no] terminal workspace that holds your agent panes.
* **Provider:** the service that supplies models, such as Anthropic, OpenAI, or a local model server.
* **Account:** one saved credential that F\[no] can run a harness with. Each has an id, such as `makers`.
* **Harness:** the agent program an account runs, such as `claude` or `codex`.
* **Managed account:** an account whose saved login F\[no] keeps and can put in the harness's one shared login. Every `claude` session on a Mac uses one shared login, and every `codex` session uses one too.
* **Active:** the account that `fno config accounts use` last set. The view marks it `[ACTIVE]`.

## Before you begin

* Install F\[no] through the [quickstart](/docs/quickstart.md).
* Open the mux. To check that one runs, run `fno mux ls`.
* To switch, you need at least two saved accounts. To add one in the view, see [Add or remove an account](#add-or-remove-an-account).

## Open the Connections view

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Guide me to the Connections view in my mux and explain its tabs.
```

### What the agent runs

Press `Ctrl-b`, then `A` (a capital A). You can also open the sideline menu and pick **connections (accounts, usage)**.

The view opens on the Accounts tab. `Tab` moves to the Order tab, which orders account combos. `Esc` closes the view. `R` reads the accounts and usage again.

![The Connections view. The Anthropic card lists a System default row and two subscription logins, each with its plan and masked email. One is marked ACTIVE. Each has 5h and weekly usage bars. The OpenAI card lists one codex login, and the zai card lists one API key with a 5h bar. The other providers show no saved account.](https://mintcdn.com/fno/bO2Rpj_eF9BbV5YN/images/switch-accounts-light.png?fit=max\&auto=format\&n=bO2Rpj_eF9BbV5YN\&q=85\&s=abeb28988a9f3d8675b319faca029c97)

## Read the cards

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Explain the accounts, usage bars, and missing-reading reasons in my Connections view.
```

### What the agent runs

The view shows one card for each of these providers, in this order: Anthropic, OpenAI, zai, Amazon Bedrock, DeepSeek, OpenCode and Llama. A provider that an account names and that is not in this list gets its own card after them.

An account goes on a card by the provider it bills. A route, a Bedrock key, or a base URL names that provider. For example, a `claude` account whose base URL is `https://api.z.ai/api/anthropic` goes on the zai card. An account with none of these goes on its harness's own card: `claude` on Anthropic, `codex` on OpenAI.

A card with no saved account still shows, with the line `no saved account`. Press `a` on its title line to add one.

The first row on the Anthropic and OpenAI cards is **System default**. It is your own `claude` or `codex` login on this machine, with no saved account named. If no account on that card is active, this row carries `[ACTIVE]`.

Each account row shows, in order:

1. The `[ACTIVE]` mark on the active account. A `$` before it marks the account that new spawns from this mux bill. [Pick the account for new spawns](#pick-the-account-for-new-spawns) sets it.
2. The account id, its plan, and its email. For example: `studio  Max 20x (j•••@e•••.com)`.
3. The kind: `subscription login` or `API key`.
4. The harness, the live workers, the age of the usage reading, and the age of the saved login. The row leaves out a field with no value.
5. The keys that work on this row, such as `u: make active  r: re-authenticate  d: remove`.

At sign-in, the saved login proves its email, and the row shows that email. It always shows masked: `jane@example.com` reads `j•••@e•••.com`. The plan comes from the account's `plan` key in `config.toml`. With no `plan` key, a claude account shows the tier of its saved login, such as `Max 20x` or `Pro`.

If the saved login serves another account, the row shows `!serves <id>`. If it shares its login with another account, the row shows `!shared-identity`. If you see one, press `r` on the row to sign in again.

A row that is too wide for the overlay drops fields. First the login age goes, then the reading age, then the kind. The selected row keeps all its keys. Every other row keeps at least `u: make active`.

Under each account row, one bar shows each usage window:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
              5h      ━━━━━───────────────  26%  resets in 2h  pace slower
```

The bar has 20 cells. Its filled part is green, amber above 70% and red above 90%. Then come the percent used, the time to the next reset, and the pace. The pace compares the use with an even spend across the window. `pace slower` means more than 5 points below an even spend, and `pace faster` means more than 5 points above it. Any other value reads `on pace`. A window with no reset time in the future shows only the percent.

If an account has no reading yet, the line under it says why, such as `not measured yet` or `login expired: r to log in`.

## Make an account active

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Guide me through making the account I choose active. Ask me which account and explain the effect before I confirm.
```

### What the agent runs

1. Press `j` or `k` to select the account.
2. Press `u` or `Enter`. A prompt opens.
3. Read the prompt, then press `Enter` to switch. Any other key cancels.

The prompt says what the switch does to the workers that run now. For a managed `claude` account it reads like this:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
switch claude to makers? 2 live workers stay running (Enter=yes, any key=no)
```

The count covers the workers in this mux. A `claude` process that you ran outside the mux is not in the count. The result line after the switch carries the real count.

The view always passes `--scope global`, so the switch holds in every directory. What happens next depends on the account:

| Account | What `u` does |
| - | - |
| Managed `claude` | Saves the outgoing account, puts this account's login in the shared slot, and checks it. Live workers keep running. New spawns run on this account. |
| Managed `codex` | Switches only when no `codex` runs. If one runs, the prompt says the switch will defer, and the slot does not change. |
| API key or saved login folder | Moves the active mark only. No login moves, and live workers do not change. No spawn path reads the active mark, so name the account with `--account` when you spawn. |
| `claude` with its own config folder | Opens no prompt. It names `s: spawn-acct`, because this account never takes the shared slot. |

If the account is already active, the view says so and runs nothing.

## Sign in again

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Guide me through signing in again to the account I choose. Ask me which account if unclear.
```

### What the agent runs

Press `r` on a managed `claude` row to sign in to that account again. If the saved login no longer works or serves the wrong account, use `r`.

1. Select the account and press `r`. A prompt opens:

   ```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
   re-authenticate makers? two browser logins in a pane, and makers takes the shared claude login (Enter=yes, any key=no)
   ```

2. Press `Enter`. A new pane opens and runs `fno config accounts use makers --scope global --login`.

3. The pane prints `Sign in as <EMAIL> (step 1 of 2)`. Sign in to the browser as that account.

4. The pane prints `step 2 of 2`. Sign in as the same account again.

You sign in twice because Claude keeps two Keychain items for its login. Your terminal `claude` reads one, and the background workers read the other. Each login fills one item. Before it saves anything, F\[no] checks that each login serves the account you named.

When it works, the pane ends with these lines:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Materialized managed account 'makers' into the slot (verified).
Active account set to 'makers' (scope=global).
```

The account is now active and holds the shared login. If you sign in as another account, the login stops with `wrong-account` and saves nothing.

On other rows, `r` does this:

* A managed `codex` row with an expired login opens a pane with `codex login`. Sign in there, then press `r` again to save the login. On a `codex` row whose login works, `r` saves the current login again.
* A `claude` row with its own config folder runs nothing. Sign in under that folder instead.
* An API key or saved login folder row is not managed. `r` says so and runs nothing.

## Pick the account for new spawns

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Guide me through choosing which Claude account new spawns from this mux bill.
```

### What the agent runs

Press `s` on a `claude` row to bill new spawns from this mux to that account. The row gets a `$` mark, and the view prints `spawns now bill <ID>`. Press `s` on the same row again to go back to the default account. This mark holds only in this mux, and it moves no login. `s` refuses a row that is not `claude`.

## Add or remove an account

> **Note:** The searchable provider picker is for F\[no] 0.4.6. The 0.4.5 release uses the older account form.

### Choose a provider

1. Open Connections with `Ctrl-b`, then capital `A`. Stay on the Accounts tab.
2. Press `a`. A searchable provider picker opens.
3. Type a provider's name or ID to filter the list. Use Up, Down, or `Tab` to move between matches.
4. Press `Enter` to choose the highlighted provider.
5. Enter an account ID, then press `Enter`. Use up to 64 lowercase letters, digits, or hyphens. The first character must be a letter.

The list starts with **Popular**, then **Local**, then the other available models.dev providers in alphabetical order. A dot marks a provider with a connected account. Press `Esc` to cancel the form.

![Add account picker with an empty search box and Popular, Local, and Other provider sections](https://mintcdn.com/fno/oGCp2G_Hb_e8qbx1/images/accounts-provider-picker.png?fit=max\&auto=format\&n=oGCp2G_Hb_e8qbx1\&q=85\&s=cd94e270283d7faa7ee8f1e5171a2e5f)

### Complete the account form

For Anthropic or OpenAI:

1. Check the account kind, which selects its harness and login method. Anthropic starts with managed `claude`, and OpenAI starts with managed `codex`.
2. Press `Enter` to open the login pane.
3. Complete the sign-in there.
4. Return to Accounts and select the pending account row.
5. Press `r` to save the login. Check that the pending row becomes a saved account row.

For zai, accept the GLM API key kind with `Enter`. Type the key, then press `Enter` to submit it.

For another catalog provider with a configured API key variable, type its key and press `Enter`. F\[no] adds an `opencode` API key account with that provider's route. If the catalog has no API key variable, the form uses the account-kind step instead.

Check for the saved account row after submission. If the command refuses, read the notice before trying again. An empty key reads `api key cannot be empty`.

### Add a local server

Start your local model server and load at least one model before you add it. The picker lists Ollama, LM Studio, vLLM, llama.cpp, and MLX.

1. Choose the server in the provider picker.
2. Enter an account ID, then press `Enter`.
3. Check the prefilled base URL. If your server uses another address or port, edit the URL.
4. Press `Enter`. F\[no] asks the server for its models. If at least one model returns, it adds the account.
5. Check for the saved account row. If the notice starts with `no models from`, check the server and URL, then retry.

This path asks for a base URL instead of an API key. The model request waits up to two seconds. An empty model list adds nothing.

![Add account form for an ollama account with the base URL prefilled as http://127.0.0.1:11434](https://mintcdn.com/fno/oGCp2G_Hb_e8qbx1/images/accounts-local-server-form.png?fit=max\&auto=format\&n=oGCp2G_Hb_e8qbx1\&q=85\&s=f1b4fc8e8a89cbbf463e40ddabe1d6c8)

### Remove an account

1. Select the saved account row.
2. Press `d`. The prompt reads `remove account <ID>? (Enter=yes, any key=no)`.
3. Press `Enter` to remove it, or any other key to cancel.

## Read usage from existing logins

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Read usage for the logins already on this machine. Include unmanaged logins. Report each unknown reading and its reason without changing credentials.
```

### What the agent runs

> **Note:** This command targets F\[no] 0.4.6. The latest release is 0.4.5.

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config accounts usage --logins
fno config accounts usage --logins --json
```

Either command reads existing logins without requiring a managed account. The read contacts supported providers with the stored access token. It does not refresh or copy tokens, write a login slot, or keep a usage cache.

The read includes the plain Claude Keychain item, labeled `System default`, and scoped Keychain items and `.credentials.json` files in Claude config directories. These directories include `CLAUDE_CONFIG_DIR` or `~/.claude`, plus directories of configured Claude accounts. Copies with the same access token share one row.

It also reads Codex `auth.json` under `CODEX_HOME` or `~/.codex`, and API keys from the environment or `~/.fno/.env`. Environment values take precedence. It recognizes `ZAI_API_KEY`, `Z_AI_API_KEY`, `BIGMODEL_API_KEY`, `KIMI_API_KEY`, `MOONSHOT_API_KEY`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, and `DEEPSEEK_API_KEY`.

Rows show the provider, login kind, plan, masked identity, and available usage windows. Each window includes usage, reset time, and pace. A positive numeric pace means usage exceeds an even spend across the window. JSON contains a `logins` array, rather than the ordinary usage command's provider-keyed object.

An expired token reports `token-expired` without a request. An unsupported API-key usage endpoint reports `usage-unsupported`. This applies to Kimi, Anthropic, OpenAI, and DeepSeek API keys. If a provider's API key does not support usage, its subscription login can still support it.

Other failures report `no-access-token`, `credential-rejected`, or `probe-failed`. Unknown usage does not mean zero usage. The command still exits `0`. If the read finds no login, text output reads `no logins found on this machine`.

See the [CLI reference](/docs/reference/cli.md#login-usage) for output fields.

## Switch from the CLI

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Switch to the saved account I choose at global scope. Ask me for its ID and explain the effect before switching.
```

### What the agent runs

Run the same switch in a terminal:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config accounts use <ID> --scope global
```

Replace `<ID>` with the account id. Always pass `--scope global`. Without it, `use` writes the active mark into the project's `.fno/config.toml` only.

To sign in again as part of the switch, add `--login`:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno config accounts use <ID> --scope global --login
```

`--login` always runs the two browser logins. A saved login that still works does not skip them. It works only on a managed `claude` account. On any other account it stops with `error: --login signs in a managed claude account`. It needs a terminal. Without one, it stops and prints the command to run in a terminal.

To check the result, run `fno config accounts list`. The new account carries `*`.

## Limitations

### A switch moves every running Claude session

Every `claude` session on a Mac shares one login. A switch on a managed `claude` account moves the sessions that run now, not only new spawns. Plan the switch for a quiet moment.

### A project setting can hide the switch

If a repo's `.fno/config.toml` sets `active` under `[accounts]`, that value wins inside the repo. If this hides a switch, the result line warns you. Remove the line so the global value decides.

## Next steps

* [Run a fleet](/docs/guides/run-a-fleet.md): spawn workers and name the account each one bills with `--account`.
* [Configuration reference](/docs/reference/configuration.md): the other settings in `.fno/config.toml`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.