RamitVishwakarma / Janus
git clone https://github.com/RamitVishwakarma/Janus.git
v1.2.1 · 18d ago
Switch between Claude Code accounts and clear developer caches, from the macOS menu bar.
+0
stars, 24h · #37,047
+~0
stars, 7 days · #42,517
+123
stars, 30 days · #5,860
123
★ total
12
forks · 0 open issues
Star history (as recorded here)
LanguageSwift
LicenseMIT
Created2026-09-25 (28d ago)
Last push18d ago
Watchers0
OwnerUser
GitHub topics
Links
- GitHub: github.com/RamitVishwakarma/Janus
- Homepage: https://janus.ramitvishwakarma.in/
- Releases · Issues · Hacker News mentions
README excerpt
# Janus A small macOS app for people who keep more than one Claude Code or Codex account, and who have noticed how much disk the tools they use every day quietly hold onto. One click moves the live session, and the account it displaces is saved first. It does three things, one tab each: - **Switches Claude Code accounts.** Signing in as another account normally means signing out first and typing the whole thing again. Janus saves each account's session and puts it back on demand, so the second account is one click away instead of one login away. - **Switches Codex accounts.** The same, for OpenAI's Codex, in a tab of its own. See Codex. - **Clears developer caches.** A list of directories that are safe to delete, measured and shown with what each one costs to lose. Everything goes to the Trash rather than being deleted, so any decision can be taken back. ## Install With Homebrew: [code] Or download the latest `.dmg` from Releases, open it, and drag Janus to Applications. The build is universal, covering Apple silicon and Intel. The app is signed ad-hoc rather than with a paid Apple Developer certificate, so macOS quarantines it on first launch and says the developer cannot be verified. `--no-quarantine` tells Homebrew to skip that flag. After a download by hand, clear it once: [code] To have it start with the Mac, add it under System Settings → General → Login Items, or: [code] ### Build it yourself Needs the Xcode Command Line Tools (`xcode-select --install`). Xcode itself is not required. [code] ## Using it Janus cannot sign in for you, so the first account has to be signed in already. Press **Save current account** and it is captured. For the second: sign out of Claude Code, sign in as the other account, come back, and press **Save current account** again. From then on both are in the list and switching between them is one click, or `⌘S` from the menu bar. The menu bar item shows which account is live. The window shows both accounts with how much of their five-hour and weekly limits each has spent. That is the number to look at when the decision you are making is *which account has room left*. ## Where the usage figures come from Claude Code asks Anthropic for your limits while a session is running and writes the answer into its own settings file. Janus reads that file for nothing, which is what every row shows to begin with. For the account that is signed in, those figures are as current as your last session. For an account that is not, they are whatever it had spent at the moment you switched away — frozen, and increasingly wrong the longer it sits there. **Refresh** goes and asks. It calls Anthropic's usage endpoint once per account, with the tokens that account already has saved, and shows what comes back. That is the only network request Janus makes for Claude, it goes nowhere but `api.anthropic.com` and `platform.claude.com`, and nothing is sent that is not the account's own credentials. The Codex tab's equivalent is descri