Claude Code mod

openai-balance

Your OpenAI API credit above the prompt: an estimated balance with a gauge, today's spend, where the money mostly went, and the last call. /openai-balance shows the breakdown.

426 starsContext & usage mods Plugin marketplaceValidates on Claude Code 2.1.316 Source

Install

Inside Claude Code
/plugin marketplace add hamzafer/claude-code-mods
/plugin install openai-balance@claude-code-mods

Mods install like plugins. Run /reload-plugins or start a new session to load it.

What it can access

Reach
L3Network: network, runs processes, reads files, reads env vars, reads mod state, persists state, draws
Draws in
AbovePrompt
Hooks
session.startturn.completecommand.runui.render

From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.

How Claude Code mods work

  • A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
  • It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
  • Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
  • Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Claude Code docs

Details

Folder
mods/openai-balance
Marketplace
claude-code-mods
Author
Hamza Zafar
License
MIT
Last updated
1 November 2026

FAQ

What is openai-balance?

Your OpenAI API credit above the prompt: an estimated balance with a gauge, today's spend, where the money mostly went, and the last call. /openai-balance shows the breakdown. It is a mod for Claude Code, from hamzafer/claude-code-mods on GitHub.

What can the openai-balance mod access?

Its widest reach is "network" (network, runs processes, reads files, reads env vars, reads mod state, persists state, draws). It draws in AbovePrompt. Like any mod, it runs with your permissions.

How do I install openai-balance?

Inside Claude Code (v2.1.287 or later), run /plugin marketplace add hamzafer/claude-code-mods and then /plugin install openai-balance@claude-code-mods.

Is openai-balance popular?

hamzafer/claude-code-mods has 426 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 1 November 2026.

More context & usage mods

taskcut

7

wasd96040501/taskcut

Compacts when the work moves on from one sub-task to the next instead of when the context window fills, including in the middle of a long turn. Once the context is past a floor, a model judges each step, reading what you asked for and where Claude has got to but never any tool output, for whether the work moves on from a finished piece to another; if it does, taskcut runs Claude Code's own compaction. Below the floor it does nothing and costs nothing.

Context & usage mods/plugin install

context-meter

240

midudev/better-claude

The session's context window fill, right above the prompt: gray while there is room, yellow when it is time to /compact, red when a new session is better.

Context & usage mods/plugin install

session-hud

7

ofeklevy11/claude-code-hud

Session Tracker above the prompt box: context window with a /compact recommendation, 5-hour plan limit, prompt clocks and session cost.

Context & usage mods/plugin install

burn-baby-burn

2

eel-brah/burn-baby-burn

Live session and weekly usage gauges under your prompt, fiery nags when your weekly limit is about to go unspent, and a friendly "slow down" when you burn through it too fast

Context & usage mods/plugin install

mission-control

7

h-zahran/delivery-kit

A side pane with robots: the main loop, every subagent and its tools, context, cost, rate limits and files touched

Context & usage mods/plugin install

cache-guard

2

Agulhas-Labs/claude-plugins

Warns once before a message that will cost far more than usual: a large Claude Code context whose prompt cache has expired, or a model or effort change that resets it. Shows the estimated cost, and offers a handoff file written by a cheap model in the background so you can /clear instead. While background work runs, it wakes an idle session just before its cache expires, so the result lands on a warm cache.

Context & usage mods/plugin install

Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.