Article
Switching AI Coding Accounts Without the Logout Dance
Tired of logging in and out of your AI coding tools? Learn how to effortlessly switch between multiple accounts like Copilot & Cursor without the logout dance. Boost your developer productivity!

The problem
If you use more than one account for AI coding tools — personal Cursor, work Cursor, a side-project Claude Code login, Codex on another ChatGPT account — you know the drill:
Sign out
Sign in again
Wait for OAuth
Hope the app actually picked up the new session
Repeat tomorrow
Each tool stores auth differently. Cursor and VS Code use SQLite (state.vscdb). Claude Code splits tokens and account metadata across Keychain and ~/.claude.json. Codex uses ~/.codex/auth.json. None of them ship a “switch profile” feature.
I built cursor-account-switcher to fix that: save sessions as named profiles, swap them in one command, optionally restart the host app.
What it does
cursor-switch is a small Go CLI that:
Saves the current auth session under a profile name (
personal,work, etc.)Restores a saved profile into the live auth store
Force-quits and relaunches apps that need it (Cursor, VS Code)
Leaves CLI-only tools alone (Claude Code, Codex) — no restart needed
Everything stays local under ~/.cursor-account-switcher/. No cloud, no account server.
Supported platforms
PlatformProfile storageRestarts app?Cursorstate.vscdb auth keysYesClaude CodeOAuth tokens + ~/.claude.json accountNoCodex~/.codex/auth.jsonNoVS Code / Copilotstate.vscdb + KeychainYes
Each platform has its own account list and saved profiles. Switching Claude doesn’t touch your Cursor profiles.
The dashboard TUI
Run cursor-switch with no args and you get a full-screen dashboard: