@jiawang1209/codex-hud
v0.1.5
Published
Real-time terminal HUD for Codex CLI and Agent CLI sessions.
Maintainers
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 x2Codex 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 nodeLinux, Debian/Ubuntu:
sudo apt update
sudo apt install -y nodejs npmWindows, PowerShell:
winget install OpenJS.NodeJS.LTSVerify:
npm --version2. Install Codex CLI
Codex HUD is built for Codex CLI. If this works, skip this step:
codex --versionInstall Codex CLI with one of the official options:
npm install -g @openai/codexmacOS users can also use Homebrew:
brew install --cask codexSee the official OpenAI Codex README for current Codex CLI install options and release binaries:
https://github.com/openai/codex#installing-and-running-codex-cli3. Install Codex HUD
Install the package:
npm install -g @jiawang1209/codex-hudConfigure Codex CLI's built-in status line:
codex-hud setup
codexThis 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 tmuxLinux, Debian/Ubuntu prerequisites:
sudo apt install -y git cargo tmuxInstall and launch:
codex-hud install
codexIf 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 runPass Codex arguments after --:
codex-hud run -- --model gpt-5.5 --sandbox danger-full-accessTerminal launchers:
codex-hud run --terminal tmux
codex-hud run --terminal iterm
codex-hud run --terminal terminaltmux 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-shimConfiguration
Create a config file:
codex-hud config initDefault path:
~/.codex-hud/config.jsonMinimal 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 setupFor native auto-launch from source:
codex-hud install
codexData Sources
Codex HUD reads:
~/.codex/config.tomlfor model and reasoning effort.~/.codex/sessions/**/*.jsonlfor token counters, rate limits, tool activity, and plan progress.gitfor branch and dirty state.codex --versionfor 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
- Installation details
- Native Codex CLI patch
- Plugin marketplace wrapper
- Release checklist
- Upstream command-backed status-line proposal
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
