Skip to content

Feature Request: Multi-Account Switching for GitHub CLI #367

Description

@ssfdre38

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

  1. Developers with personal and work GitHub accounts
  2. Contractors working with multiple organizations
  3. Users with multiple Copilot Pro subscriptions for managing request limits
  4. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions