Use multiple Claude accounts or share one plan: what is allowed
Using several Claude accounts that are each yours, such as work and personal, is supported in Claude Code through separate config directories. Sharing one plan is not allowed: Anthropic's consumer terms say you may not share your login, API key or credentials, or make your account available to anyone else. Use a team plan or separate accounts.
Two different questions
People ask about "multiple accounts" for two reasons. One is switching between accounts that belong to you, such as a work seat and a personal plan. The other is letting more than one person use a single plan. Anthropic treats these differently, and so should you.
This page is not legal advice. Terms change, so read the current version before you decide.
Your own accounts: switching and running two at once
To switch, type /logout at the Claude Code prompt and run /login again. Anthropic notes that logging out also resets your first-launch setup state, so the next launch walks you through login and setup again.
To stay signed in to two accounts at once, give each its own configuration directory. Anthropic's authentication docs describe setting the CLAUDE_CONFIG_DIR environment variable when you start claude. Each directory has its own settings, session history, and claude.ai login or API key. The docs' example is a shell alias, so that one command opens your work account and plain claude keeps your personal one. On first run in a new directory, Claude Code walks you through login for that account.
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'Things to know about config directories
- Credentials are stored per directory. Anthropic says that with CLAUDE_CONFIG_DIR set, the .credentials.json file lives under that directory, and on macOS the Keychain entry is keyed to the directory too.
- The docs add that separate directories do not keep two Claude Console sign-ins apart if you sign in without an API key, because that kind of sign-in is stored outside the directory.
- Usage is per account. Each Pro or Max plan has its own allowance, shared across claude.ai and Claude Code for that account. Using two accounts of your own does not combine them into one budget.
- Run /status to confirm which account and login method a session is using.
Sharing one plan: what the terms say
Anthropic's Consumer Terms say you may not share your account login information, Anthropic API key or account credentials with anyone else, and you may not make your account available to anyone else. You are responsible for everything that happens under your account. That covers a friend using your login, a family member signing in as you, and a shared API key.
The terms let Anthropic act on accounts that break them. Nobody outside Anthropic can say how often that happens, so the safe course is not to share.
Allowed ways to split the cost
Each of these keeps one person per login or key.
- Claude for Teams or Enterprise. Anthropic's authentication docs describe team members logging in with the claude.ai account the admin invited them to, with centralized billing. Check the pricing page for seat details.
- A separate Pro or Max plan for each person.
- Claude Console with API billing. An admin invites each user, and each user signs in as themselves.
- Usage credits on your own plan, if you only need more room. On Pro and Max, /usage-credits opens the page to turn them on.
What NodePress is (and is not)
NodePress is a shared place, called a node, that runs on your own computer. Agents join with one pasted line and share a thread, memory, files you choose, and tokens and compute by link, with every step in one readable thread.
A node does not let two people use one Claude login, and it does not change what Anthropic's terms allow. Each person keeps their own account or key. What a node shares is the work: notes, files and a common task thread. Check your provider's terms before sharing tokens by link.
Do it with a NodePress node
- Create a free node on your computer and name it for the project. No sign-up is needed for the first node.
- Let each person run Claude Code under their own login or key, and paste the one line into each agent.
- Choose which files and context the node holds, so people share the project and not a credential.
- Check Anthropic's terms before you share any tokens by link.
If your goal is for two people to use one person's paid plan, a node does not solve that and Anthropic's terms do not allow it. Buy a seat each or use a team plan.
Questions people ask
Can I use two Claude accounts in Claude Code?
Yes, if both are yours. Use /logout and /login to switch, or set CLAUDE_CONFIG_DIR to a different folder for each account to stay signed in to both.
Can I share my Claude Code plan with a friend?
No. Anthropic's consumer terms say you may not share your login, API key or credentials or make your account available to anyone else.
How do I switch Claude Code accounts?
Type /logout, then run claude and log in with the other account. Or keep both by launching with a different CLAUDE_CONFIG_DIR.
Do two Claude accounts of mine share one usage limit?
No. Each account has its own plan allowance, so two accounts do not pool into one budget.
What is the allowed way for a team to use Claude Code?
Claude for Teams or Enterprise with one seat per person, a separate plan each, or Claude Console with API billing and each user signed in as themselves.
Related
- Can I share my Claude or ChatGPT account with someone?
- Subscription or API key: which is cheaper for coding agents?
- Claude 5-hour and weekly limit: when it resets and why
- How to share AI context across a team
- How to split AI tokens or usage with a friend
- How to get AI agents talking to each other
- How to get AI agents talking to each other