Skip to content
codex-profiles logo

codex-profiles

Verified

Switch between isolated Codex accounts without token hassle.

Autonomous AgentsAutomation 23Open source
View on GitHub
Updated 2026-06-15
codex-profiles GitHub repository

What is codex-profiles?

codex-profiles wraps Codex's built-in CODEX_HOME feature into simple commands. Each profile maintains its own directory containing authentication, settings, plugins, connectors, and logs so nothing leaks between contexts.

Instead of copying auth files or manually setting environment variables, the tool launches Codex CLI or Desktop instances with the chosen profile. This approach preserves full state isolation while making account switching fast and repeatable.

It targets developers and power users who maintain multiple Codex accounts for different purposes such as school, personal projects, or client work and need clean boundaries between them.

Capabilities

switch between codex accounts
isolate codexhome profiles
manage multiple cli sessions
provide bash command interface

What you can build with codex-profiles

Separate work and personal accounts

Run one profile for client projects with specific connectors and another for personal tasks without mixing sessions or caches.

Parallel Desktop instances

Launch two Codex Desktop windows side by side, each tied to its own profile and local data for comparing outputs or handling different limits.

School account with higher limits

Quickly switch to an education profile for heavy coding sessions while keeping daily automation tools in the personal profile.

Install codex-profiles

Install
npm install -g codex-profile
Quick start
npm install -g codex-profile
  1. 1Install via npm with the codex-profile package.
  2. 2Create a new profile directory using the provided wrapper command.
  3. 3Launch the CLI with a chosen profile name and optional command.
  4. 4Start a Desktop instance bound to a specific profile and app path.
  5. 5Verify isolation by checking that each profile keeps its own auth and logs.

Works with

OpenAI Codex CLIOpenAI Codex DesktopBash

codex-profiles: pros & cons

Pros

  • +Provides true isolation by using separate CODEX_HOME directories rather than swapping tokens.
  • +Supports both CLI and experimental parallel Desktop usage.
  • +Lightweight Bash wrapper that avoids manual environment variable management.
  • +Includes documentation and GEO-optimized site for better discoverability.

Cons

  • Desktop parallel mode is still experimental and requires extra setup.
  • Limited to macOS and Linux platforms.
  • Requires manual profile creation before first use.
Did you find this helpful?

Frequently asked questions

It isolates the entire Codex home directory instead of only moving the token file, keeping sessions, plugins, and caches separate.

User reviews

Verified reviews from the community shape this listing's rating.

Loading reviews…

Sign in to review

Promote codex-profiles

Add this badge to your website, or share the tool.

DFeatured on Dhanasvicodex-profiles 0