Summary
Add support for easy switching between multiple GitHub accounts in Copilot CLI.
Motivation
Many developers manage multiple GitHub accounts (personal, work, contractor, etc.) and need to switch between them frequently. Currently, users must manually reconfigure authentication each time they want to switch accounts.
Proposed Solution
Add a multi-account management system similar to:
gh copilot account list - Show all configured accounts
gh copilot account switch <account> - Switch to a different account
gh copilot account add - Add a new account
gh copilot account remove <account> - Remove an account
Use Cases
- Developers with personal and work GitHub accounts
- Contractors working with multiple organizations
- Users with multiple Copilot Pro subscriptions for managing request limits
- Teams sharing a workstation but using individual accounts
Alternative Solutions
- Manual re-authentication via
gh auth login
- Using different shells/terminals with separate configurations
- Environment variable switching (cumbersome)
Additional Context
This feature would align well with the existing gh auth multi-account support and make Copilot CLI more convenient for multi-account workflows.
Summary
Add support for easy switching between multiple GitHub accounts in Copilot CLI.
Motivation
Many developers manage multiple GitHub accounts (personal, work, contractor, etc.) and need to switch between them frequently. Currently, users must manually reconfigure authentication each time they want to switch accounts.
Proposed Solution
Add a multi-account management system similar to:
gh copilot account list- Show all configured accountsgh copilot account switch <account>- Switch to a different accountgh copilot account add- Add a new accountgh copilot account remove <account>- Remove an accountUse Cases
Alternative Solutions
gh auth loginAdditional Context
This feature would align well with the existing
gh authmulti-account support and make Copilot CLI more convenient for multi-account workflows.