Skip to content

levkropp/clawswapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clawswapper

A beautiful Rust TUI for switching between Claude accounts and API credentials.

No OAuth juggling. No logout dance. Smart, fast, deliberate.

Features

  • Smart detection — compares live credentials.json against saved profiles; knows which account is active without trusting stale state
  • OAuth & API key profiles — manages both Claude.ai logins and .claude.json API key configs
  • Token expiry display — decodes JWT exp field and shows "exp in 3d", "✗ expired", etc.
  • Save unsaved sessions — detects unrecognised credentials and offers to name and save them
  • Two-pane detail view — email, expiry, last-used, masked API key, file path
  • Quick switch [1–9] — jump to any profile by number, confirm with Enter
  • Search [/] — filter profiles by name instantly
  • Rename [r], reorder [Shift+J/K], help [?]

Install

Linux (AppImage)

chmod +x clawswapper-linux-x86_64.AppImage
./clawswapper-linux-x86_64.AppImage

Windows

Run clawswapper-windows-x86_64.exe in Windows Terminal or PowerShell.

Build from source

cargo build --release
./target/release/clawswapper

Requires Rust 1.70+.

How it works

  1. Log in with claude login for each account you use
  2. Open clawswapper, press [a] to add the current session as a named profile
  3. Repeat for each account
  4. Use clawswapper to switch between them — it swaps ~/.claude/credentials.json (OAuth) or ~/.claude/.claude.json (API)
  5. If tokens expire, clawswapper guides you through claude login and re-captures the new credentials

Credentials are stored in ~/.clawswapper/profiles/.

Keybindings

Key Action
/ k Navigate up
/ j Navigate down
Enter Switch to selected profile
19 Quick switch to profile N
/ Search/filter profiles
a Add new profile
d Delete selected profile
r Rename selected profile
s Save unsaved session
Shift+K Move profile up
Shift+J Move profile down
? Help overlay
q Quit

License

MIT

About

Claude credential profile switcher — manage multiple Claude accounts and API keys from a beautiful Rust TUI

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages