-
Notifications
You must be signed in to change notification settings - Fork 758
Open
Labels
Description
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 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.