Guides

How to use multiple Claude Code accounts on one Mac

By Diego Partida, who makes Tendeck · Updated

Short answer

Give each account its own configuration directory. Claude Code reads the CLAUDE_CONFIG_DIR environment variable, so an alias like alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude' keeps a second login next to your usual ~/.claude, each with its own settings, history and credentials. Check your plan's terms before you use more than one account.

Why people keep two accounts

The usual reasons are a work account next to a personal one, or a second subscription so a long week doesn’t stop at the 7-day limit. Either way you want both logged in at once, without /logout and /login every time you switch.

The built-in way: one config directory per account

Claude Code keeps settings, session history, plugins and your login in its configuration directory, ~/.claude by default. The CLAUDE_CONFIG_DIR variable points it somewhere else, and Claude Code’s authentication docs recommend exactly this for multiple accounts.

Add an alias to ~/.zshrc:

alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'

Open a new terminal, run claude-work and log in with the second account. From then on, claude uses your personal account and claude-work your work one, side by side.

On macOS, Claude Code keeps the login in the Keychain and keys that entry to the configuration directory, so each directory reads its own credentials.

What doesn’t come along

Everything under the directory belongs to that account. A fresh ~/.claude-work has none of your:

Copy them over, or symlink the ones you want shared. Never copy credential files between directories: log in to each one through Claude Code.

Where it gets awkward

With Tendeck: accounts on the board

Tendeck builds on the same mechanism and handles the bookkeeping:

  1. Press + next to Accounts in the sidebar and name the account.
  2. Press Sign in. A terminal opens with claude auth login, the official flow. Finish signing in there.

What you get:

One limit to know: Claude Code reports usage only on subscription plans, after the first response, so a new account shows no data until then.

Running agents across accounts

With accounts side by side you can spread parallel agents across them, so a heavy day doesn’t end at one account’s limit. The guide on running multiple Claude Code agents in parallel covers keeping those agents out of each other’s files.

Questions people ask

Is it allowed to use two Claude accounts?

That depends on your plans and their terms, not on the tool. Read the terms of each plan before you rely on more than one account, especially if someone else pays for one of them. Tendeck doesn't decide that for you and never switches accounts by itself.

Do two accounts share usage limits?

No. Each account has its own limits, because each is its own subscription. That's why a second account helps when one runs out, and why it's worth seeing both meters at once.

Will my CLAUDE.md and skills work in the second account?

Not by default. Everything under the configuration directory belongs to that account, so a fresh ~/.claude-work starts without your settings, skills or plugins. Copy or link them in, or let a tool do it.

Can I move a conversation from one account to another?

In plain Claude Code, conversations live in each account's directory. In Tendeck you move an agent to another account and the same conversation carries on, when you decide to.

Does this work for Codex too?

Tendeck lets you add Codex accounts the same way, each logged in with codex login. A Codex agent stays on the account it started with.

Tendeck lives on your Mac

You’re not on a Mac right now. Get the link by email and start the 7-day trial when you’re at your Mac: no card.

One email with the link. No list, no follow-ups.

Download the .dmg anyway