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

@syntaxskills/codexswitch-cli

v2.0.0

Published

Ultra-fast, cross-platform profile switching for ChatGPT, Codex, and third-party providers

Readme

Install

Use npm or Bun if you want the easiest setup:

npm install -g @syntaxskills/codexswitch-cli
# or
bun install -g @syntaxskills/codexswitch-cli

Then verify the command is available:

codexswitch-cli --version
codexswitch-cli list

Other Install Options

Install the latest GitHub release directly:

curl -fsSL https://raw.githubusercontent.com/syntaxskills/codexswitch-cli/main/install.sh | bash

Build from source:

cargo install --git https://github.com/syntaxskills/codexswitch-cli --locked

Requires Rust 1.94 or newer.

Setup

  1. Log in with your first Codex account:
codex login
codexswitch-cli save --label work
  1. Log in with another Codex account and save it:
codex login
codexswitch-cli save --label personal
  1. Switch when needed:
codexswitch-cli list
codexswitch-cli load --label work
codexswitch-cli load --label personal

Use --include-config when a profile also needs ~/.codex/config.toml, for example custom providers:

codexswitch-cli save --label third-party --include-config

Then restore the official Codex provider configuration and re-save each official profile with --include-config:

codexswitch-cli save --label work --include-config
codexswitch-cli save --label personal --include-config

By default, CodexSwitch backs up and replaces the entire config.toml. This is the simplest behavior and ensures a profile restores exactly what was saved.

To save and replace only specific top-level fields while preserving everything else in the active config, create ~/.codex/codexswitch/config.toml:

managed_config_keys = [
  "model",
  "model_provider",
  "model_providers",
]

Loading an auth-only profile does not change any active config fields. Saving provider-specific and official profiles with --include-config ensures that switching profiles also switches providers correctly.

Common Commands

| Command | What it does | | --- | --- | | codexswitch-cli save --label work | Save the current ~/.codex/auth.json as a profile. | | codexswitch-cli load --label work | Restore a saved profile. | | codexswitch-cli list | Show saved profiles. | | codexswitch-cli status --all | Show active and saved profile usage. | | codexswitch-cli export --output profiles.json | Export profiles for backup or transfer. | | codexswitch-cli import --input profiles.json | Import profiles from an export bundle. | | codexswitch-cli doctor --fix | Check and repair local profile storage. |

Run codexswitch-cli help <command> for command-specific options.

Storage

Profiles are stored locally under:

~/.codex/codexswitch/profiles/

Auth files and export bundles contain secrets. Keep them private.

Roadmap

  • Polish the terminal UI for clearer, more attractive file-related output.
  • Improve status with richer usage details, exploring the codex-limit methodology and ideas from codex-profiles PR #24.

Docs

About SyntaxSkills

SyntaxSkills hosts this repository to keep maintenance continuous and community-owned. The goal is not profit; it is to keep the tool maintained beyond any single person. Contributors and maintainers are welcome to join.

Acknowledgements

CodexSwitch CLI is inspired by codex-profiles and preserves its commit history in this repository.