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-manager

v1.0.0

Published

Codex 配置切换工具 - 快速切换本地 Codex AI 的模型、Base URL、API Key 配置

Readme

Codex Switcher

一个炫酷的 CLI 脚手架工具,用于快速切换本地 Codex AI 的配置(模型、Base URL、API Key)。

Node.js TypeScript License

✨ 特性

  • 🚀 零参数启动 - 直接运行即可,无需任何参数
  • 📋 自动读取配置 - 启动自动显示当前 Codex 配置
  • 🔄 多 Profile 管理 - 新增、编辑、切换、删除配置一键搞定
  • 🔒 API Key 脱敏 - 显示时自动隐藏敏感信息
  • 🎨 终端美化 - 色彩输出,交互体验舒适
  • 💾 TOML + JSON 双写 - 原生兼容 Codex 配置文件格式

📦 安装

全局安装

npm install -g codex-switcher

本地安装

npm install codex-switcher

🚀 使用

全局安装后

codex-switcher

本地安装后

npx codex-switcher
# 或
node node_modules/codex-switcher/dist/index.js

🎯 交互菜单

启动后自动显示当前配置,然后进入主菜单:

  当前 Codex 配置
  ─────────────────────────────────────────
  Model:        gpt-4
  Base URL:     https://api.openai.com/v1
  API Key:      sk-3****119f
  ─────────────────────────────────────────

? 请选择操作
❯ 切换配置
  新增配置
  编辑配置
  删除配置
  退出

操作说明

| 操作 | 说明 | |------|------| | 切换配置 | 从已保存的配置中快速切换 | | 新增配置 | 新增配置(名称、模型、Base URL、API Key) | | 编辑配置 | 编辑已有配置 | | 删除配置 | 删除不需要的配置 | | 退出 | 退出程序 |

📁 配置文件

工具会读写以下文件:

| 文件 | 格式 | 说明 | |------|------|------| | ~/.codex/config.toml | TOML | Codex 原生配置 | | ~/.codex/auth.json | JSON | API Key 认证信息 | | ~/.codex/profiles.json | JSON | 多 Profile 管理(本工具维护) |

🛠 技术栈

| 库 | 用途 | |---|---| | commander | CLI 命令解析 | | @clack/prompts | 终端交互界面 | | tsup | TypeScript 打包 | | picocolors | 终端色彩输出 | | fs-extra | 文件操作 | | smol-toml | TOML 解析/生成 |

📜 License

ISC