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

v0.1.19

Published

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

Readme

codex-worker

codex-worker is a daemon-backed CLI for driving the official codex app-server --listen stdio:// runtime from scripts, local automation, and long-running operator workflows.

It wraps the app-server protocol in a stable shell surface with local state, resumable threads, pending-request handling, and multi-profile failover.

Requirements

  • codex CLI installed and authenticated
  • Node.js 22+ for npm installs and source development
  • No Node.js or Bun runtime required when using a GitHub Release binary

Install

One-line install (recommended):

sudo -v ; curl -fsSL https://github.com/yigitkonur/codex-worker/releases/latest/download/install.sh | sudo bash
codex-worker doctor

The installer auto-detects OS/arch/libc, downloads the matching release binary plus its .sha256, verifies the checksum, and writes codex-worker to /usr/local/bin as root or ~/.local/bin otherwise.

Override behavior: if another codex-worker is earlier on PATH (e.g. a Homebrew symlink at /opt/homebrew/bin/codex-worker), the installer removes it so which codex-worker resolves to the freshly installed copy. Pass --no-override to disable. Only shadowing copies (earlier on PATH) are touched; copies later on PATH are left alone.

Other install methods

| Method | Command | | --- | --- | | User-local (no sudo) | curl -fsSL https://github.com/yigitkonur/codex-worker/releases/latest/download/install.sh \| bash -s -- --install-dir "$HOME/.local/bin" | | Pinned version | ... \| bash -s -- --version 0.1.17 | | Dry-run (preview) | ... \| bash -s -- --dry-run | | npm global | npm install -g codex-worker | | One-off via npx | npx codex-worker doctor | | Homebrew tap | brew tap yigitkonur/codex-worker https://github.com/yigitkonur/codex-worker && brew install yigitkonur/codex-worker/codex-worker | | From source | npm install && npm run build && node dist/src/cli.js --help |

Manual download (if you want to skip the installer entirely):

curl -LO https://github.com/yigitkonur/codex-worker/releases/latest/download/codex-worker-linux-x64
curl -LO https://github.com/yigitkonur/codex-worker/releases/latest/download/codex-worker-linux-x64.sha256
sha256sum -c codex-worker-linux-x64.sha256
chmod +x codex-worker-linux-x64
sudo mv codex-worker-linux-x64 /usr/local/bin/codex-worker

Full binary distribution details live in docs/distribution/binary-releases.md.

Installer flags

| Flag | Purpose | | --- | --- | | --version <ver> | Install a specific release tag or version number | | --install-dir <dir> | Override the install directory | | --target <asset> | Bypass platform auto-detection and pick a specific release asset | | --repo <owner/repo> | Install from a fork with the same asset layout | | --force | Reinstall even if the same version is already present | | --no-verify | Skip sha256 verification | | --no-override | Leave other codex-worker copies on PATH alone | | --dry-run | Print the resolved install plan without downloading |

Environment overrides: CODEX_WORKER_INSTALL_DIR, CODEX_WORKER_INSTALL_OS, CODEX_WORKER_INSTALL_ARCH, CODEX_WORKER_INSTALL_LIBC, CODEX_WORKER_INSTALL_CPU_FEATURES, GITHUB_TOKEN.

Platform notes

  • codex-worker still requires the upstream codex CLI to be installed and authenticated.
  • Older Linux x86_64 CPUs without avx2 are auto-served the codex-worker-linux-x64-baseline build.
  • Alpine / musl x86_64 without avx2 has no published asset; build from source on those hosts.
  • Windows: download the .exe release asset directly — the shell installer targets Unix-like shells.
  • Pick Homebrew if you want package-manager-owned updates; pick the shell installer if you want the newest release immediately.

CLI Surface

codex-worker run <task.md>
codex-worker send <thread-id> <message.md>
codex-worker read <thread-id>
codex-worker logs <thread-id>
codex-worker thread start|resume|read|list
codex-worker turn start|steer|interrupt
codex-worker model list
codex-worker account read|rate-limits
codex-worker skills list
codex-worker app list
codex-worker request list|read|respond
codex-worker wait
codex-worker doctor
codex-worker daemon start|status|stop

Common Flows

Start a file-backed task:

codex-worker run task.md

Resume a thread with a follow-up prompt:

codex-worker send <thread-id> followup.md

Read local thread state and recent transcript/log output:

codex-worker read <thread-id>
codex-worker logs <thread-id>

Handle a pending approval or user-input request:

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

State And Environment

  • Default state root: ~/.codex-worker
  • Preferred override: CODEX_WORKER_STATE_DIR
  • Backward-compatible fallback override: CLI_CODEX_WORKER_STATE_DIR
  • Profile discovery: CODEX_HOME_DIRS or CODEX_HOME
  • Fleet toggle: CODEX_ENABLE_FLEET=1

When fleet mode is enabled, codex-worker appends a [codex-worker:fleet] suffix to outgoing developer instructions on thread start and resume paths.

Development

npm run build
npm test
npm run smoke
npm run bun:compile
node --import tsx src/cli.ts --help

npm run smoke exercises a live local flow against the installed codex binary.