Skip to content
Keepware Subscribe

How to use several Claude Code accounts on one computer (work, personal, clients)

Stay signed in to your personal Claude plan, your employer's and a client's at the same time: Anthropic's own way with CLAUDE_CONFIG_DIR and shell aliases, what each account folder does and doesn't keep apart, and how Tillerman gives each team its own accounts.

Part 2 of 3· Nov 22, 2026·5 min read ·Last checked Nov 22, 2026

Claude Code keeps one sign-in per configuration folder, so to use several accounts on one computer you give each account its own folder with the CLAUDE_CONFIG_DIR environment variable — Anthropic's documented way, usually a shell alias such as claude-work — and start Claude Code with the folder of the account you want.

You have your own Claude plan, your employer’s Team plan, and maybe a client who wants their work billed to their account. Claude Code signs in once per configuration folder, so the question is simply how to keep one folder per account and start each session with the right one. Anthropic documents a way to do it, and it’s the right place to start.

Anthropic’s way: one folder per account

From Claude Code’s authentication docs, Log in with multiple accounts:

To stay signed in to multiple accounts at once, such as work and personal accounts, give each account its own configuration directory. When you start claude, set the CLAUDE_CONFIG_DIR environment variable to the directory for the account you want to use. Each directory has its own settings, session history, and claude.ai login or API key.

The docs’ example is a shell alias. In ~/.zshrc or ~/.bashrc:

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

Open a new terminal and run claude-work: the first time, Claude Code walks you through signing in for that folder. claude keeps your personal account in the default folder (~/.claude). Add one alias per account:

alias claude-acme='CLAUDE_CONFIG_DIR=~/.claude-acme claude'
alias claude-globex='CLAUDE_CONFIG_DIR=~/.claude-globex claude'

Type /status in a session to see which account it runs on.

Two refinements people add:

  • Pick the account by folder. With a tool like direnv, an .envrc in a client’s folder with export CLAUDE_CONFIG_DIR="$HOME/.claude-acme" sets it whenever you cd there, so a plain claude in that folder uses the client’s account.
  • Settings files take absolute paths. CLAUDE_CONFIG_DIR can also be set in user or managed settings (written out in full, /Users/you/.claude-work — no ~), but not in a project’s or local settings (environment variables).

One limit the docs state: separate folders don’t keep two Claude Console sign-ins made without an API key apart, because Claude Code stores that kind of sign-in outside the folder.

What each folder keeps — and what that means

Per the docs, the folder holds “all settings, session history, and plugins”. That has consequences worth knowing before you rely on it:

  • History is per account. claude --resume in claude-acme lists only Acme’s sessions. Switching accounts in the middle of a task means starting a new conversation, or going back to the old account.
  • MCP servers you add for yourself are per account. A server added with user scope lives in that account’s folder; add it again in each folder that needs it. Servers in a repository’s .mcp.json follow the repository.
  • Your CLAUDE.md, skills, agents, commands and plugins are per account. A new folder starts without them. Copy or link them deliberately — whatever is in them goes along with every prompt to that account.
  • Scripts that assume ~/.claude read the wrong folder. Hooks, status lines and tools that hard-code the default path don’t follow CLAUDE_CONFIG_DIR.
  • The desktop app takes one folder at a time. It reads CLAUDE_CONFIG_DIR for the whole app; to change it you quit and reopen the app (desktop docs).

What account folders don’t cover

The alias answers which Claude account. It doesn’t answer the rest of what changes between a client and your own work:

  • Connections and their tokens. The GitHub, Jira or database access an MCP server uses is configured per server, often with a token in your environment — the same in every account unless you separate it yourself.
  • Secrets. API keys in .env files and shell variables are visible to whichever agent runs in that shell.
  • A team’s shared access. When a client gives the team a bot account or a read-only role, each person still has to set it up by hand, and the token ends up on every laptop.
  • Events. An agent waiting for the client’s CI still polls, under whatever credentials it found.
  • Going back and forth. Moving a conversation to another account means a new conversation.

For one personal and one work account, the alias is often all you need. When you work for several teams, the account is the first of several switches — the rest are in Working for several teams with Claude Code on one computer.

Several accounts in Tillerman

Tillerman uses the same mechanism — every account is an ordinary Claude Code folder — and files each account under the space it belongs to: Personal, or one team.

  • Personal has your usual login (the default folder) and any others you add there (~/.claude-<name>). Adding one needs no Keepware sign-in.
  • Each team has its own: the first is ~/.claude-<team>, labelled with the team’s name — for example the client’s Team plan — and you can add more.
  • You sign in with Claude Code’s own login (auth login in a terminal; over SSH for a dev machine). Tillerman never sees the token.
  • A space offers only its own accounts. In Acme, the model menu lists Acme’s accounts, not your personal ones — so Acme’s work can’t land on your plan by a slip of the menu. Switch the team (⇧⌘O) and the list switches with it.
  • Your personal skills stay personal. Your CLAUDE.md, skills, agents, commands and plugins are linked into Personal’s accounts, and into a team’s account only when you tick “Use my personal skills and plugins in Acme” on that account. Installing a plugin from an Acme session doesn’t change Personal’s.
  • Change account mid-conversation. Pick another account (or another model) in a running session and the conversation carries on: Tillerman copies it to the new account’s folder and resumes the same Claude Code session there, and the transcript says so.
  • Shared with QuerentDB and Pentimento. The accounts are listed in ~/.keepware/claude-accounts.json, so the agents inside QuerentDB and Pentimento offer the same accounts in the same spaces.

Find them in Settings → Models → Claude accounts: one group per space, the current one first, each account with Sign in, Sign out, Rename and Remove — and Add Claude account…. Because they are plain Claude Code folders, the aliases above keep working with them in a terminal too.

Settings · Acme → Claude accounts: Acme's own Claude Code login, in its own folder.
Settings · Acme → Claude accounts: Acme's own Claude Code login, in its own folder.

Facts about Claude Code on this page were checked against Anthropic’s documentation on 2026-11-22.

Questions and answers

Can two Claude Code accounts run at the same time?

Yes. Each claude process reads the folder it was started with, so claude in one terminal and claude-work in another run side by side, each on its own account, with their own settings and history.

Why don't I see my sessions after switching accounts?

Session history is stored in the account's folder, so claude --resume under one account lists only the sessions that ran on it. Go back to that account to resume them. Tillerman, when you change the account inside a session, copies the conversation to the new account's folder and continues the same session there.

Will my personal skills and CLAUDE.md go to a client's account?

Only if you put them there. A new folder starts without your ~/.claude skills, agents, commands and CLAUDE.md; copying or linking them in is a choice — everything in them is sent along with the client's prompts. Tillerman links them into a team's account only when you tick "Use my personal skills and plugins in" that team.

Does this work in Claude Code's desktop app?

The desktop app reads CLAUDE_CONFIG_DIR for the whole app: set the variable where the app picks it up, then quit and reopen it (desktop docs). To use another account you change it and restart — one account at a time per app.

Can I keep two Claude Console sign-ins apart this way?

Not when you sign in to the Console without an API key: Anthropic's docs say separate folders don't keep those apart, because Claude Code stores that kind of sign-in outside the configuration folder. Claude.ai sign-ins (Pro, Max, Team, Enterprise) and API keys are kept per folder.

Does Tillerman see or store my Claude token?

No. Each account in Tillerman is an ordinary Claude Code folder you sign in to with Claude Code's own login; Tillerman records which folder belongs to which space, nothing else.