Back to portfolio
VS Code ExtensionFreeSolo — Nisala Nadeera

CLI Agent Hopper

Multi-Account Switcher for Claude Code, Gemini CLI, Codex CLI & Copilot CLI

A VS Code extension for developers with more than one account for Claude Code, Gemini CLI, OpenAI Codex CLI, or GitHub Copilot CLI — hop between them from a sidebar panel the moment one hits its usage or rate limit, instead of waiting for the reset window or manually logging out and back in.

$code --install-extension knnadeera.claude-account-hopper
Claude Code
Gemini CLI
OpenAI Codex CLI
GitHub Copilot CLI

How Switching Works

Claude Code

Swaps ~/.claude/.credentials.json (backing up the current one first), and syncs the cached email/org/usage display in ~/.claude.json so it doesn't keep showing the previous account.

Credential swapBackup first

Gemini CLI

Swaps ~/.gemini/oauth_creds.json, backing up the current file first.

Credential swapBackup first

OpenAI Codex CLI

Swaps ~/.codex/auth.json, backing up first. Only works with Codex's default file-based credential storage — not the keyring option.

Credential swapFile-based only

GitHub Copilot CLI

Different mechanism entirely: sends /user switch <name> into a terminal actively running copilot, using Copilot CLI's own built-in multi-account switching. No credential file involved.

Terminal commandNo credential file

Features

Sidebar panel listing every saved account, grouped by CLI, with a checkmark on whichever is active for that CLI

Each CLI tracks its own active account independently — a Claude account and a Gemini account can both be active at once

Switch / Rename / Remove buttons on every saved account row

Watches terminals running any supported CLI for rate-limit/usage-limit wording, and can prompt — or auto-switch — to the next saved account

"Switch to Next Account Now" manual override that always works, regardless of whether detection fires

Duplicate-account detection — adding an account that's already saved offers to switch to the existing profile instead of creating a second one

Free tier: up to 2 saved accounts total, shared across all CLIs

Status bar item and Command Palette commands as keyboard-only alternatives to the sidebar panel

About This Project

I built CLI Agent Hopper after hitting the same friction repeatedly: juggling a personal and a work account across multiple AI coding CLIs, and manually logging out and back in every time one hit its usage limit. It manages CLI logins — the OAuth sessions each CLI stores locally — not raw API keys, backing up credential files before every switch.

The extension is solely designed, developed, and maintained by Nisala Nadeera Kudaligamage, and is published on the Visual Studio Marketplace under knnadeera.