yoink vs claude-swap
Last checked against claude-swap v0.26.0. Spotted something out of date? Open an issue.
claude-swap calls itself a "multi-account switcher for Claude Code": it saves accounts with cswap add, shows each one's 5-hour and 7-day usage, and can switch on its own near a limit. yoink switches Claude Code accounts too, without usage tracking, and adds ChatGPT (Codex), Kimi Code, Gemini and Copilot logins plus API-key providers in 13 coding agents.
On this page
How each one switches a Claude account
Both tools save a Claude Code login once and restore it later without a browser sign-in, and both use the macOS Keychain on a Mac and files elsewhere.
- claude-swap. Log in with an account, run
cswap add, log in with the next one and runcswap addagain.cswap switchrotates to the next account, andcswap switch 2or an email or alias picks one. Its README says a switch holds Claude Code's own credential locks while writing, so it never interleaves with a token refresh. - yoink.
yoink addsaves the live login and runsclaude auth login --claudeaifor the next account.yoink workoryoink use workswitches. Before each switch, yoink re-saves the live credential into the active profile, then writes the target credential and itsoauthAccountblock in~/.claude.json. How it works has the sequence.
Feature by feature
| Feature | claude-swap | yoink |
|---|---|---|
| Save and switch several Claude Code accounts | Yes | Yes |
| 5-hour and 7-day usage display | Yes | No |
| Switches on its own near a limit | Yes | No |
| Two accounts at once, one per terminal | Yes | No |
| ChatGPT (Codex), Kimi Code, Gemini, Copilot logins | Not documented | Yes |
| API-key providers written into other coding agents | Not documented | Yes |
| macOS menu bar | Yes, with the menubar extra | Yes, a separate app |
| Windows | Yes | Yes |
| JSON output for scripts | Yes | Yes |
| Needs a language runtime | Yes, Python 3.12 or later | No, a single binary |
| License | MIT | MIT |
Choose claude-swap if
- You only use Claude Code and want to see each account's usage at a glance.
- You want switching to happen for you as an account nears its limit, which is what
cswap autodoes. yoink only switches when you ask it to. - You run two accounts at the same time in separate terminals.
- You already use
uvorpipxfor Python tools.
Choose yoink if
- You also use Codex, Kimi Code, Gemini or GitHub Copilot and want one tool for every login.
- You want one API key, from OpenRouter, DeepSeek, Ollama or any compatible endpoint, written into several coding agents.
- You prefer a single binary with no runtime, from the install script or PowerShell (or
npm install -g yoink-cli, if you already have Node).
Can you use both?
Yes, with one rule: pick one of them for Claude Code accounts. Both rewrite the same live Claude Code credential, and each keeps its own saved copies, so switching with one leaves the other's idea of the active account out of date. A setup that works is claude-swap for Claude accounts and usage, and yoink for providers and the other vendors' logins.
FAQ
Which one lets me run two Claude accounts at the same time?
claude-swap, through its session mode, which gives each terminal its own account. yoink keeps one live Claude Code login at a time, because a switch rewrites the shared credential, so every new session starts on the account you switched to last.
Can claude-swap connect an OpenRouter key to opencode?
Its README does not document writing API-key providers into other coding agents. yoink does this with yoink add and yoink connect openrouter --to opencode.
Related
- Switch between Claude Code accounts
Keep a work and a personal Claude Code account and switch in one command. yoink swaps the Keychain entry or .credentials.json and the oauthAccount block.
- How it works
How yoink switches Claude Code accounts: the Keychain entry or .credentials.json, the oauthAccount block in ~/.claude.json, and the re-snapshot step first.
- Claude Code account switchers compared
An honest comparison of claude-swap, clauth, swapdex, Claude Switcher, CCSwitcher and yoink: platforms, other tools, usage display, auto-switch, license.
- yoink vs CC Switch
CC Switch is a GUI-first desktop app with a routing proxy and many presets. yoink is a terminal-first CLI that writes native configs for 13 coding agents.
- yoink vs clauth
clauth is a deep Claude Code account manager with usage bars, auto-switch and parallel sessions. yoink is broader: five vendors' logins plus API keys.