Account Manager for Claude


Run several Claude subscriptions in Claude Code and switch between them in one click. See how
much of every account's limits is left, and let the extension tell you which account to use next.
Note: Not affiliated with, endorsed by, or supported by Anthropic.

Highlights
- One-click switching. Move between any number of saved accounts from the panel, the status
bar, or the command palette. Changed your mind? Undo last switch puts the previous one back.
- Every account's limits, live. The 5-hour, weekly, and model-specific (e.g. Fable) limits of
all your accounts, each with the time until it resets. Same data as Claude Code's
/usage.
- It picks your next account. Proposals rank your other accounts by the capacity you would
lose soonest, and pop up on their own when the active account runs low. After a short countdown
you can cancel, the best one takes over.
- No more daily logins. Tokens are refreshed exactly the way Claude Code refreshes them, under
its own lock, so neither side is ever left holding a spent token.
- See what you actually use. Usage analytics show how much of each limit's capacity you used
before it reset, per account, per limit, and over time.
- Plan ahead. The availability calendar shows when each account was, and will be, usable, by
week or hour by hour.
- One window per account. Open the same project in separate VS Code windows, each logged in
to a different account.
- Private by design. No telemetry. Network requests go only to Anthropic, and saved accounts
stay in VS Code's encrypted SecretStorage.
Install
- VS Code: install from the Marketplace,
or run
ext install tursoft.account-manager-for-claude in Quick Open (Ctrl+P).
- VSCodium, Cursor, and other Open VSX editors: install from
open-vsx.org.
- Requires VS Code 1.85 or newer on Windows, macOS, or Linux.
Getting started
- Log in to Claude Code with your first account.
- Open the Claude Account Manager panel from the activity bar and click Save this account.
- Click Add account and log in with another account. The current account stays active.
- Switch with the blue Switch button on a card, the status bar, or
Claude: Switch account.
- Reload the window after switching so Claude Code picks up the new account. The extension
offers to do it for you, or turn on
autoReloadAfterSwitch.
Never use /logout to change accounts. It revokes that login on Anthropic's side, and the
saved copy dies with it. Use Switch, Add account, or /login instead.
Features
Accounts panel
- Save and add accounts. A login that isn't saved yet appears in its own box with a Save
button. Add account logs in to another account without touching the current one.
- Live usage limits for the 5-hour, weekly, and model-specific windows, with reset times.
- Colors tell you the state. The icon is green while an account has limit left, orange once a
limit is used up, and gray when usage is unknown. The name, and the active account in the status
bar, is green while the account can start sessions and red once the 5h or the general weekly
limit is used up. A used-up model limit such as Fable blocks only that model, so it stays green.
A used-up limit's reset time is yellow under 10 minutes, orange under an hour, and red beyond a
day.
- Filter and sort. Filter by text, availability, plan (Pro, Max, Team, ...), or model limit.
Sort by availability, usage left, next reset, plan, name, or your own drag-and-drop order.
- Stays simple when you need it to. Filters, sorting, and statistics appear once you have two
accounts. With one account, the panel shows just its card.
- Status bar with the active account and its usage, colored green, orange, or red.
- Notifications when a used-up limit is available again, with a Switch button.
Account proposals
Propose and Propose for Fable list the three best other accounts for that limit, each
with its limit bar, a one-line reason, and a Switch button.
Accounts that would lose capacity soonest come first: the ones with the most available percent
per hour until their limit resets. Accounts with a used-up limit or an expired login are skipped.
When the active account's limit runs out, the next accounts are proposed automatically:

Automatic switch. Once the active account's 5-hour limit is 95% used, the next accounts are
proposed with a 30-second countdown, and then Claude Code switches to the best one that is still
below 95% and not in use in another window. Switch now skips the wait, Cancel stops the
countdown and keeps the proposal open, and dismissing the proposal keeps the current account.
Change the threshold and the countdown, or turn the automatic switch off, with the
autoSwitch.* settings.
Exclude from proposals. An account you use on another computer, for another job, can keep
its limits: choose Exclude from proposals in its ⋯ menu, and proposals, automatic
switches, and "limit available again" notifications skip it. A small mark on the card's top-right corner shows it is excluded; Include in
proposals in the same menu brings it back. You can still switch to it by hand. The choice is
kept on this computer only.
Logins that stay valid
- Token refresh that plays nicely with Claude Code, so you don't have to log in again every
day. See Token handling.
- Browser login works without the Claude Code CLI. Reauthorize repairs a broken saved
login without touching the active account.
- Independent windows run the same project in separate VS Code windows, one account each. See
Parallel windows.
- Backup and restore the account list in a password-protected ZIP. See
Backup and restore.
Usage analytics

Turn on Collect usage history (on the analytics page or in settings) to record every account's
limits once a minute. Readings stay on this computer and are kept for 90 days by default.
Open Show usage analytics (the chart icon in the panel's title bar) to see:
- Charts per limit (5h, weekly, Fable, ...) over 1 day, 1 week, 1 month, 3 months, all time,
or a custom range. Show Used % or Available % as bar, stacked bar, line, or area charts.
Bars are green below 60% used, orange from 60%, and red from 80%.
- A shared legend with a checkbox per account that shows or hides it in every chart.
- Capacity utilization: how much of the capacity each limit offered you actually used. A 5h
limit refills every 5 hours and a weekly limit every 7 days, so whatever isn't used before a
reset is lost. You get an overall figure, a figure per limit and per account, and charts over
time.
- By calendar period: the same utilization grouped by weekday, hour of day, week, or month,
with the best and lowest periods called out.
Charts fold into a compact sparkline, show guide lines on hover, and refresh every 2 minutes.
Delete collected usage history removes all readings.
Availability calendar

Open Show account availability calendar (the calendar icon in the title bar) to see when each
account can be used, across a week or hour by hour for a single day.
- Pick which limits to show (5h, weekly, Fable, ...). Each one gets its own lane per account.
- Green is available, amber is 80%+ used, red is limited, and gray is no data. Markers show reset
times, and a red line marks now.
- The past comes from collected usage history. The future is projected from the latest reading
and drawn striped.
- Filter and sort just like in the panel, and drag rows to reorder them in custom order.
- A Right now card per account shows its current state, how usable it was in the period, how
often it ran out, and a Switch button.
Commands
| Command |
What it does |
Claude: Switch account |
Pick an account, with its usage limits |
Claude: Save current account as profile |
Save the account Claude Code is logged in with |
Claude: Add another account (isolated login) |
Log in to another account without touching the current one |
Claude: Refresh accounts, current login and limits |
Re-read everything now |
Claude: Refresh usage limits |
Re-read usage limits now |
Claude: Show accounts panel |
Open the accounts panel |
Claude: Show usage analytics |
Open the analytics page |
Claude: Show account availability calendar |
Open the availability calendar |
Claude: Show Account Manager settings |
Open the settings page |
Claude: Open independent account window |
Open this project in a new window for one account |
Claude: Log in from terminal (replaces the current account) |
Run claude auth login (or browser login without the CLI) |
Claude: Authorize in browser (without CLI) |
Log in through the browser |
Claude: Reauthorize account profile |
Log a saved account in again, without touching the active one |
Claude: Complete profile reauthorization |
Finish a reauthorization |
Claude: Undo last switch |
Restore the previous account |
Claude: Rename account profile / Remove account profile |
Manage saved accounts |
Claude: Back up account list (password-protected ZIP) |
Save all accounts to an encrypted ZIP |
Claude: Restore account list from backup |
Merge a backup into the list |
Claude: Delete collected usage history |
Remove all usage readings |
Claude: About Account Manager for Claude |
Version, author, and project information |
Settings
The gear in the Accounts panel's title bar (or Claude: Show Account Manager settings) opens a
settings page with every setting grouped by topic. Each change is saved to your user settings right
away. Reset to default undoes a change, and a note shows when the current workspace overrides a
setting. The same settings are also in VS Code's Settings under Account Manager for Claude.
All settings start with accountManagerForClaude..
| Setting |
Default |
Description |
autoRefresh |
true |
Check all accounts' usage limits regularly |
pollIntervalSeconds |
240 |
Seconds between checks (minimum 60; short intervals with many accounts can hit rate limits) |
requestDelaySeconds |
2 |
Pause between requests to Anthropic; accounts are checked one at a time, never in parallel |
notifyOnLimitReset |
true |
Notify when a used-up limit is available again |
autoReloadAfterSwitch |
false |
Reload the window automatically after switching |
autoSwitch.enabled |
true |
When the active account's 5h limit runs low, count down and switch to the best proposed account |
autoSwitch.thresholdPercent |
95 |
5h usage (%) of the active account that starts the countdown (100 = once it is used up) |
autoSwitch.countdownSeconds |
30 |
Seconds the countdown runs before switching (5 to 600) |
warnThresholdPercent |
80 |
Usage bars and the status bar turn red from this percent, and orange from 75% of it |
usageHistory.enabled |
false |
Collect usage history for analytics and the calendar |
usageHistory.intervalSeconds |
60 |
Seconds between usage readings (minimum 60) |
usageHistory.retentionDays |
90 |
Days of usage history to keep |
credentialsPath |
"" |
Custom path to .credentials.json (empty means ~/.claude/.credentials.json). On macOS its folder selects Claude Code's Keychain item |
claudeCommand |
claude |
The Claude Code CLI command; use the full path if VS Code can't find it |
How it works
- Switching replaces Claude Code's stored login and the cached account in
~/.claude.json.
The login is ~/.claude/.credentials.json on Windows and Linux, and the Claude Code-credentials
item in the login Keychain on macOS. A backup copy makes the switch undoable. Saved accounts are
kept in VS Code's encrypted SecretStorage.
- Usage comes from Anthropic's unofficial usage endpoint, the same source as
/usage. Because
it is rate-limited, checks run every 240 seconds by default, plus any manual refresh. Accounts
are checked one at a time with a 2-second pause between requests (requestDelaySeconds), and an
account that still gets a rate-limit error is paused for 5 minutes.
Token handling
Claude Code's refresh tokens work only once: each refresh issues a new token and invalidates the
old one. If two programs share a login and one of them refreshes, the other is logged out. To
prevent this, the extension:
- takes Claude Code's own refresh lock before refreshing, so Claude Code waits and picks up the
new token;
- writes every new token back to all local copies and to the saved account;
- always uses the newest token it can find, and refreshes only when the current one is expiring;
- watches Claude Code's stored login (
.credentials.json, or the Keychain on macOS) and picks up
its own refreshes immediately;
- saves the account you switch away from first, so it keeps its latest token;
- never retries a token the server has rejected.
Each login is independent, so logging in on another computer doesn't affect this one. Saved
accounts are stored per machine: add them on each computer, or move them with a backup.
Parallel windows
By default, all VS Code windows share one Claude Code login. Open independent account window
(or the Window item on a card) opens the project in a new window with its own config directory
through CLAUDE_CONFIG_DIR, so you can run one window per account. The extension won't open a
second window for the same account, because both would spend the same refresh token.
Backup and restore
Back up and Restore live in the panel's ⋯ menu. The backup is a ZIP encrypted with
AES-256 and your password, so 7-Zip can open it too. It also stores your panel choices and settings
(except credentialsPath).
- It contains login tokens. Anyone with the file and the password can use those accounts.
- Restoring merges into the current list: it adds missing accounts and uses the backup's tokens
only when they are newer.
- Tokens in an old backup may already be spent. Use Reauthorize on those accounts.
- Don't use the same restored account on two machines at once.
Troubleshooting
The Claude Code CLI is optional for switching, usage checks, and browser login. Only logging in
from the terminal needs it. If the extension says claude is not recognized:
- Run
where claude in PowerShell or CMD (which claude on macOS and Linux).
- If it's found, restart VS Code so it picks up the updated PATH.
- If it isn't found, install the CLI. On Windows:
irm https://claude.ai/install.ps1 | iex.
On macOS and Linux: curl -fsSL https://claude.ai/install.sh | bash
- If VS Code still can't find it, set
claudeCommand to the full path, e.g.
C:\Users\you\AppData\Roaming\npm\claude.cmd or /Users/you/.local/bin/claude.
On macOS, Claude Code keeps its login in the login Keychain. If switching reports that the
Keychain could not be read or updated, unlock the login keychain (Keychain Access) and try again.
Privacy and security
- No telemetry. The extension collects no data and sends nothing to its author, publisher,
or any third-party server.
- Network requests go only to Anthropic, for token refresh, usage limits, and identifying an
account (
/api/oauth/profile, the same call Claude Code makes after login).
- Credentials stay local. Saved accounts are kept in VS Code's encrypted SecretStorage.
Credentials are written only to local Claude Code config folders and are never logged.
- Anyone with access to your user profile can read Claude Code's credential files, so protect
your computer account.
- Use it only with your own accounts. The usage endpoint and the token refresh are unofficial
and may change on Anthropic's side at any time.
- Sidebar ad. The panel shows a small ad for BestJobFinder. It
loads nothing from the network; clicking it opens the site in your browser.
Development
Source: github.com/tursoft/account-manager-for-claude.
Requires Node.js 18+ and VS Code 1.85+. Run npm install first.
| Script |
What it does |
npm run compile / watch |
Development build, once or on every change |
npm run package |
Minified production build |
npm run typecheck |
Type-check with tsc (the build itself doesn't) |
npm run test:smoke |
Run the tests |
npm run build:vsix |
Build the installable .vsix |
npm run install:vsix |
Install the built .vsix into VS Code |
npm run deploy |
Build and install in one step |
npm run publish / release |
Check, then publish to the Marketplace (release also bumps the patch version) |
- Run and debug: open the folder and press F5 to start an Extension Development Host. Run
Developer: Reload Window there after changes, and Developer: Open Webview Developer Tools
to debug the pages. The development host uses your real Claude credentials, so be careful with
Switch, Remove, and logins.
- Webview code:
webview/*.js is bundled into dist/webview/, so rebuild after editing it.
Shared logic lives in src/.
- Install the
.vsix from VS Code, not by double-clicking it in Explorer: that may open
Visual Studio's installer, which can't install VS Code extensions.
Publishing
- Create a publisher at https://marketplace.visualstudio.com/manage. Its ID must match
publisher in package.json.
- In Azure DevOps (https://dev.azure.com), create a Personal Access Token with
Organization: All accessible organizations and the scope Marketplace → Manage.
- Run
npx vsce login <publisher-id>, or set the token in the VSCE_PAT environment variable.
Never commit it.
- Update
CHANGELOG.md, then run npm run publish or npm run release. Both stop if the type
check or tests fail.
To publish to Open VSX as well, run npx ovsx publish -p <token>.
Credits
Built on KrzysztofZander/claude-account-switcher
by Krzysztof Zander, which provided the original account-switching core. This version adds a
redesigned panel and UI/UX, usage analytics with capacity-utilization tracking, an availability
calendar, account proposals, and much more.
License
MIT

| |