codex-multi-profile

by Hung2124Verified

Windows Codex Desktop multi-account via AuthSwap. Shared workspace, separate ChatGPT logins.

93
Stars
87
Forks
PowerShell
Language
8/24/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/Hung2124/codex-multi-profile

Getting Started

Guides for using skills like codex-multi-profile.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Codex Multi-Profile

Unofficial helper. Not affiliated with OpenAI. Needs Codex Desktop from the Microsoft Store.

Pick an account

After install, open Codex Accounts on the Desktop. That is the product: a dark account list (name, masked email, last-used, depleted, sticky paths). Click a row or press Enter to launch that login via AuthSwap.

If a Codex window is already open, the app closes it and switches to the saved login. No password prompt when auth.json is present and not poisoned. First-run sign-in still happens inside Codex (this app does not collect a ChatGPT login).

Agents keep using the CLI: pool / stick / route / depleted.

Install

One command. It downloads this repo and runs the Windows installer (AuthSwap + Codex Accounts):

irm https://raw.githubusercontent.com/Hung2124/codex-multi-profile/main/install.ps1 | iex

Until 0.2.0 is merged, that main URL still installs 0.1.4. Use the PR branch:

irm https://raw.githubusercontent.com/Hung2124/codex-multi-profile/feature/windows-codex-accounts-app/install.ps1 | iex

That is the Windows counterpart of b-nnett/codex-subscription-router curl | bash -- without patching ChatGPT.exe or unpacking app.asar.

  • Install Codex Desktop and sign in once (main account) if you have not already.

  • Close every Codex window.

  • Run the one-liner above (or clone + scripts\Install-CodexMultiProfile.ps1).

Desktop shortcuts

Shortcut What it does

Codex Accounts See every login. Click / Enter to open that profile

Codex1 Jump straight to the first secondary account

Codex Main Restore the original account and open Store Codex

Codex Profiles Legacy text picker

Rule: close one Codex UI before opening the other.

From a git clone instead of the one-liner:

git clone https://github.com/Hung2124/codex-multi-profile.git
cd codex-multi-profile
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\Install-CodexMultiProfile.ps1

Quick check after install:

$m = "$env:LOCALAPPDATA\CodexParallelDesktop\CodexProfile.ps1"
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action doctor
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action verify
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action pool

Routing

Humans: open Codex Accounts. Agents: CodexProfile.ps1 -Action route (and pool / stick / depleted).

Windows routing in the spirit of b-nnett/codex-subscription-router. Still one Codex window because AuthSwap uses a single ~\.codex\auth.json. Full table: docs/router.md.

Situation Behaviour

New chat / new folder Least-recently-used non-depleted profile

Follow-up in the same git repo or workspace Sticky owner

Sticky owner marked depleted Fail over to another non-depleted profile

Every profile depleted One combined message (masked emails). Nothing launches

A Codex window is already open Print the choice. Do not open a second window

$m = "$env:LOCALAPPDATA\CodexParallelDesktop\CodexProfile.ps1"
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action pool
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action stick -Name codex1
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action route
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action depleted -Name codex1
powershell -NoProfile -ExecutionPolicy Bypass -File $m -Action depleted -Name codex1 -Disable

Use only authorized personal / work accounts you own. Marking depleted is a local flag. This is not a quota-bypass product and not a live multi-account mux.

Purpose and acceptable use

This repository is a local, open-source utility for Windows developers who already hold multiple authorized ChatGPT accounts (for example personal and work) and need to switch between them in Codex Desktop while keeping one shared workspace.

It is not intended for:

  • sharing one paid subscription across people or machines

  • bypassing rate limits, quotas, or billing

  • automating sign-in, scraping, or unofficial API access

  • any use that violates OpenAI Terms of Use

Use only accounts you own or are explicitly allowed to use. Changes that enable abuse are out of scope (CONTRIBUTING.md).

The problem

A second CODEX_HOME often does not switch accounts. The Desktop app-server still reads ~\.codex\auth.json, so you land on the main ChatGPT user.

You try... What actually happens

Copy ~\.codex + set CODEX_HOME UI still shows the main account

Start-Process with $env:CODEX_HOME Env is dropped -> wrong account

Run ChatGPT.exe from WindowsApps Access Denied

Launch Codex.exe Process exits with code 1

AuthSwap keeps sessions, skills, MCP, and memories in ~\.codex. Only auth.json moves for the profile window, then restores on close.

Usage

Set $root once, then call the actions you need:

$root = "$env:LOCALAPPDATA\CodexParallelDesktop"
$m    = "$root\CodexProfile.ps1"

Goal Command

Open the account picker ...\Show-CodexAccountApp.ps1 (or -Action accounts)

Open secondary account ...\Launch-CodexProfile.ps1 -Name codex1

Restore main + Store app ...\Launch-CodexMain.ps1

Create codex2 -Action new -Name codex2

List / status / doctor -Action list / status / doctor

Pool / stick / route / depleted -Action pool / stick / route / depleted

Repair stale AuthSwap lock -Action repair

Install file sync check -Action sync-check

JSON status -Action status -AsJson

Running processes -Action processes

Diagnostic bundle -Action diagnostics

Verify install -Action verify

Remove a profile -Action remove -Name codex2 -Force

Optional clone layer -Action layer / layer -Disable

Optional ChatGPT Web models -Action models / models -Disable

Safe bug-report log ...\Redact-LaunchTrace.ps1

Update from git clone .\scripts\Update-CodexMultiProfile.ps1

Existing 0.1.4 launch (Codex1 / Codex Main / doctor / verify / AuthSwap) is unchanged until you opt in to router, layer, or models.

Tests (no Codex UI required):

powershell -NoProfile -ExecutionPolicy Bypass -File .\tests\Run-All.ps1

Optional extras (off by default)

  • Layer -- badge, wider transcript, keep details open on the cloned ChatGPT.exe only. docs/layer.md

  • ChatGPT Web models -- write ~\.codex\config.toml (UTF-8, no BOM) with chatgpt-web/luna|light|medium|high|xhigh|pro pointing at a local Responses bridge you already run on 127.0.0.1 (default http://127.0.0.1:1455/v1). This repo does not log you into chatgpt.com and does not ship or name a companion scraper.

Agent skill

Install also copies SKILL.md to:

  • %USERPROFILE%\.codex\skills\codex-multi-profile\

  • %USERPROFILE%\.cursor\skills\codex-multi-profile\

So Codex / Cursor agents know not to launch Codex.exe, not to use WindowsApps, and not to Start-Process without a .cmd wrapper.

Safety

Does Does not

Copy auth.json locally between ~\.codex and profiles\<name> Upload tokens or set a permanent CODEX_HOME

Clone ChatGPT.exe out of the Store package Run the Store binary in-place

Restore main auth on close; refuse to save if active email == main Delete ~\.codex history

Choose among your profiles (sticky / LRU / depleted) Mux many accounts in one window, patch asar, or bypass quotas

Do not commit auth.json or *.bak. Prefer Redact-LaunchTrace.ps1 before pasting logs.

Uninstall

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\Uninstall-CodexMultiProfile.ps1
# add -PurgeProfiles to also delete local profile auth copies

~\.codex is never deleted.

Docs

Doc Topic

Router Codex Accounts app + pool / stick / route / depleted

Layer Optional clone-only desktop tweaks

Architecture Why AuthSwap exists

Troubleshooting Wrong account, locks, BOM

FAQ Common questions

Recipes Daily command cards

Support Bef

Frequently Asked Questions

What is codex-multi-profile?

codex-multi-profile is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Hung2124. Windows Codex Desktop multi-account via AuthSwap. Shared workspace, separate ChatGPT logins. It has 93 GitHub stars.

Is codex-multi-profile safe to use?

Yes. codex-multi-profile passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install codex-multi-profile?

Clone the repository with "git clone https://github.com/Hung2124/codex-multi-profile" and add it to your Claude Code skills directory (see the Installation section above). codex-multi-profile ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is codex-multi-profile written in?

codex-multi-profile is primarily written in PowerShell. It is open-source under Hung2124 on GitHub, so you can review or fork the full source.

Are there alternatives to codex-multi-profile?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codex-multi-profile against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details