Skip to content

v0.16.0

Choose a tag to compare

@realiti4 realiti4 released this 03 Jul 12:55

What's Changed

  • Auto-switch: cswap auto — switch accounts before hitting rate limits by @realiti4 in #81
  • feat: add --share-history flag to cswap run for unified conversation history by @maddada in #80
  • Use OS-native TLS trust via truststore to fix inactive-account token refresh on Windows by @realiti4 in #78

Automatic switching (new)

cswap auto watches your usage and switches for you: when the active account's 5-hour or 7-day window reaches the threshold (default 90%), it moves to the account with the most quota left — before you hit the limit, and safe to run while Claude Code is working. --once does a single cron-friendly check, --json emits a machine-readable event stream, and --dry-run shows what it would do without switching. Defaults are configurable via settings.json in the backup root. See the README for details.

Manual switching got safer too: every switch now cooperates with Claude Code's own credential locks, so a swap can never collide with a token refresh in a running session.

Shared conversation history for session mode (new)

cswap run 2 --share-history shares your chat history with the session account — a conversation started under one account shows up in --resume under the others, and nothing already saved is lost. Not supported on Windows yet.

New Contributors

Full Changelog: v0.15.1...v0.16.0