# How to switch Claude Code and Codex accounts without logging out

> Add each Claude account and ChatGPT subscription to HB Code once. Then press Use, and the next turn runs on that account. No 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.

Updated November 20, 2026

## Steps

1. Open Settings › Agents on the desktop. Select Claude.
2. Press Add account. Finish the Claude sign-in in your browser. The new account is in use right away.
3. Select Codex. Press Add subscription. Finish the ChatGPT sign-in in your browser.
4. 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.
5. 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.
6. 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.

## Details in the handbook

- [Accounts, limits, and usage history](https://www.hbcode.ai/docs/agents.md#limits): How Codex and Claude share one chat layer
- [Accounts and usage](https://www.hbcode.ai/docs/claude-agent-sdk.md#accounts): The Claude Agent SDK integration
- [Profiles and sign-in](https://www.hbcode.ai/docs/codex-app-server.md#accounts): The Codex app-server integration
- [Limits, usage, and switching accounts](https://www.hbcode.ai/docs/setup.md#agents): Setup: sign-ins, regions, and remote access

## Guides

- [How to check usage limits and use more than one account](https://www.hbcode.ai/claude-code-usage-limits.md)
- [How to check what Claude Code or Codex did](https://www.hbcode.ai/claude-code-ui.md)
- [How to run several Claude Code and Codex sessions](https://www.hbcode.ai/claude-code-sessions.md)
- [How to use Claude Code or Codex on your phone](https://www.hbcode.ai/claude-code-mobile.md)
- [How to see what the subagents of Claude Code do](https://www.hbcode.ai/claude-code-subagents.md)
- [How to try Claude Code and Codex on the same task](https://www.hbcode.ai/claude-code-vs-codex.md)
- [How to run Codex in a desktop app on Mac and Windows](https://www.hbcode.ai/codex-desktop-app.md)
- [How to let Claude Code write and Codex review the change](https://www.hbcode.ai/claude-code-codex-review.md)
- [How to use Claude Code and Codex on Windows](https://www.hbcode.ai/claude-code-windows.md)
- [How to use Claude Code and Codex from an Android phone](https://www.hbcode.ai/claude-code-android.md)
- [How to run Claude Code in a desktop app on Mac and Windows](https://www.hbcode.ai/claude-code-desktop-app.md)
- [How to get a phone alert when Claude Code or Codex needs you](https://www.hbcode.ai/claude-code-notifications.md)
- [How to continue a Claude Code terminal session on your phone](https://www.hbcode.ai/claude-code-resume-session.md)
- [How to keep your computer awake while Claude Code or Codex works](https://www.hbcode.ai/claude-code-keep-computer-awake.md)
- [How to monitor your Claude Code and Codex usage over time](https://www.hbcode.ai/claude-code-usage-monitor.md)
- [Download HB Code](https://www.hbcode.ai/downloads)
