npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codex-profiles

v0.2.0

Published

<h1 align="center">Codex Profiles</h1>

Readme


Overview

Codex Profiles helps you manage multiple Codex CLI logins on a single machine. It saves the current login and lets you switch in seconds, making it ideal for personal and team accounts across multiple organizations.

Install

[!IMPORTANT] Requires Codex CLI (with ChatGPT subscription or OpenAI API key).

[!TIP] Looking for a Teams promo? See details

NPM

npm install -g codex-profiles

Bun

bun install -g codex-profiles

Cargo

cargo install codex-profiles

Manual Install

Automatically detects your OS/architecture, downloads the correct binary, verifies checksums:

curl -fsSL https://raw.githubusercontent.com/midhunmonachan/codex-profiles/main/install.sh | bash

Uninstall

[!WARNING] Legacy script support is ending. Remove cx and use this version instead.

rm ~/.local/bin/cx

If you installed with a custom command name (mycmd), remove that name instead:

rm ~/.local/bin/mycmd

NPM

npm uninstall -g codex-profiles

Bun

bun uninstall -g codex-profiles

Cargo

cargo uninstall codex-profiles

Manual Uninstall

rm ~/.local/bin/codex-profiles

Usage

[!TIP] load and delete are interactive unless you pass --label.

| Command | Description | | --- | --- | | codex-profiles save [--label <name>] | Save the current auth.json as a profile, optionally labeled. | | codex-profiles load [--label <name>] | Load a profile from the picker without re-login (or by label). | | codex-profiles list | List saved profiles. | | codex-profiles status [--all] [--show-errors] | Show usage for the current profile, or all saved profiles (--all). | | codex-profiles delete [--yes] [--label <name>] | Delete profiles from the picker (or by label). |

[!WARNING] Deleting a profile does not log you out. It only removes the saved profile file.

Quick example:

$ codex-profiles save --label team
Saved profile [email protected] (Team)

$ codex-profiles load --label team
Loaded profile [email protected] (Team)

[!NOTE] Files are stored under ~/.codex/profiles/:

| File | Purpose | | --- | --- | | {email-plan}.json | Saved profiles. | | profiles.json | Profile metadata (labels and identity fields for saved profiles). | | update.json | Cached updater state (latest checked version metadata). | | profiles.lock | Lock file for safe updates. |

FAQ

No. Everything stays on your machine. This tool only copies files locally.

A profile is a saved copy of your ~/.codex/auth.json. Each profile represents one Codex login.

Log in with Codex CLI, then run codex-profiles save --label <name>. To switch later, run codex-profiles load --label <name>.

You will be prompted to save the current profile, continue without saving, or cancel.

Yes. Save each account with a label (for example, personal and work) and switch with the label.

After installing, verify it works:

# Check version
codex-profiles --help

# Verify Codex CLI is detected
codex-profiles list
# Should show: "No profiles saved yet" (not an error about missing Codex CLI)

If you see "Codex CLI not found", install it from here.

Yes! Contributions are welcome. For non-trivial changes (new features, significant refactors), please open an issue or discussion first to discuss your idea and avoid wasted effort.

For minor changes (bug fixes, typos, docs), feel free to submit a PR directly.

See CONTRIBUTING.md for full guidelines.