Claude Code on several $20 accounts, with claude-swap
How I keep long Claude Code sessions going by spreading them across a few $20 Pro accounts, and the small tool that switches between them before a limit hits.
Abdullah Abdul Samad, . A 2 minute read.
Claude Code is my main way of building now. I keep it running in a terminal for most of the day, often with an agent in each of three or four repositories at once. That’s a lot of usage, and it raises the obvious question: one expensive plan, or something else?
What I do is run several $20 Pro accounts and let a small tool move between them.
The problem with one account
Every plan has a usage window: a limit that resets every five hours, and a weekly one on top. On a heavy day I hit the five-hour limit in the middle of something. The agent stops, I lose the thread, and I either wait or switch accounts by hand.
Switching by hand is worse than it sounds. You log out, log in again with the other account, and the session you were in has to pick up where it left off. Do that three times a day and it adds up.
claude-swap
claude-swap is an open-source command-line tool that keeps several Claude accounts on one machine and switches between them without logging out. I install it with uv:
uv tool install claude-swap
You sign in to Claude Code with your first account and run cswap add, then sign in with the next one and run cswap add again. After that:
cswap listis a dashboard: every account, its plan, how much of the five-hour and weekly windows is used, and when each resets.cswap switchmoves to the next account, or to a specific one.cswap autowatches usage and switches for you once the active account reaches 90% of a window, to whichever account has the most left. It’s safe to run while Claude Code is working.
On Linux the new account is picked up straight away, so the session carries on.
How my day runs
My agents run in Herdr, one tab per task, and claude-swap sits underneath them. When an account gets close to its limit, the next one takes over, and cswap list tells me at a glance where every account stands.
Managing several accounts used to mean logging in and out. Now it’s one command, or none, and my monthly cost stays at a few $20 plans instead of one large one.
Why bother writing this down
Because the tool is small and the difference is big. Most of what makes coding with an agent pleasant is not the model, it’s everything around it: a terminal that keeps track of every agent, notes the agent can read before it starts, and not getting cut off halfway through a change. claude-swap is one of those quiet pieces.