# Claude Code や Codex のアカウントを複数使い、それぞれの残りを確認する方法

> HB Code の Settings › Agents で、Claude Code と Codex の各アカウントの残りを確認できます。アカウントを追加して Use を押すと、次のターンはそのアカウントで動きます。

HB Code の Settings › Agents には、Claude の各アカウントと ChatGPT の各サブスクリプションが、上限のウィンドウとともに並びます。使用するアカウントを選ぶと、次のターンはそのアカウントで動きます。

HB Code は Mac と Windows 向けのデスクトップアプリです。自分のコンピューターで、自分の Claude と ChatGPT のプランを使って Claude Code と Codex を実行します。

## 手順

1. デスクトップで Settings › Agents を開きます。Codex と Claude が並び、それぞれ使用中のアカウントの上限のウィンドウが表示されます。
2. Claude を選びます。Accounts カードにはアカウントごとに 1 行あり、上限のウィンドウごとにメーターが表示されます。
3. Add account を押し、ブラウザでサインインを完了します。
4. 使いたいアカウントの行で Use を押します。行に In use と表示され、次の Claude の run はそのアカウントを使います。
5. Codex を選びます。Subscriptions カードには ChatGPT アカウントごとに 1 行あります。Add subscription でもう 1 つサインインし、Use で次の Codex のターンに使うアカウントを選びます。

## 知っておくこと

- 実行中の run は、開始したときのアカウントのままです。
- アカウントを変えても会話は移動しません。どの Claude アカウントも同じセッションを読み、続けられます。
- サイドバーには、エージェントごとに、使用中のアカウントで最も残りが少ないウィンドウが表示されます。
- iPhone アプリと Android アプリも同じ上限のウィンドウを表示し、使用するアカウントもそこで選べます。アカウントの追加とサインインはデスクトップで行います。

## ハンドブックで詳しく読む(英語)

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

## ガイド

- [Claude Code や Codex の作業内容を確認する方法](https://www.hbcode.ai/ja/claude-code-ui.md)
- [Claude Code と Codex のセッションを複数実行する方法](https://www.hbcode.ai/ja/claude-code-sessions.md)
- [スマートフォンで Claude Code や Codex を使う方法](https://www.hbcode.ai/ja/claude-code-mobile.md)
- [HB Code をダウンロード](https://www.hbcode.ai/ja/downloads)
