DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to switch between Codex accounts and API-key sign-ins with Janus

Save each Codex sign-in, including separate ChatGPT plans and API keys, and swap them from the menu bar.

Short answer: Install Janus with brew install --cask --no-quarantine ramitvishwakarma/tap/janus, then open it and go to the Codex tab; then save the account Codex is currently signed into, then delete ~/.codex/auth.json without running any logout command; run codex login as the next account, then save that account in Janus. All steps.

Credentials. Janus saves entire Codex auth.json files, including tokens, to the login keychain, so treat the Mac as holding live OpenAI sign-ins.

Who it is forA developer who uses Codex with a personal ChatGPT plan, a team workspace, and an API key.

The problemCodex keeps one sign-in in a single file, so moving between accounts means logging out and logging in again.

The outcomeEach Codex sign-in is saved and listed separately, and switching is one click after you quit Codex.

What you need first

  • A Mac running macOS (the README says macOS only)
  • Claude Code or Codex installed and signed in to at least one account
  • Homebrew, or a manual download of the latest .dmg from Releases
  • Xcode Command Line Tools if you build from source

Steps

  1. Install Janus with brew install --cask --no-quarantine ramitvishwakarma/tap/janus, then open it and go to the Codex tab.
  2. Save the account Codex is currently signed into, then delete ~/.codex/auth.json without running any logout command.
  3. Run codex login as the next account, then save that account in Janus.
  4. Quit Codex before switching, since a running Codex can write the old sign-in back over the new one.
  5. Switch to the account you need from the Codex tab and reopen Codex.

Prompt for your agent

Using the Janus repo at RamitVishwakarma/Janus, explain how to save each Codex sign-in on this Mac, including ChatGPT and API-key accounts, and switch to <target account email or key suffix>. Report the saved Codex accounts with their plan or key suffix. Verify that the live file at ~/.codex/auth.json now belongs to the target account.

Caveat. The README says not to use codex logout for this, because it revokes the sign-in at OpenAI and the saved copy stops working.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for RamitVishwakarma/Janus and "Switch between Codex accounts and API-key sign-ins"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer