Public open-source project

PlanSwap

See what is left on each Claude Code and Codex account, get a recommended account when the current one runs low, and switch with one click from a VS Code sidebar without signing out. Choose linked settings and history or independent accounts.

Developers who use multiple Claude Code or Codex accounts in VS Code-compatible editors on Windows or Linux, including WSL.

n2ns.planswapSee extension listingMITExtensionsVS CodeClaude CodeCodex
PlanSwap

Overview

  • Manage Claude Code and Codex accounts separately in one sidebar, with email and subscription plan shown when available.
  • Sign in once per account, then switch without signing out of the others. Existing sessions need a reload or restart to change accounts.
  • See what is left on each account card and in the status bar, get notified when a limit runs low, and see which account to use next.
  • Link settings and supported history to the default account, or keep an account independent.
  • Works on native Windows and Linux, including WSL. The interface and user guide support English, Simplified Chinese, Traditional Chinese, Spanish and Japanese.

Common Uses

  • Compare observed quotas before moving to another subscription.
  • Move to the account with the most left when the current one runs low.
  • Keep work and personal sign-ins separate on one machine.
  • Reuse a common setup across accounts while keeping each login separate.

Requirements

  • A VS Code 1.107+ compatible editor (VS Code, Antigravity IDE or VSCodium) in a WSL remote window, on native Windows, on a local Linux desktop or in another remote window. macOS is not supported.
  • The official Claude Code and/or Codex extension installed where the editor window runs.
  • The claude and/or codex command on PATH for terminal sign-in. Usage checks can also use the CLI bundled with the official extension when the command is unavailable.
  • For Codex switching outside native Windows: Bash as the login shell.

Install

  1. 1

    Search for PlanSwap in the Extensions view. Use Visual Studio Marketplace for VS Code, or Open VSX for Antigravity IDE and VSCodium.

  2. 2

    In WSL, install the extension on the WSL side. On native Windows or Linux, install it in the local editor.

  3. 3

    For a downloaded package, run Extensions: Install from VSIX... in the window where you will use it.

Configure

  1. 1

    Open PlanSwap in the activity bar. The default row represents your existing account.

  2. 2

    Claude: click + Add, enter a name, then use Log in to sign in through the official CLI. Leave the linking option checked to reuse the default account's setup, or uncheck it for an independent account.

  3. 3

    Codex: enable Codex switching, confirm the configuration change, then add an account and sign in.

  4. 4

    Switch Claude accounts for new sessions; reload the window to move open panels over. For Codex, follow the restart instructions for your editor.

  5. 5

    Set planswap.language to auto, en, zh-cn, zh-tw, es or ja. Display settings let you show remaining or used quota and choose which limits appear.

Tools / Commands

  • Switch accounts or open an account-specific terminal from either tab.
  • Refresh usage limits for the current account or all signed-in accounts of one product.
  • Switch to the recommended account from its card, or open a terminal running the CLI as that account without switching.
  • Exclude an account, such as a work account, from recommendations.
  • Add, rename or remove accounts; link an account to the default setup or make it independent.
  • Open CLAUDE.md or AGENTS.md, open the official extension's settings, update its CLI, or re-link shared accounts from Tools.
  • Open PlanSwap settings and the localized user guide from the sidebar.

Resources / Settings

  • Every account keeps its own sign-in. Linked accounts reuse the default account's setup and supported history; independent accounts keep their own copies.
  • Usage limits are checked automatically or on demand through the official CLIs. The sidebar shows observed quota and reset times; the status bar summarizes what is left.
  • When the current account runs low, a card above the list recommends the signed-in account with the most left, with its limits and how long ago they were checked.
  • A notification appears when the current account's 5-hour or 7-day limit has 20% or less left; the threshold is adjustable.
  • Choose which limits and emails appear, adjust warning thresholds, or turn off automatic usage checks.
  • PlanSwap has no telemetry and makes no network requests of its own. The official clients contact their services for login, AI requests and usage checks.

FAQ

Frequently asked questions and troubleshooting guides.

PlanSwap never copies or swaps credential files. It only checks whether Claude's credential file exists; for Codex, it reads limited ID-token fields locally for account display and identity checks. Raw tokens never go into logs or the sidebar. Login and usage queries run through the official clients.
Claude switches apply to new sessions; reload the window to move open panels over. Codex needs an editor or server restart. In Antigravity IDE or VSCodium over WSL, PlanSwap can restart the WSL server after confirmation. VS Code in WSL, native Windows and other environments receive manual restart guidance. Save your work first: a restart closes integrated terminals and running CLI sessions.
Native Windows and Linux are supported, including WSL and remote Linux windows. macOS is not supported. On Windows, linking individual files needs Developer Mode, and Codex thread databases remain separate per account. The README records which environments have been tested end to end.
The displayed limits are observations from the last check, not a guarantee that a future request will succeed. Old or expired observations are hidden. Continuing another account's session can fail, especially across different ChatGPT organizations. Switching also affects other windows of the same editor; it is not isolated per window.