Borrowing it
Nothing to install: this file belongs to haenara-shin/codex-hud. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/haenara-shin/codex-hud/main/CLAUDE.mdgit clone --depth 1 https://github.com/haenara-shin/codex-hudWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/haenara-shin/codex-hud/claude-md)<a href="https://agentmods.dev/instructions/haenara-shin/codex-hud/claude-md"><img src="https://agentmods.dev/badge/instructions/haenara-shin/codex-hud/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/haenara-shin/codex-hud/claude-md"><img src="https://agentmods.dev/badge/instructions/haenara-shin/codex-hud/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00477 | $0.00477 |
| Opus 5.5 | $0.00191 | $0.00191 |
| Sonnet 5.5 | $0.00095 | $0.00095 |
| Haiku 4.5 | $0.00048 | $0.00048 |
Grade B, and why
codex-hud CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- **Codex app-server RPC**: Codex **0.142+** writes rate limits NOWHERE on disk — they're only available by asking `codex app-server` over JSON-RPC (`account/rateLimits/read`, camelCase fields). ~1s/call, so codex-hud ca What it actually says
codex-hud
Claude Code plugin that displays OpenAI Codex API usage and costs.
Build
npm install
npm run build
Test locally
node dist/index.js # Help
node dist/index.js setup --json # Check API key status
node dist/index.js usage week # Token usage (local + API)
node dist/index.js usage today --local-only # Local logs only
node dist/index.js costs today # Cost breakdown (API only)
node dist/index.js costs week --daily # Daily cost breakdown
node dist/index.js summary # One-line summary
Install in Claude Code
/plugin install local "/Users/Haenara.SHIN/Documents/2_Study (Python, Math)/personal/3_codex_hud_in_cc"
Data Sources
- Local rollout logs:
~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl(no API key needed) — usage + rate limits from the interactive Codex TUI. - Local app-server DB:
~/.codex/logs_2.sqlite(codex.rate_limitsevents) — rate limits + model for Codex 0.140–0.141 run via the app-server / Claude Code codex plugin. Read via node:sqlite (Node 22.5+) or the sqlite3 CLI. - Codex app-server RPC: Codex 0.142+ writes rate limits NOWHERE on disk — they're only available by asking
codex app-serverover JSON-RPC (account/rateLimits/read, camelCase fields). ~1s/call, so codex-hud caches it (~/.claude/plugins/codex-hud/ratelimit_cache.json, 5-min TTL) and refreshes in a detached background process. Model + effort come from~/.codex/config.toml(the RPC doesn't return them). - OpenAI API:
/v1/organization/costsand/v1/organization/usage/completions(needs Admin API key)
API Key
Set OPENAI_ADMIN_KEY env var or run /codex-hud:setup to store in config.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 40 lines · 477 tokens per session scan B 82c024a9d945
codex-hud CLAUDE.md is an instructions file published in the GitHub repository haenara-shin/codex-hud (8 stars, last pushed 4mo ago), licensed MIT. It adds 477 tokens to every session, about $0.0019 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
codex-hud CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codex-hud CLAUDE.mdhaenara-shin/codex-hud | Instructions file | 8 | 4mo ago | MIT | B | 477 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |