What is openrouter-balance?
openrouter-balance is a Claude Code mod by hamzafer that your OpenRouter credit above the prompt: the balance with a gauge, today's spend and where the money mostly went. /openrouter-balance shows the breakdown. It is listed under Cost & usage and has 268 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | hamzafer |
| Repository | hamzafer/claude-code-mods |
| Popularity | 268 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (64/100) |
| Rank | #75 of 5,272 Claude Code mods; #8 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-16 |
| Stars this week | +80 |
| Hooks | 4 events |
| Sees | only the events it hooks |
| Draws on | AbovePrompt |
Is openrouter-balance safe to install?
openrouter-balance scores 64/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; starts processes outside the sandbox; reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.http.fetch | network requests |
$.process.run | runs processes |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.resolve | draws interface |
How do I install openrouter-balance?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/hamzafer/claude-code-mods claude plugin validate ./claude-code-mods/mods/openrouter-balance
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add hamzafer/claude-code-mods && claude plugin install openrouter-balance@claude-code-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs openrouter-balance for you:
Install the "openrouter-balance" Claude Code mod from https://github.com/hamzafer/claude-code-mods/tree/main/mods/openrouter-balance. Run claude plugin validate on it first and show me what it can access before you enable it.
More from hamzafer/claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- agent-radar: One live line above the prompt per running subagent: time, tool count and what it's doing. /radar shows every agent and (Low risk)
- blast-radius: Holds risky Bash commands and shows what they would change before they run. (Review before installing)
- browser-lanes: Shows if this session has a Playwright browser and who holds it. /browser clean closes leftover browsers. A subagent tha (Review before installing)
- cache-clock: A prompt-cache line under your status line, from Claude Code's own cache figures: time left while warm, hit rate and mis (Review before installing)
- context-bar: Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. (Low risk)
- glance: One line above the prompt with what needs you: next meeting, PRs, Linear issues and Slack DMs. /glance lists them all. (Review before installing)
- heatmap: A GitHub-style grid of your Claude Code time in a /heatmap pane, with streaks, peaks and top projects. (Review before installing)
- md-preview: Shows the Markdown files Claude edits, rendered like GitHub, in a pane next to the chat. Before and after side by side. (Review before installing)