[FEATURE] per-project account configuration
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Allow configuring which Claude account to use per project directory, so users with separate work/personal accounts don't accidentally use the wrong one. Similar to how Git supports per-repo user.email config.
Proposed Solution
I believe that the best way to manage that would be in .claude project folder.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
I have my private subscription with Claude Code, and my company just provided me with a company subscription.
I cannot use my company subscription on my private projects and for that, currently I need to be logging out and logging back in using correct account.
This is prune for errors as I might mistakly forget and use wrong account, either spending my tonkens on my company messy project or using company account on my personal projects.
Additional Context
_No response_
9 Comments
Adding my use case: I have a personal subscription for side projects and a company-paid subscription for work. I need to run both simultaneously in different projects, but /logout signs out globally across all sessions. Per-project account binding would let me work on both without constantly re-authenticating.
Same, I don't want to run my personal projects on the company's claude 'cause it seems unfair.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
@allanmongej + @giuseppelanzi have you managed to solve this?
@LuisValgoi kinda, I quit my job last month. Good luck!
wow, u have discord so we can chat? Have curiosity on understanding why / if you are full entrepreneur mode now
@LuisValgoi sure, let's connect allan.mongej at discord!
I found a solution that works for me: aliases. Something like this, with which I have to login again:
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work /path/to/bin/claude'.In this way if I use _claude_ I am using my personal standard account and when I use
claude-workI use my company's max account.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.