Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude Away ConnectorNew to Visual Studio Code? Get it now.
Claude Away Connector

Claude Away Connector

smith89k

| (0) | Free
Give each VS Code or Antigravity window its own Claude account, see your Claude Code usage, and connect Claude Away. Not affiliated with Anthropic.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Away Connector

The VS Code (and Antigravity) side of Claude Away. Not affiliated with Anthropic.

  • Gives each window its own Claude account, with the 5-hour and weekly usage in the status bar and the side panel.
  • Lists your Claude sessions and jumps to them.
  • Lets Claude Away take a conversation over to your phone and hand it back: the Claude tab closes neatly and opens again.

Install

Install Claude Away Connector from the VS Code Marketplace or Open VSX (search for "Claude Away Connector"), or install the .vsix file with Extensions: Install from VSIX….

Moving from Claude Swap Status 1.x

The per-window accounts, usage and Claude Away handoff used to be part of Claude Swap Status 1.x. They live here now. Your accounts, icons, sign-ins and shared history stay where they are (~/.claude-accounts), so there is nothing to set up again. Do it in this order, so each window keeps its account:

  1. Install Claude Away Connector while Claude Swap Status 1.1 is still installed.
  2. Open every project that uses its own account once, with both installed. Each window takes its account over from Claude Swap. If the Connector asks to reload the window, click Reload. (VS Code keeps a window's account per project, so a project you don't open now starts on your main account later; pick its account again with Use Account in This Window.)
  3. Then update Claude Swap Status to 1.2 (its older, cswap-based version) or remove it, and reload your windows once. Use only one of the two.

Your Claude Swap settings (claudeSwap.pollIntervalMinutes, claudeSwap.confirmBeforeReload) are copied to the Connector's (claudeAway.…) the first time it starts.

How it works

  • Your normal Claude login is your main account, marked with a crown 👑. It starts as Claude 1, and every window uses it until you pick something else.
  • Accounts you add start as Claude 2, Claude 3, and so on. You can rename any account, the main one included, and the new name replaces the starting one.
  • Accounts you add can wear an icon too, so you can tell them apart at a glance. Pick one of 10 (star, heart, rocket, flame, lightning bolt, briefcase, house, coffee cup, flask or gem) with the star button on the account's card, or with Claude Away: Change Account Icon. Each icon has its own colour in the panel (a blue star, a red heart, a purple rocket, and so on), the same colours Claude Away uses on your phone. The crown always stays with the main account.
  • Each extra account gets its own Claude folder inside ~/.claude-accounts.
  • Each window remembers which account it uses. When the window opens, the extension tells Claude in that window to use that account's folder, before Claude starts. Terminals in that window get the same account.
  • Your settings, plugins, skills, memory and chat history are shared with every account. Only the login is different.

Add an account

  1. Click the Claude Accounts icon in the Activity Bar, then Add account. (Or run Claude Away: Add Account from the Command Palette.)
  2. The window reloads, and the Claude panel asks you to sign in. Sign in with the other account.
  3. The new account appears with the next free number, like Claude 2. Rename it whenever you like, for example to work.

Switch a window's account

Click the status bar item and pick an account, or click Use here next to an account in the side panel. Only that window reloads. Your other windows keep their accounts.

Switching reloads the window, so let Claude finish what it is doing first.

The side panel

  • This window shows the account this window uses, with its 5-hour and weekly meters.
  • The small tick on each meter shows how much of that time window has already passed. If the bar reaches past the tick, you are using that limit faster than time is passing.
  • Other accounts shows every other account, its usage, and which windows it is open in. Click Use here to switch this window to it.
  • Hover an account to change its icon (the star button), rename it or delete it.
  • The button at the right end of the tab row (a window with a round arrow) reloads this window. It asks first, like switching accounts does. The round arrow in the panel's title bar only refreshes the numbers and session lists.
  • The main account 👑 can be renamed but not deleted, because its folder is Claude's own (your settings and chat history live there). Its delete icon is greyed out.
  • Deleting the account this window uses switches the window to your main account and reloads it first, then deletes the account.
  • The panel fits any sidebar width. On a narrow sidebar the buttons move under the name and the reset times move into the tooltip.

The Sessions tab

The side panel has two tabs: Accounts and Sessions. The Sessions tab lists every Claude session running on this PC, from every account, in your editor windows, in terminals, and in the Claude app.

  • Sessions are grouped as Waiting for you, Working and Idle, with the ones waiting for you at the top.
  • Each row shows the project, the session's name, its account (👑 for the main account), where it runs, and for how long.
  • Click a row to jump to it:
    • In this window, its Claude tab opens.
    • In another window, that window comes to the front and shows the chat, or the terminal it runs in.
    • In the Claude app or a terminal outside the editor, the row only tells you where it is. The extension never opens a new window to get there.
  • The list updates every few seconds while the side panel is open.

All or Active

A switch at the top of the Sessions tab picks what to show:

  • Active (the default) lists only the sessions that are running.
  • All lists the running ones first, then finished sessions from the last 30 days, grouped as Today, Yesterday, Earlier this week and Older. A finished session has a hollow dot.
  • Click a finished session to reopen it in a Claude tab in this window. This works when the session was made in this window's folder with this window's account. Otherwise, the row tells you what to do: switch the window's account, open that folder, or reopen it in the Claude app.
  • The panel remembers your choice. Finished sessions are only read, never changed.

Claude Away handoff

Claude Away is a separate tray app that lets you answer Claude from your phone while you're away. When it takes a conversation over, and when it hands it back, this extension looks after the Claude tab in VS Code:

  • Take over: the conversation's Claude tab closes neatly, as if you closed it yourself, instead of showing "Claude Code process exited with code 1".
  • Hand back (you turn Away off): the conversation opens again in a fresh Claude tab, with everything you sent from the phone in it, ready to type in. A conversation that ran in a terminal starts again with claude --resume in that same terminal, or in a new terminal in its folder if that one was closed.
  • It never closes a tab while Claude is working in it, and it never opens a second copy of a conversation. If the conversation was already reopened, it leaves it alone.
  • The window holding the conversation's folder does it, for the account the conversation belongs to. If no window has that folder open when Claude Away hands it back, the conversation opens when you open that folder within 5 minutes.
  • If the conversation is in the Claude sidebar instead of a tab, take over works the old way.

Claude Away leaves small request files in ~/.claude-accounts/handoff/, and this extension removes them once they're handled or too old.

The status bar

👤 work | 5h: █░░░░ 25% R:3h12m | 7d: █░░░░ 16% R:1d4h
  • The main account shows 👑 instead of 👤. An added account with an icon shows its icon instead.
  • 5h is your 5-hour usage limit, and 7d is your weekly limit.
  • R: is how long until that limit resets (45m, 3h12m, 1d4h).
  • Hover over it to see the email, plan and exact reset times.
  • A clock icon (🕒) at the end means the numbers are the last known ones. Hover to see how old they are.

The status bar changes colour so you notice before you run out:

Usage Colour
Below 70% Normal
70% or more Yellow
85% or more Red

Commands

Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type Claude Away Connector:

Command What it does
Claude Away: Switch Account Pick the account for this window.
Claude Away: Add Account Add a new account. The window reloads so you can sign in.
Claude Away: Use Account in This Window Same as Switch Account, without the extra menu items.
Claude Away: Switch This Window to the Main Account Put this window back on your normal login.
Claude Away: Rename Account Give an account a new name, like "work".
Claude Away: Change Account Icon Pick an icon for an added account, or take it off.
Claude Away: Delete Account Delete an account you no longer use.
Claude Away: Refresh Usage Update the usage numbers and the session lists right now.
Claude Away: Reload Window Reload this window, like switching accounts does. Also the button at the top right of the panel.
Claude Away: Open Accounts Panel Show the side panel.
Claude Away: Jump to a Claude Session Pick a running Claude session and jump to it.

Settings

Setting Default Description
claudeAway.pollIntervalMinutes 1 How often to check usage, in minutes (minimum 0.5).
claudeAway.confirmBeforeReload true Ask before reloading a window to switch its Claude account.

Good to know

  • Windows only: your settings.json, CLAUDE.md and keybindings.json are copied into each account's folder when a window opens. Make changes to them in a window on your main account; a change made in an account window is replaced the next time it opens. On macOS and Linux they are shared directly.
  • Claude in Chrome works only in windows that use the same claude.ai account as the Chrome extension. Your Chrome extension is usually signed in to your main account, so windows on other accounts can't use Chrome tools. To use Chrome with another account, sign the Chrome extension in to that account, then type /chrome in Claude in that window to turn it on. Windows on your main account lose Chrome until you sign the extension back in.
  • Deleting an account removes only that account's folder in ~/.claude-accounts. Your shared chat history, memory and settings stay where they are.
  • Usage numbers come from an unofficial Claude endpoint, so they could stop working if Anthropic changes it.
  • Logins are kept fresh safely. Claude renews the login of any account that is in use. The extension only renews a login when no window and no Claude session is using that account, so nobody gets signed out.
  • Remote windows (SSH, WSL, dev containers) are not supported yet.
  • Jumping to another window needs that window to run this version of the extension. If a session shows "outside the editor" but is open in a window, reload that window once.

Troubleshooting

Claude in a window still uses the old account

Reload the window (run Developer: Reload Window). If it keeps happening, check that claudeCode.environmentVariables in your settings does not set CLAUDE_CONFIG_DIR. That setting applies to every window, so each window can't have its own account while it is there. The extension warns you if it finds it.

An account says "Not signed in yet" or "Sign-in expired"

Click Sign in (or Sign in again) next to it in the side panel. The window switches to that account, and you can sign in from the Claude panel by typing /login.

The numbers say "Last known" or show a clock icon

The extension couldn't check usage just now, for example because the login is being renewed. The numbers update on the next check. Nothing to do.

"Checked too often, trying again soon"

The usage service asked for fewer checks. The extension waits as asked and tries again on its own. If you see this often, raise claudeAway.pollIntervalMinutes.

Development

The Connector is built from the Claude Away repository: its code is in src/connector, shared code in src/shared, tests in src/test/connector.

  1. Run pnpm install.
  2. Run npm test for the unit tests (Claude Away's and the Connector's).
  3. Run pnpm connector:package to build connector/claude-away-connector-<version>.vsix.

Credits

  • claude-swap by realiti4. Claude Swap Status, where this code started, used to be an add-on for it, and the way it finds, locks and renews Claude logins follows claude-swap's careful work. Thank you.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft