Multiple logins to same provider
Use case
I have a Claude account provided by my employer, and a personal Claude Pro subscription. I would like to use both subscriptions in parallel on separate projects.
Notes
I think this is unsupported in Claude Code as well, but there is a workaround using environment variables to set a config dir. I'm not sure exactly how that works, and I don't think it is a particularly elegant solution. It feels like ECA has a good base for supporting this with a better UX.
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
An idea could be to have a config key for default subscriptions, e.g. "defaultSubscriptions": { "anthropic": "work", "openai": "work"}. Not sure what a good interactive UX for setting that up would be... maybe have the login flow ask for a subscription name?
I'd love to see that feature as well.
I put some thought and came up with this, now you can have custom providers that inheirt others so you can have different logins for same base provider with a simple config like this:
{
"providers": {
"anthropic-work": {"inherit": "anthropic"}
}
}
And then login via /login anthropic-work for work or /login anthropic for personal.
LMK if that works!