How to switch Claude Code and Codex accounts without logging out
Sign in to each Claude account and ChatGPT subscription once, in Settings › Agents. Then press Use on one, and the next turn runs on it. Your projects and sessions stay in the sidebar. Handy when one account hits its weekly limit in the middle of the week.
HB Code is a desktop app for Mac and Windows. It runs Claude Code and Codex on your own computer with your own Claude and ChatGPT plans.
Steps
- Open Settings › Agents on the desktop. Select Claude.
- Press Add account. Finish the Claude sign-in in your browser. The new account is in use right away.
- Select Codex. Press Add subscription. Finish the ChatGPT sign-in in your browser.
- Read the meters on each row. Claude shows 5h, Weekly, and the weekly limit of each model. Codex shows 5h and Weekly. Each meter shows what is left and when it resets.
- Press Use on the row of the account that you want. The row shows In use, and the next turn of that agent runs on it.
- On the iPhone or Android app, open Settings › Agents. Choose Claude or Codex. Tap an account to make it the one in use.
Notes
- A turn that is already running stays on the account it started on. The switch applies from the next turn.
- Any of your Claude accounts can open and continue the same Claude sessions. A Codex session continues on whichever subscription is in use.
- When the account in use reaches its limit, a banner asks you to choose another account. HB Code doesn't switch by itself.
- The thread doesn't show which account a turn ran on. Settings › Agents and the sidebar show the account in use now.
- Adding, signing out, and removing accounts happens on the desktop. The phone picks from the accounts that the desktop already has.
Questions
- Do I have to log out to use my second Claude account?
- No. Both accounts stay signed in. Press Use on the second one in Settings › Agents, and the next Claude turn runs on it.
- Does switching accounts clear my projects or sessions?
- No. HB Code keeps its own list of projects and sessions. A switch changes only the account that pays for the next turn.
- Can I see the limits of every account?
- Yes, on the desktop. Each account in Settings › Agents has its own meters. The sidebar shows the tightest limit of the account in use. The phone shows the full limits of the account in use.
- Does HB Code move to another account when I hit a limit?
- No. It shows a banner, and you choose the next account yourself.
- Can I switch accounts from my phone?
- Yes. Open Settings › Agents in the iPhone or Android app and tap the account. To add an account, sign in on the desktop.