eca icon indicating copy to clipboard operation
eca copied to clipboard

Multiple logins to same provider

Open mdiin opened this issue 2 months ago • 3 comments

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.

mdiin avatar Sep 23 '26 13:09 mdiin

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?

mdiin avatar Sep 23 '26 15:09 mdiin

I'd love to see that feature as well.

lockie avatar Sep 28 '26 09:09 lockie

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!

ericdallo avatar Oct 08 '26 19:10 ericdallo