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

@jiawang1209/codex-hud

v0.1.5

Published

Real-time terminal HUD for Codex CLI and Agent CLI sessions.

Readme

Codex HUD

Codex HUD is a terminal heads-up display for Codex CLI sessions. It surfaces the signals you usually need while working with an agent: model, reasoning effort, project, git branch, context usage, five-hour usage, weekly usage, active tools, and task progress.

[gpt-5.5 medium] │ codex-hud git:(main*)
Context ████░░░░░░ 42% │ Usage ███████░░░ 68% (resets in 3h 17m) │ Weekly █████████░ 86% (resets in 6d 10h)
Todos 2/5 │ Exec active, Plan x2

Codex HUD is intentionally local-first. It reads Codex config, Codex session metadata, and git metadata from your machine. It does not upload data or need to display private message bodies.

Install

Follow the steps in order. If Node.js/npm or Codex CLI is already installed, skip that step.

1. Set Up npm

Codex HUD is distributed through npm and requires Node.js 18 or newer.

macOS:

brew install node

Linux, Debian/Ubuntu:

sudo apt update
sudo apt install -y nodejs npm

Windows, PowerShell:

winget install OpenJS.NodeJS.LTS

Verify:

npm --version

2. Install Codex CLI

Codex HUD is built for Codex CLI. If this works, skip this step:

codex --version

Install Codex CLI with one of the official options:

npm install -g @openai/codex

macOS users can also use Homebrew:

brew install --cask codex

See the official OpenAI Codex README for current Codex CLI install options and release binaries:

https://github.com/openai/codex#installing-and-running-codex-cli

3. Install Codex HUD

Install the package:

npm install -g @jiawang1209/codex-hud

Configure Codex CLI's built-in status line:

codex-hud setup
codex

This is the safest default path. It uses Codex CLI's supported native status-line items.

Native Auto-Launch

For the fuller HUD experience, codex-hud install builds a patched Codex CLI adapter and installs a reversible codex shim. After that, the normal codex command launches Codex with codex-hud status wired into the footer.

macOS prerequisites:

brew install git rust tmux

Linux, Debian/Ubuntu prerequisites:

sudo apt install -y git cargo tmux

Install and launch:

codex-hud install
codex

If codex still resolves to the official binary after install, put ~/.local/bin before the existing Codex binary in PATH.

Windows supports the npm package and codex-hud setup through Node.js. The current native auto-launch flow is aimed at macOS/Linux because it builds a patched Codex binary and writes a Unix-style ~/.local/bin/codex shim.

HUD Pane Mode

Use a live HUD pane alongside Codex:

codex-hud run

Pass Codex arguments after --:

codex-hud run -- --model gpt-5.5 --sandbox danger-full-access

Terminal launchers:

codex-hud run --terminal tmux
codex-hud run --terminal iterm
codex-hud run --terminal terminal

tmux is the portable default. iterm and terminal are macOS launchers.

Commands

| Command | Purpose | | --- | --- | | codex-hud status | Print one HUD snapshot. | | codex-hud watch | Refresh the HUD until interrupted. | | codex-hud run | Launch Codex with a persistent HUD pane. | | codex-hud setup | Configure Codex CLI's built-in status line. | | codex-hud install | Build the native adapter and install the reversible codex shim. | | codex-hud native | Launch a patched Codex binary with command-backed HUD output. | | codex-hud doctor | Check Codex, Node.js, shim, native adapter, and config readiness. | | codex-hud config | Print the effective Codex HUD config. | | codex-hud config init | Create ~/.codex-hud/config.json. |

Remove the auto-launch shim:

codex-hud uninstall-shim

Configuration

Create a config file:

codex-hud config init

Default path:

~/.codex-hud/config.json

Minimal example:

{
  "layout": "expanded",
  "pathLevels": 2,
  "elementOrder": ["model", "project", "context", "usage", "weekly", "todos", "tools"],
  "display": {
    "showContext": true,
    "showUsage": true,
    "showWeekly": true
  },
  "colors": {
    "context": "yellow",
    "usage": "magenta",
    "weekly": "magenta"
  }
}

layout can be expanded or compact. elementOrder controls HUD section order. Colors support common ANSI names such as cyan, magenta, yellow, red, green, gray, dim, and truecolor hex values such as #FF6600.

Install From Source

Use this when testing the latest GitHub version:

git clone https://github.com/Jiawang1209/codex-hud.git
cd codex-hud
npm install
npm run build
npm link
codex-hud setup

For native auto-launch from source:

codex-hud install
codex

Data Sources

Codex HUD reads:

  • ~/.codex/config.toml for model and reasoning effort.
  • ~/.codex/sessions/**/*.jsonl for token counters, rate limits, tool activity, and plan progress.
  • git for branch and dirty state.
  • codex --version for diagnostics.

Session parsing uses structured metadata such as event types, tool names, token counters, rate-limit counters, and plan status. It avoids displaying private transcript message bodies.

Docs

Plugin Wrapper

This repository includes a Codex plugin wrapper in .codex-plugin/ and plugins/codex-hud/. The plugin gives Codex-side guidance and marketplace metadata; the terminal HUD runtime still comes from the codex-hud CLI installed through npm or from source.

Privacy

Codex HUD reads local Codex configuration, local Codex session metadata, and local git metadata. It does not upload data.

License

MIT