Skip to content

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

  1. Click on the Accounts icon in the left sidebar (bottom, next to Settings)
  2. Select the desired account from the list
  3. Click Use for GitHub Copilot
  4. 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

  1. Press Ctrl+Shift+P
  2. Search for: Accounts: Manage Extension Preferences
  3. Select GitHub Copilot Account
  4. Choose the active account or add a new one

Setup Permanent Profiles

  1. 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)
  2. Log in to each profile with its respective GitHub account

  3. Once authenticated in each profile, switching no longer requires re-authentication

  4. Switch profiles from the bottom bar of VS Code


Method 1 — Logout/Login (Simple but Each Time)

  1. From the current Copilot CLI session, type: /logout
  2. Then authenticate with your other account: /login

Method 2 — Token Method (Fast, No Logout Required)

Generate Personal Access Tokens

  1. Generate one token per account: github.com → Settings → Developer settings → Personal access tokens → Fine-grained
  2. Set permission: Copilot Requests
  3. Use tokens as environment variables when starting a session:
bash
COPILOT_GITHUB_TOKEN=token_msg copilot
COPILOT_GITHUB_TOKEN=token_personal copilot

Each 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.

Copyright © MSG Systems Romania AI Labs