3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ChatGPT Codexに接続するGitHubアカウントを切り替える

3
Last updated at Posted at 2025-06-29

課題

ChatGPTのCodexは、2025年6月現在、
同時に 1 つの GitHub アカウントしか接続できない という制限があります。
Organizationは複数接続できるようです。

「社用アカウントと個人アカウントを行き来したい」などのシーンで使う備忘録です。

症状

実施したいこと

  • Codexでこれまで使っていたGitHubアカウント(アカウントA)とは異なるGitHubアカウント(アカウントB)を指定して環境を作成したい

上手くいかないこと

  • 指定したアカウントBのレポジトリが、Codexの「環境を作成 -> GitHub組織」のプルダウン選択でリストに出てこない
  • GitHub側でアカウントA, アカウントBにChatGPT Connectorがインストールされていることは確認できる

Trouble Shooting:GitHub 側でログインアカウントを切り替える

  1. Codexの「環境を作成 -> GitHub組織 -> GitHubアカウントを追加する」
  2. (念のため)ChatGPT側のGitHubコネクタを一度削除して再度接続する
    「設定 -> コネクタ -> GitHubコネクタ」から削除 -> 再度GitHubコネクタを接続
  3. GitHub側で、アカウントBからサインアウトして元のアカウントAにサインインする
    (流れが逆なので注意)
  4. Codexに戻ると、プルダウン選択のリストに出てくるGitHubアカウントがアカウントBに切り替わっている

💡 ポイントは 「ChatGPT 画面で何か設定を消す」のではなく、GitHub 側でログイン状態を切り替える こと。

Disclaimer

  • 実際に試してみてそうだった、という経験談なので、もし間違いあればご指摘ください。
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?