Documentation

Use Multiple Claude Code and Codex Accounts

Keep several Claude Code and Codex logins signed in on one computer. Pick which one each agent or session runs on, and move a session to another account when one hits its usage limit.

The short answer

Claude Code keeps one login per configuration directory. Anthropic's authentication docs show how to stay signed in to several accounts: give each its own directory with CLAUDE_CONFIG_DIR, for example alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'. Codex does the same with CODEX_HOME, the folder that holds its config, login and sessions.

Molt Code uses the same mechanism and puts it in the app. You add each account once in Settings, pick which one an agent or a session runs on, and move a session to another account between turns when one hits its usage limit. No aliases, and no logging out and back in.

Add a second account

  1. Open Settings → CLIs → Claude Code (or Codex). The Accounts section lists every sign-in Molt knows on this computer, with its email, plan and organization.
  2. Click Add account. Claude Code opens its own sign-in in a terminal, in a home of its own: Molt makes a new configuration directory and runs the CLI's login there. Once the CLI reports you are signed in, the account appears in the list.
  3. Or add a directory you already have. If you made ~/.claude-work or ~/.codex-personal by hand, Molt finds it and offers it with one Add. It uses that directory where it is and doesn't write to it.
  4. An API key can be an account too. Add an Anthropic or OpenAI key as its own account. It is checked with the provider, then kept on this computer only.

Pick which account runs

  • Per agent Each agent's settings have an Account field. Make two agents on the same CLI, say @claude-work and @claude-personal, give each its own account, and tag the one you want in a thread. In a shared workspace the field is per computer: teammates' runs use their own accounts.
  • Per session When a CLI has two or more signed-in accounts, the new-session composer shows an account chip next to the agent. Pick one and the session starts on it.
  • At the same time Runs on different accounts are separate CLI processes in separate directories, so a work run and a personal run can go side by side on one computer.

Switch when one hits its usage limit

When an account hits its limit, the session shows a warning line in that turn. Open the account chip in the session's composer and pick another account. The next turn runs on it and picks up the same conversation, because Molt's account directories share Claude Code's session history. A turn that is running can't move: stop it first, and the chip says so. To see which account still has room before you pick, open Usage: Claude Code usage limits.

What every account shares

Each account Molt creates links back to your main setup, so you don't configure Claude Code twice. For Claude Code that is CLAUDE.md, settings.json, agents, commands, skills, plugins and project history from ~/.claude, plus your MCP servers and theme copied from ~/.claude.json. For Codex it is config.toml, AGENTS.md, prompts, rules, skills and sessions. Only the login is separate.

What it does and doesn't do

  • Molt doesn't hold your login. Each CLI keeps its own credentials in its own directory (on a Mac, Claude Code keys its Keychain entry to that directory). Molt stores the labels the CLI reports: email, organization and plan.
  • Limits stay per account. Each account keeps its own plan and usage limits. Molt doesn't pool or raise them, and how you may use each plan is set by its terms with Anthropic or OpenAI.
  • Accounts live on one computer. Each computer signs in its own accounts. A run uses the accounts of the computer it runs on.
  • Claude Console sign-ins. Anthropic notes that separate directories don't keep two Console sign-ins apart when there is no API key. Add a Console account as an API key instead.
  • Which CLIs. Claude Code 2.1.40 or newer, Codex 0.88.0 or newer, GitHub Copilot CLI, OpenCode and Pi. Cursor and Antigravity run with one account in Molt.

Set it up

  1. Install Claude Code or Codex and sign in once the usual way.
  2. Install Molt Code. It runs on an Apple silicon Mac or a Linux computer and is free on your own computer. The quickstart has the steps. Molt finds the CLI and your existing login.
  3. Add the second account in Settings → CLIs, as above.
  4. Point an agent at it, or pick it per session, and start working. See agents for making a second agent.

What it costs

Each account bills its own Claude or ChatGPT plan, or its API key, and Molt adds no token markup. Molt Code on your own computer is free. A shared workspace for a team starts at $12 a month for up to 5 members and 10 computers, and invited members never pay. See pricing.

Questions

Can I use multiple Claude Code accounts at the same time?

Yes. Claude Code keeps one login per configuration directory, so each account needs its own directory, which Anthropic documents with CLAUDE_CONFIG_DIR. Molt Code makes the directory and runs Claude Code's own sign-in in it, and runs on different accounts can go side by side.

How do I switch Claude Code accounts without logging out?

Add each account once in Molt Code under Settings, CLIs, Claude Code. Then pick the account per agent or per session. In an open session, the account chip moves the next turn to another account and keeps the conversation.

What happens when one account hits its usage limit?

The session shows a warning line in that turn. Pick another signed-in account from the session's account chip and the next turn runs on it, in the same conversation. Each account keeps its own plan limits; Molt doesn't pool them.

Can Codex CLI use multiple accounts?

Codex keeps its login under CODEX_HOME, so each account needs its own folder. Molt Code gives every Codex account its own CODEX_HOME (Codex 0.88.0 or newer) and lets you pick it per agent or session, like Claude Code.

Does Molt see my Claude or ChatGPT login?

No. Each CLI keeps its own credentials in its own directory. Molt stores only the labels the CLI reports, such as the email, organization and plan. An API key you add as an account stays on that computer.

Get started

Ready to try it yourself?

Free forever. Uses your existing API keys. Runs locally on your machine.

  • free forever
  • no account required
  • uses your existing API keys
  • macOS, Linux, iPhone & iPad