Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use codex-profiles to run Codex CLI or Codex Desktop with isolated CODEX_HOME profiles for separate accounts, projects, and local state.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 279% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 137% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 23% | 0% |
Use codex-profiles when a user wants separate Codex CLI or Codex Desktop contexts for work, personal, school, client, or project-specific activity. The tool wraps Codex's CODEX_HOME support so each profile has its own Codex home directory for auth, config, sessions, connectors, plugins, caches, logs, and local state.
This skill is for profile selection and operational safety around that boundary. It is not an official OpenAI project, and it does not provide full OS-level isolation.
CODEX_HOME without manually exporting environment variables.auth.json.First check whether the user wants CLI-only profile switching or Codex Desktop profile launching. Desktop operations can quit, launch, clone, or rebuild app instances, so get explicit approval before running them.
If the tool is already installed, inspect the live command surface:
bashcodex-profile --help codex-profile doctor codex-profile list codex-profile status
If it is not installed, prefer package-manager installs the user can inspect and control:
bashnpm install -g codex-profile brew install Ducksss/tap/codex-profile
Do not run remote install scripts automatically. If the user asks for a source install, clone the repository and inspect its install instructions first.
Create a new isolated Codex home only when the user names the intended profile:
bashcodex-profile init work codex-profile path work
Ask the user to log in once per profile when needed:
bashcodex-profile login work
Do not copy, parse, print, or migrate auth.json tokens between profiles.
Use the CLI profile wrapper for ordinary agent work:
bashcodex-profile cli work codex-profile cli work exec "run tests and summarize failures"
For one-off shell sessions, prefer the tool's environment or shell activation commands after checking --help:
bashcodex-profile env work codex-profile shell-init --help
Codex Desktop launch flows can affect running app state. Before running them, state which profile, app mode, and workspace will be used, then wait for approval.
bashcodex-profile app work ~/Dev/project codex-profile app work --instance ~/Dev/project
Use --instance only when the user wants side-by-side Desktop profiles and accepts the additional local app clone and separate Electron user-data boundary.
bashcodex-profile list codex-profile status codex-profile doctor
Use this before changing profile state. It should not expose token contents.
bashcodex-profile cli work exec "inspect this repository and run its test suite"
Confirm the profile name is intentional before running long tasks.
If the wrapper is unavailable, explain the underlying boundary instead of improvising token movement:
bashCODEX_HOME="$HOME/.codex-work" codex CODEX_HOME="$HOME/.codex-work" codex exec "review this change"
work, personal, client-a, or school.status, list, and doctor before destructive or Desktop actions.codex-profile --help, because command flags can change.codex-profiles is community-maintained and is not an official OpenAI tool.CODEX_HOME directories; it does not isolate the operating-system user, shell history, SSH keys, browser cookies, GitHub CLI auth, or unrelated application state.auth.json tokens as a shortcut.codex-profile remove only after confirming the exact profile path and whether the user needs a backup.CODEX_HOME.Solution: Explain that codex-profiles isolates Codex home state only; check and switch other tools separately.
Solution: Ask before Desktop operations and prefer CLI commands when the user only needs isolated command-line work.
Solution: Run codex-profile status and have the user log in or configure connectors inside that profile.
@environment-setup-guide - Use when installing or documenting local development tools.@codex-maintenance - Use when maintaining local Codex Desktop, MCP, plugin, or cache surfaces.@filesystem-context - Use when reasoning about local files, config paths, and workspace boundaries.Other measured skills in the registry, with their headline benchmark lift.