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

cli-codex-worker

v0.1.2

Published

Daemon-backed Codex app-server CLI worker for protocol-first thread and turn orchestration

Readme

cli-codex-worker

cli-codex-worker is a daemon-backed CLI that orchestrates the official codex app-server --listen stdio:// runtime.

It provides:

  • Protocol-first commands for thread/turn/model/account/request flows
  • Friendly aliases (run, send, read) for file-based prompt workflows
  • Pending server-request persistence (request list/read/respond)
  • Multi-account failover across CODEX_HOME_DIRS with cooldown tracking
  • Model validation/remap from live model/list

Requirements

  • Node.js 22+
  • codex CLI installed and logged in

Install

npm install
npm run build

Core Commands

cli-codex-worker daemon start|status|stop
cli-codex-worker thread start|resume|read|list
cli-codex-worker turn start|steer|interrupt
cli-codex-worker model list
cli-codex-worker account read|rate-limits
cli-codex-worker skills list
cli-codex-worker app list
cli-codex-worker request list|read|respond
cli-codex-worker wait
cli-codex-worker doctor

Friendly Aliases

cli-codex-worker run <task.md>
cli-codex-worker send <thread-id> <message.md>
cli-codex-worker read <thread-id>

These aliases still return and surface thread/turn IDs so workflow stays protocol-compatible.

Multi-Account Failover

  • CODEX_HOME_DIRS (colon-separated) controls account order.
  • Each account tracks cooldown after classified failures.
  • CODEX_HOME is used when CODEX_HOME_DIRS is not set.

Example:

export CODEX_HOME_DIRS="$HOME/.codex:/tmp/second-codex-home"

Fleet Toggle

Set:

export CODEX_ENABLE_FLEET=1

When enabled, a cli-codex-worker:fleet suffix is appended to outgoing developerInstructions on thread-start/resume paths.

Pending Requests

When app-server sends approval/input/auth-refresh requests, they are persisted locally and can be answered later:

cli-codex-worker request list
cli-codex-worker request read <request-id>
cli-codex-worker request respond <request-id> --json '{"decision":"accept"}'

For tool user-input requests:

cli-codex-worker request respond <request-id> --answer "yes"

Verification Commands

npm run build
npm test
npm run smoke

npm run smoke validates a live flow with the installed codex binary:

  1. initialize
  2. model/list
  3. run alias (thread + turn) writing a file
  4. thread/read and output file check