codex-hud-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
codex-hud
Zero-credential live terminal HUD and native MCP Statusline Provider for OpenAI Codex CLI (codex-cli >= 0.171.0, plus zero-experimental companion surfaces for every version).
Why codex-hud
Built-in Codex [tui] status_line wraps cleanly, but omits 5h/7d reset countdowns, quota pace forecasts, prompt-cache hit rate and anomaly detection, last-turn TTFT, visible-text decode speed (tok/s), active tools/skills/MCP/subagents, and working-tree Git dirty counts.
codex-hud fills those gaps with one pure SnapshotViewModel driving 5 parity surfaces — with zero binary patching, zero PTY wrapping, zero credential contact, zero network calls, and zero external runtime dependencies:
Native MCP Statusline Provider (
S1): Lightweight stdio MCP server (codex-hud-mcp,<200mscold boot,<20msin-memoryresources/read, immune to Codex#62629timeout cancellation). Baseline0.171–0.172usesrow/text/link; v2col/badgeprimitives unlock automatically atcli_version >= 0.174.0.External ANSI Bar (
S2):codex-hud barfor any shell prompt or status strip.tmux Status Bar (
S3):codex-hud tmuxwith# -> ##format-injection escaping.Watch Dashboard & Interactive Popup Inspector (
S4):codex-hud watchandcodex-hud -pfor full untruncated Activity Snapshot inspection.OSC 8 Markdown Activity Snapshot (
S5):codex-hud snapshot --markdown --writewriting0o600snapshots in Hud Home only when the wall-clock-freecontentDigestchanges.
Coexistence with Official Footer & yetone/magpie
Native mode: Takes over the Codex TUI footer with complete presets (
full,compact,agents,minimal,zen).Companion mode: Defaults to the
supplementpreset (showing only metrics absent from the built-in Codex footer: 5h/7d countdown + pace, Cache% / TTFT /tok/s, Git dirty counts, active Tools / Skills / MCPs / Subagents, and badges). Because Codex permits one activestatus_line_provider,yetone/magpieusers can either switch tocodex-hudin/statuslineor keepmagpiein the TUI footer while runningcodex-hud watch/tmux/-pside by side with zero conflict.
Related MCP server: Gauge
Quick Start
Requires Node.js ^22.20.0 || >=24.0.0.
Option A: Official Codex Plugin (Native Statusline, Zero-Build)
codex plugin marketplace add ifelseboyxx/codex-hud --ref plugin-dist
codex plugin add codex-hud@codex-hudThen inside Codex CLI (>= 0.171.0):
Run
/experimentaland enable Custom status line.Run
/statusline-> Choose a status line provider -> Codex HUD.
Option B: Standalone CLI & MCP Registration (npm)
npm i -g codex-hud
# Register native MCP Statusline Provider via official Codex CLI (zero manual TOML edits)
codex mcp add codex-hud -- codex-hud-mcp
# Or run: codex-hud setup --registerOption C: Zero-Experimental Companion Mode (All Codex Versions)
codex-hud watch # Live split-pane companion dashboard
codex-hud tmux # tmux status-right string (defaults to supplement preset)
codex-hud bar --preset full # One-shot ANSI status bar
codex-hud -p # Interactive popup inspector
codex-hud snapshot --keybindings # Print tmux / Zellij / terminal keybinding snippetsOptional Async Lifecycle Hooks (Instant ! Approval & Sub-5ms Tool Updates)
codex-hud wire # Strictly appends async:true hooks to ~/.codex/hooks.json (preserves existing trust indices)
codex-hud unwire # Removes strictly codex-hud-owned entries; preserves all foreign hooksAfter running codex-hud wire, open /hooks in Codex CLI to review and approve the newly appended hooks. codex-hud never uses --dangerously-bypass-hook-trust.
Presets
Preset | Default Use | Included Lines | Highlight |
| Native MCP / wide pane |
| Complete telemetry and activity rows |
| Medium pane |
| Dense 3-row summary |
| Multi-agent workflows |
| Subagents and tool calls first |
| Small terminal |
| Model, badges, context, quota |
| Distraction-free |
| Context and quota only |
| External companion default |
| Only metrics absent from built-in Codex footer |
Metric Fidelity & Honest Degradation
Metric | Primary Source | Fidelity | Degradation Policy |
5h / 7d Quota & Reset Countdown | MCP | Exact | Cross-session fallback marked stale before turn 1; auto-hidden on API-key plans without windows |
Quota Pace Forecast | Pure domain window-relative model | Exact | Suppressed during early settling window; shows |
Context Budget & Compaction | MCP | Exact | Suppresses post- |
Categorical Context Breakdown | Not exposed locally by Codex CLI | Unavailable | Honestly omitted rather than fabricated |
Prompt Cache% & Cache Anomaly | Rollout single-request usage (MCP cumulative fallback only) | Exact | Flags |
Last-Turn TTFT | Rollout | Exact (last turn) | Measures to first non-reasoning output token; live mid-turn streaming TTFT is omitted |
Decode Speed ( | Rollout | Approx (visible text) | Guarded by |
Tools / MCPs / Skills / Subagents | Rollout streaming events + optional async Hooks | Exact (explicit | Never treats |
Session Cost / Credits | MCP | Exact (host-reported) | No built-in pricing table; supports offline USD/CNY display via |
| Optional | Hooks-Only | Cleared on |
Security Guarantees
See SECURITY.md for the full threat model. Every release is verified by 14 machine-enforced gates in pnpm verify:
Zero credentials & zero network: AST-enforced ban on network modules,
fetch,WebSocket, keychain commands,auth.json,config.toml,shell_snapshots, andapp-server/ipcsockets across allsrc/.Zero-write
Codex Homehot path: All owned config, caches, locks, and snapshots live in private0o700/0o600Hud Home ($XDG_CONFIG_HOME/codex-hud&$XDG_CACHE_HOME/codex-hud; AppData on Windows). Optionalstate_<N>.sqlitefallback (<= 32 MiB) runs strictly through isolated/tmp0o700copies supporting both WAL andDELETE-journalmodes.Privacy projection: Raw prompts,
tool_input,tool_response, file diffs, and assistant text are dropped at parse boundaries before caching or rendering.
CLI Reference
codex-hud mcp-statusline # Run native stdio MCP statusline provider
codex-hud watch [options] # Live companion inspector dashboard
codex-hud bar [options] # Single ANSI status bar frame
codex-hud tmux [options] # tmux-escaped status line (# -> ##)
codex-hud snapshot [options] # Full snapshot, --sessions, --markdown --write, --keybindings, or -p popup
codex-hud preview [options] # Offline deterministic previews (--preset, --all, --surface)
codex-hud configure [options] # --show, --preset, --set key=value, --reset, --fields, -i interactive TUI
codex-hud setup [options] # Official `codex mcp add/remove/list` registration helper & plugin guide
codex-hud wire / unwire # Append or remove optional async passive hooks (--status)
codex-hud doctor [--json] # Isolated read-only environment, host contract, and permission check
codex-hud clean [--all] # Clean expired or all owned cache files inside Hud HomeDevelopment
pnpm install --frozen-lockfile
pnpm verifySee docs/architecture.md, docs/host-contracts.md, CODING_STANDARDS.md, and CONTRIBUTING.md.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA visual surface for terminal Claude Code that provides a persistent dashboard the agent curates itself, per-session telemetry with cost, and a menu bar glyph for status.-
- AlicenseAqualityBmaintenanceEnables local monitoring of Codex token usage, prompt-cache reuse and estimated credits by reading existing session logs and exposing an embedded dashboard plus tools for whole-chat, latest-call and latest-prompt readings and call history. All collection and refresh stay local on-device, requiring no model calls, API key or hosted backend.5MIT
- AlicenseNot gradedqualityCmaintenanceAn Antigravity MCP App plugin that surfaces real-time context window occupancy, remaining tokens, prompt cache hit rate, output speed, rolling 5-hour/7-day quota usage, and a 28-day activity heatmap by read-only parsing of local transcript logs. It presents these metrics in a theme-aware sidebar dashboard without patching or injecting into the host client.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Gemini in Google Antigravity to delegate coding, testing, debugging, and review tasks to a local OpenAI Codex CLI while providing zero-token live monitoring of progress, quotas, sessions, and history.MIT