GuidesDownload

Guides

Using two (or more) Claude accounts with Claude Code.

A work account and a personal one is the usual case. Claude Code can stay signed in to both at once, as long as each gets its own configuration folder. Here is how to set that up by hand, and how Mastlight keeps the accounts side by side.

Without Mastlight

  1. Give each account its own configuration folder

    Claude Code reads the CLAUDE_CONFIG_DIR environment variable to decide where its settings, session history and login live. Point it at a different folder per account and each keeps its own settings, history and sign-in. Your first account can stay on the default, ~/.claude. On a Mac, in zsh or bash, an alias does it. Add this to ~/.zshrc or ~/.bashrc:

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

    In Windows PowerShell, set the variable for the session and then start Claude Code:

    $env:CLAUDE_CONFIG_DIR = "$env:USERPROFILE\.claude-work"; claude

    The variable stays set for that PowerShell window. To get back to your default account, open a new window, or clear it with Remove-Item Env:CLAUDE_CONFIG_DIR.

  2. Sign in once per folder

    Open a new terminal and run claude-work. The first time, Claude Code walks you through login and setup for that folder. From then on claude uses your first account and claude-work uses the other.

  3. Check which account you are in

    Inside a session, /status shows the version, model and account. /login signs in again, and /logout signs out.

  4. Know what is and is not separate

    Each folder has its own session history, so a conversation started under one account does not show up under the other. /usage shows your plan usage limits. One caveat from Claude Code’s docs: two Claude Console sign-ins that do not use an API key are not kept apart by folders, because Claude Code stores that kind of sign-in outside the configuration directory.

The by-hand setup is simple, and it is enough for one terminal at a time. It gets fiddly when you have six sessions open across two accounts: nothing on screen says which account a given tab is using unless you ask /status in each, and the limits are one more command per account.

A note on terms: each account should be your own. Anthropic’s Consumer Terms do not allow sharing a login.

How Mastlight does it

Keys

Mastlight does the same thing underneath: every account is a CLAUDE_CONFIG_DIR, and every session starts under the account you pick. You just never type the variable.

Drawn for this page: sessions grouped by account.

Mastlight on a Mac: a banner saying one account is at 82% of its 5-hour limit and that the other has more room, with a gauge for each account under the session list.Mastlight on a Mac: a banner saying one account is at 82% of its 5-hour limit and that the other has more room, with a gauge for each account under the session list.

Two accounts, with the limit banner, on a Mac with sample data.

Try Mastlight

Free, early preview, runs on your computer, no account with us.

Version 1.1.2 · macOS 13 or later, Apple silicon · 147.6 MB

Version 1.1.2 · Windows 10 or 11 · 123.7 MB · Arm build

Version 1.1.2 · Windows 10 or 11 · 116.8 MB · Intel or AMD build

First open is a little unusual because the app is not signed yet: getting started walks through it on each system.

Where these facts come from

Checked against the docs on 11 October 2026. Mastlight needs Claude Code 2.1.85 or newer; where a feature came later, this page says so.

More guides