setup

setup is a command for coding agents from haenara-shin/codex-hud. It costs 14 tokens per session (330 once invoked), scanned B, original, MIT.

A setup command that installs or reinstalls the Codex HUD status display. The display shows Codex usage bars below the existing claude-hud statusline.

In plain words
What is it for?
Use it to install the statusline integration, check whether the settings changed, learn whether cost tracking is available, and identify any setup error.
Why use it?
It removes the manual work of creating the launcher and updating the Claude Code settings. It also reports whether cost tracking is connected, without asking for a secret.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the codex-hud plugin — 11 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/haenara-shin/codex-hud/setup
Clone the repo
git clone --depth 1 https://github.com/haenara-shin/codex-hud

Or install codex-hud, the plugin that ships this one along with the rest of its 11 commands.

Wrote 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.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/haenara-shin/codex-hud/setup.svg)](https://agentmods.dev/commands/haenara-shin/codex-hud/setup)
Your own site
<a href="https://agentmods.dev/commands/haenara-shin/codex-hud/setup"><img src="https://agentmods.dev/badge/commands/haenara-shin/codex-hud/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 330 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00330
Opus 5 $0.00007 $0.00165
Sonnet 5 $0.00003 $0.00066
Haiku 4.5 $0.00001 $0.00033

Measured 4d ago against content hash bfb9595d5dbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

setup 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 4d 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.

- If `ok: true`, confirm that the launcher script was created (or already in place) and that `~/.claude/settings.json` is configured.
commands/setup.md · 31 lines

What it actually says

Setup Codex HUD

Install (or re-install) the statusline integration so the Codex usage bars render below claude-hud's statusline.

node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" install-statusline --json

Read the JSON output. Report concisely to the user:

  • If ok: true, confirm that the launcher script was created (or already in place) and that ~/.claude/settings.json is configured.
  • If settingsUpdated: true, remind them to run /reload-plugins or restart Claude Code.
  • If ok: false, print the message field so the user can fix it.

Then briefly check API key status (informational only, no prompt):

node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" setup --json

Interpret the output:

  • "status": "connected" → tell the user costs tracking is active.
  • "status": "no_key" → tell the user: "Admin API key not configured. Costs commands will show a no-key notice. If you want to enable dollar cost tracking, run /codex-hud:setup-key. Otherwise no action needed — rate limits and usage work without a key."
  • "status": "error" → show the error.

Do not prompt for the API key from this command. Direct the user to /codex-hud:setup-key if they want to configure one.

Changes

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.

  1. 4d ago First seen · 31 lines · 14 tokens per session scan B bfb9595d5dbd

Subscribe to this mod's changes

setup is a command published in the GitHub repository haenara-shin/codex-hud (8 stars, last pushed 2mo ago), licensed MIT. It adds 14 tokens to every session and 330 once invoked, about $0.0001 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.