Claude Multiple Accounts: 4 Ways to Switch (No Re-login)
Short answer: yes. For Claude multiple accounts in Claude Code, you don’t have to log out each time. Give each account its own config directory (alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'), or save your logins in a switcher: claude-swap (cswap, free, auto-switches at 90%), CodexBar (free Mac menu bar app), or FavTray Pro (menu bar, Claude Code and Codex).
TL;DR
- Built in:
/logoutthen sign in again, or oneCLAUDE_CONFIG_DIRper account so both stay signed in (Anthropic’s docs). - Free switcher with auto-switch: claude-swap 1.1.0 (
cswap add,cswap auto), macOS, Linux and Windows. - Free Mac menu bar: CodexBar 0.84.0, which drives claude-swap for Claude and manages Codex accounts itself.
- Claude Code and Codex in one menu bar chip, nothing else to install: FavTray Pro.
- Codex: the same pattern with
CODEX_HOME. See switch Codex CLI accounts. - None of these pools or extends limits. Each account keeps its own plan and terms.
Re-checked 14 November 2026 against Anthropic’s docs and each tool’s GitHub page, docs and PyPI listing. We make FavTray, so weigh our take accordingly; the other tools here are good and free.
Which Claude account switcher should you use?
Pick by where you work: claude-swap for the terminal and auto-switching, CodexBar for a free Mac menu bar, FavTray Pro for Claude Code plus Codex in the menu bar with no other install, and CLAUDE_CONFIG_DIR for strict separation with no tool at all. The table compares them as of November 2026.
CLAUDE_CONFIG_DIR aliases | claude-swap (cswap) | CodexBar | FavTray | |
|---|---|---|---|---|
| Price | Free | Free | Free | Pro, $4.99 once (Lifetime) |
| Open source | Built into Claude Code | Yes (MIT) | Yes (MIT) | No |
| Latest version (Nov 2026) | Any Claude Code | 1.1.0 (12 Nov 2026) | 0.84.0 (7 Nov 2026) | 2.3.0 |
| Claude Code | Yes | Yes | Through claude-swap | Yes |
| Codex | Same idea with CODEX_HOME | No | Yes, built in | Yes |
| Two accounts at once | Yes, one per terminal | Yes, cswap run | No | No |
| Auto-switch near the limit | No | Yes, opt-in, 90% default | No | No, suggests a switch near the limit |
| Needs a terminal | Yes | To install; TUI or optional menu bar app | For Claude, to install claude-swap | Not to switch |
| Platforms | Wherever Claude Code runs | macOS, Linux, Windows | macOS 14+, Linux | macOS 14+ |
Whichever you pick, switching changes which of your own accounts Claude Code uses. It doesn’t pool or extend anyone’s limits, and Anthropic’s legal and compliance terms apply to each account. The same goes for OpenAI and Codex.
How do Claude multiple accounts work in Claude Code?
Yes. Anthropic’s authentication docs say that to stay signed in to multiple accounts at once, such as work and personal, you give each account its own configuration directory with the CLAUDE_CONFIG_DIR environment variable.
You can sign in with any of the account types Claude Code supports: a Claude Pro, Max or Ultra subscription, a Team or Enterprise seat, a Claude Console login, or a cloud provider. Each account keeps its own plan and its own 5-hour and weekly limits. To see how close each one is, read how to see Claude Code usage limits on Mac.
How do you switch Claude Code accounts with /logout and /login?
The Claude Code logout route: type /logout at the prompt, then run claude again and sign in with the other account in the browser window it opens. That is the only switch built into Claude Code, and it costs you a full sign-in every time.
Two details from Anthropic’s docs matter here:
/logoutresets first-launch setup, so the nextclaudewalks you through login and setup again./loginrenews an expiring login. When a claude.ai login is within three days of expiring, Claude Code warnsYour login expires in 3 days · run /login to renew.
If you only switch once a week, this is fine. If you switch daily, or hit limits mid-task, use one of the options below. One warning if you plan to use claude-swap: run cswap add while still signed in, and don’t /logout first.
How do you stay signed in to two Claude accounts at once?
Give each account its own config directory and start it with an alias. This is Anthropic’s recommended setup, needs nothing installed, and lets two terminals run two accounts side by side.
Add this to ~/.zshrc (or ~/.bashrc):
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'
Open a new terminal and run claude-work. Claude Code walks you through login and setup for the new directory; plain claude keeps your personal account.
What you get, per the docs: each directory has its own settings, session history and login, and on macOS the Keychain entry is keyed to that directory, so a session with a different CLAUDE_CONFIG_DIR reads a different entry.
The costs:
- You choose the account when you start
claude. A running session never moves. - Everything is separate per directory, from MCP servers and their logins to
/resumehistory. - There’s no single view of all your accounts’ limits.
- Two Claude Console sign-ins without an API key don’t stay apart this way, because Claude Code stores that kind of sign-in outside the config directory.
Also check what Claude Code is actually using: per the docs’ authentication precedence, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, an apiKeyHelper script or CLAUDE_CODE_OAUTH_TOKEN all outrank a /login subscription login. Run /status to confirm which credential a session uses.
What does a Claude account switcher actually do?
A switcher saves a copy of each account’s login and, on a switch, writes the chosen one back where Claude Code looks, so your default claude changes account without a new sign-in. On a Mac that means the Keychain item “Claude Code-credentials” and the account identity (oauthAccount) in ~/.claude.json (where Claude Code stores your login). In our use, open Claude Code sessions pick up the switch within about 30 seconds; Anthropic doesn’t document this.
What separates a careful switcher from a script:
- Timing with Claude Code’s own refresh. Claude Code refreshes and rotates its tokens under a lock. A switch that ignores the lock can collide with a refresh and leave a stale login.
- A fresh copy of the outgoing account. Because tokens rotate, a copy saved last week may already be dead.
- Leaving everything else alone, especially MCP server logins stored in the same Keychain item.
Is claude-swap (cswap) the best free Claude account switcher?
For most terminal users, yes. claude-swap (cswap) is free, MIT-licensed, runs on macOS, Linux and Windows, works with the Claude Code CLI and the VS Code extension, and is the only tool here that switches accounts automatically. Version 1.1.0 was published on PyPI on 12 November 2026.
Install it (Python 3.12+):
uv tool install claude-swap # or: pipx install claude-swap
The commands people search for:
| Command | What it does |
|---|---|
cswap add | Saves the account you’re signed in with now. Sign in, run it, then sign in to the next account and run it again. Don’t /logout first. |
cswap or cswap tui | Full-screen terminal dashboard with live usage for every account and one-key switching. |
cswap auto | Checks usage every 60 seconds and switches when the active account’s 5-hour or 7-day window hits the threshold (90% by default, 5-minute cooldown, hysteresis margin). --dry-run tests it; --once suits cron. |
cswap run <account> | Starts Claude Code as one account in this terminal only; other terminals and VS Code stay on the default. MCP OAuth logins aren’t copied, so HTTP MCP servers may ask you to sign in once per account. |
cswap map | Binds a directory to an account so cswap run picks it automatically. |
cswap menubar | Optional macOS menu bar app (install the claude-swap[menubar] extra). |
It also has per-account thresholds, priority tiers, disable/enable, export/import for moving accounts between machines, and --json output for scripts. Per its README, switches “hold Claude Code’s own credential locks while writing” and preserve “live account-independent OAuth state (such as MCP server logins)”.
Does cswap work with Codex? No. claude-swap is Claude Code only; for Codex, see the Codex section below.
Trade-offs: you need Python and a terminal to install it, and auto-switching is a background loop you have to leave running.
Is there a menu bar app for multiple Claude accounts on Mac?
Yes, two: CodexBar (free) and FavTray (Pro). claude-swap also ships an optional menu bar app of its own (cswap menubar).
CodexBar: free, Claude through claude-swap, Codex built in
CodexBar by Peter Steinberger is a free, MIT-licensed menu bar app for macOS 14+ (plus a Linux desktop app and CLI) that tracks usage for a long list of AI providers. Release 0.84.0 shipped on 7 November 2026. Install with brew install --cask codexbar.
- Claude, through claude-swap. Turn on “Read accounts from claude-swap” in Preferences › Providers › Claude and point it at
cswap. CodexBar lists every claude-swap account with its limits, and Switch Account… runscswap --switch-to <slot> --json. Per its Claude docs, CodexBar “never reads claude-swap or Claude Code credential storage” for this, and “no automatic switching occurs”. - Codex, natively. Per its Codex docs, managed Codex accounts each get their own private Codex home, and promoting one makes it the live system login. CodexBar saves the displaced login first and restarts a running Codex app-server daemon.
It’s the natural pick if you already use CodexBar for usage and don’t mind installing claude-swap for the Claude side. Side by side on usage tracking: FavTray vs CodexBar.
FavTray: Claude Code and Codex from one menu bar chip
FavTray is a macOS menu bar app that bundles developer and productivity tools, free with daily limits, $4.99 once for Lifetime. Its AI usage tracker shows Claude and Codex limits in the menu bar for free; since 2.0.5, FavTray Pro (and the 7-day trial) adds account switching for both:
- Save and add accounts. Save the login you’re signed in with, and add more Claude Code and Codex accounts.
- Switch from the menu bar using the account chip on the AI Usage card.
- Limits for every saved account, including the inactive ones, shown as last known.
- Suggests, never auto-switches. Near the active account’s limit, it suggests switching to a saved account with more room.
Trade-offs: it’s paid and closed source, Mac only, has no auto-switch or per-terminal parallel mode, and inactive accounts show last-known limits rather than live ones. On Free, the account chip shows with a lock and your live login keeps working. Step by step: switch Claude Code accounts on a Mac.
Can you use multiple Codex accounts the same way?
Yes. Codex CLI keeps its login and config in the folder named by CODEX_HOME (by default ~/.codex), so one CODEX_HOME per account works like CLAUDE_CONFIG_DIR:
alias codex-work='CODEX_HOME=~/.codex-work codex'
Run CODEX_HOME=~/.codex-work codex login once to sign that folder in. To switch the default login instead of starting separate homes, CodexBar (free) and FavTray Pro both switch Codex accounts from the menu bar, as described above. claude-swap doesn’t do Codex. The full walkthrough, including where Codex stores auth.json, is in how to switch Codex CLI accounts, and to watch both accounts’ limits see Codex usage limits on Mac.
What about multiple accounts in the Claude app or claude.ai?
Claude Code is where account switching tools exist. For the claude.ai website and the Claude desktop app, we couldn’t find an account switcher in Anthropic’s docs as of November 2026, so the dependable approach is a separate browser profile per account (Safari profiles or Chrome profiles), or the desktop app for one account and a browser for the other. Browser extensions that swap claude.ai sessions do exist, but they work by storing your session cookies, so weigh that before installing one. More on the app itself: Claude desktop app for Mac.
What about ccswitch and the other small switchers?
Search GitHub for “Claude Code account switcher” and you’ll find many small scripts and menu bar apps, several called ccswitch or CCSwitcher, plus unrelated projects with similar names. Most do the core swap of the Keychain entry and oauthAccount. Before trusting one with your logins, check that it’s still maintained, respects Claude Code’s refresh lock, keeps a fresh copy of the outgoing account and leaves MCP logins alone.
Which option should you choose?
- You live in the terminal, use Linux or Windows too, or want auto-switching: claude-swap.
- You already use CodexBar, or want a free Mac menu bar app with native Codex switching: CodexBar, with claude-swap for Claude.
- You want Claude Code and Codex switching in the Mac menu bar with nothing else to install, next to your usage limits: FavTray Pro (pricing).
- You want strict separation or two accounts running at once, with no third-party tool:
CLAUDE_CONFIG_DIR(andCODEX_HOME).
Before adding a second account, it’s worth checking whether a bigger plan is the simpler answer: is Claude Max worth it and how Claude plans and resets work.
Sources (checked 14 November 2026): Claude Code authentication and legal and compliance; claude-swap on GitHub and PyPI; CodexBar on GitHub, its Claude and Codex docs and releases.
Frequently Asked Questions
Can you have multiple Claude accounts?
Yes. Anthropic's Claude Code docs describe staying signed in to several accounts at once, such as work and personal, by giving each its own CLAUDE_CONFIG_DIR. Each directory keeps its own settings, session history and login. Each account keeps its own plan and limits; nothing is pooled, and Anthropic's terms apply to every account separately.
How do I switch accounts in Claude Code?
The built-in way is to type /logout at the Claude Code prompt, then run claude again and sign in with the other account. To avoid signing in every time, either start each account from its own CLAUDE_CONFIG_DIR alias, or save your logins in a switcher such as claude-swap (cswap), CodexBar or FavTray and swap with one command or click.
What is the best Claude account switcher?
It depends on how you work. claude-swap is free, MIT-licensed, runs on macOS, Linux and Windows, and can switch automatically. CodexBar is a free Mac menu bar app that fronts claude-swap and switches Codex natively. FavTray Pro switches Claude Code and Codex from the Mac menu bar with nothing else to install. CLAUDE_CONFIG_DIR aliases need no tool.
What does cswap auto do?
cswap auto is claude-swap's automatic switching mode. It checks usage every 60 seconds and, when the active account's 5-hour or 7-day window reaches a threshold (90% by default), switches to a saved account with more room left. A 5-minute default cooldown and a hysteresis margin stop it flip-flopping. Add --dry-run to test or --once for cron.
Can I use two Claude Max accounts?
You can sign in to more than one account you're entitled to, for example a personal Max plan and a company Team seat. Each account has its own limits, and switching never pools or extends them. Anthropic's terms apply to each account, so read them before running two side by side.
Can I use multiple Codex accounts too?
Yes. Codex keeps its login in the folder named by CODEX_HOME (by default ~/.codex), so a separate CODEX_HOME per account works the same way as CLAUDE_CONFIG_DIR. To switch the default login instead, CodexBar manages Codex accounts natively and FavTray Pro switches Codex accounts from the menu bar. claude-swap is Claude Code only.