Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GitHub Copilot Account SwitcherNew to Visual Studio Code? Get it now.
GitHub Copilot Account Switcher

GitHub Copilot Account Switcher

Mustafa Ali

|
8 installs
| (0) | Free
Manage and switch between two GitHub Copilot Pro+ accounts from the status bar — no manual sign-out required.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitHub Copilot Account Switcher

Switch between two GitHub Copilot Pro+ accounts directly from the VS Code status bar — no manual sign-out, no browser, no hassle.

VS Code License

Features

  • One-click switching — Pick the target account from VS Code's built-in account picker, window reloads, done.
  • Status bar indicator — See which account is active at a glance with Copilot status (🟢 active / 🔴 inactive).
  • No browser needed — Once both accounts are signed in, switching never opens a browser again.
  • Usage tracking — Track how many switch-cycles each account has been used.
  • Auto-switch reminders — Optional timer to remind you to balance usage between accounts.
  • Copilot status checks — Verifies each account's Copilot subscription status via the GitHub API.
  • Force-switch fallback — If the seamless switch doesn't take effect, a full restart option is available.
  • Diagnostics panel — View detailed info about accounts, sessions, and configuration.

How It Works

  1. Add two GitHub accounts via the menu (each signs in once through the browser).
  2. Switch with Ctrl+Shift+Alt+N (or Cmd+Shift+Alt+N on Mac), or click the status bar and select an account.
  3. VS Code shows an account picker → select the target → window reloads → Copilot uses the new account.

The extension uses VS Code's clearSessionPreference API combined with inheritAuthAccountPreference to update Copilot's account preference in-memory. A simple window reload is all that's needed.

Commands

Command Description Shortcut
Copilot Switcher: Open Account Menu Show the full account management menu Click status bar
Copilot Switcher: Switch to Next Account Quick-switch to the other account Ctrl+Shift+Alt+N
Copilot Switcher: Add GitHub Account Sign in with a new GitHub account —
Copilot Switcher: Remove Saved Account Remove a saved account —
Copilot Switcher: Verify Accounts Check sign-in and Copilot status —
Copilot Switcher: Refresh Copilot Status Re-check Copilot subscription status —
Copilot Switcher: Force Switch (restart) Switch via full VS Code restart —
Copilot Switcher: Show Diagnostics View detailed debug information —

Settings

Setting Type Default Description
copilotSwitcher.autoSwitchEnabled boolean false Show a reminder to switch after a time interval
copilotSwitcher.autoSwitchIntervalMinutes number 60 Minutes between switch reminders (5–480)

Requirements

  • VS Code 1.90+
  • Two GitHub accounts with Copilot Pro+ subscriptions
  • sqlite3 on PATH (optional — only needed for the force-switch fallback)

First-Time Setup

  1. Install the extension.
  2. Click the $(github) Copilot Switcher status bar item.
  3. Select Add GitHub Account and sign in with your first account.
  4. Add the second account the same way.
  5. Both accounts are now ready — switch anytime!

Note: On first activation, the extension patches VS Code's product.json to enable account preference inheritance. You'll be prompted to restart VS Code once. This only happens the first time or after a VS Code update.

Known Limitations

  • Supports exactly 2 accounts (by design, for simple toggling).
  • The seamless switch shows VS Code's built-in account picker — you need to click the target account.
  • If the seamless switch doesn't work for some reason, use "Force Switch (restart VS Code)" from the menu.
  • Adding an account requires one browser sign-in with full scopes (opens browser once per account).

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft