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 | $0.00238 | $0.00238 |
| Sonnet 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 9d 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.
- 9d 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 2mo ago), licensed MIT. It adds 477 tokens to every session, about $0.0024 per session on Opus 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.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.