feat: multi-account profile support per provider#13218
Open
darwich6 wants to merge 9 commits intoanomalyco:devfrom
Open
feat: multi-account profile support per provider#13218darwich6 wants to merge 9 commits intoanomalyco:devfrom
darwich6 wants to merge 9 commits intoanomalyco:devfrom
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
However, PR #10587 seems to focus on the UI dialog aspect for account management, while PR #13218 implements the underlying profile infrastructure (auth.json restructuring, CLI commands, and profile switching logic). They may be complementary rather than duplicate efforts, but worth reviewing to ensure no conflicting implementations. No other clear duplicate PRs were found. The searches returned mostly PR #13218 itself and unrelated authentication PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #13038
Adds multi-account profile support so users can manage multiple credentials per provider (e.g. work and personal OpenRouter accounts) without manually editing auth.json.
Please provide a description of the issue (if there is one), the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
Currently, users must manually edit auth.json to switch between accounts on providers. This is not a good UX for users who have work/personal accounts. To fix, I adjusted auth.json to store credentials in a profile-based manner.
Added CLI Commands:
Modified CLI Commands:
Also reworked profileID to flow through end to end and added active profile to show in prompt bar of TUI, as well as a dialog option to switch profile. This PR is backwards compatible as auth.json is rewritten when the user runs his first profile command.
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
UI Changes SC attached below






This is a fairly large PR, happy to rework and make changes. Thanks for the opportunity!