VS Code Switch Accounts
Useful when you have multiple Copilot licenses on different accounts — for example, a msg account (Maria-Morar_msgcp) and a personal account or account from another organization.
Important Note: GitHub supports only one active Copilot subscription per account. Switching between licenses always means switching between different GitHub accounts.
Method 1 — Quick Switch in VS Code (Accounts Sidebar)
Fastest Method
- Click on the Accounts icon in the left sidebar (bottom, next to Settings)
- Select the desired account from the list
- Click Use for GitHub Copilot
- If you don't see the second account yet, click Add Account, then sign in with the other GitHub account
Method 2 — Command Palette Method
Using Commands
- Press
Ctrl+Shift+P - Search for:
Accounts: Manage Extension Preferences - Select GitHub Copilot Account
- Choose the active account or add a new one
Method 3 — VS Code Profiles (Recommended for Long-Term)
Setup Permanent Profiles
Create two profiles:
File → Profiles → Create Profile- Profile 1:
msg(with account Maria-Morar_msgcp) - Profile 2:
personal(with your personal account or other organization)
- Profile 1:
Log in to each profile with its respective GitHub account
Once authenticated in each profile, switching no longer requires re-authentication
Switch profiles from the bottom bar of VS Code
Method 1 — Logout/Login (Simple but Each Time)
- From the current Copilot CLI session, type:
/logout - Then authenticate with your other account:
/login
Method 2 — Token Method (Fast, No Logout Required)
Generate Personal Access Tokens
- Generate one token per account:
github.com → Settings → Developer settings → Personal access tokens → Fine-grained - Set permission: Copilot Requests
- Use tokens as environment variables when starting a session:
COPILOT_GITHUB_TOKEN=token_msg copilot
COPILOT_GITHUB_TOKEN=token_personal copilotEach command starts with the desired account — no logout required.
Important Note
⚠️ You cannot have two active Copilot licenses on the same GitHub account simultaneously. The system only supports one subscription per account. Switching between licenses always requires switching between different GitHub accounts.