Real-time statusline HUD for Claude Code with Cubence balance display
npx claudepluginhub nangongwentian-fe/claude-hud-cubenceReal-time statusline HUD for Claude Code with Cubence balance display
Share bugs, ideas, or general feedback.
A fork of jarrodwatts/claude-hud with Cubence balance and API latency display.

Adds a Cubence segment to the context line, showing your account balance and API latency:
Context █░░░░░░░░░ 5% │ Cubence $12.34 230ms
With subscription:
Context █░░░░░░░░░ 5% │ Cubence 5h $1.23/$5.00 bal $12.34 230ms
ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL from ~/.claude/settings.json/v1/user/subscription-info to fetch balanceInside Claude Code, run:
Step 1: Add the marketplace
/plugin marketplace add nangongwentian-fe/claude-hud-cubence
Step 2: Install the plugin
On Linux, /tmp is often a separate filesystem (tmpfs), which causes plugin installation to fail with:
EXDEV: cross-device link not permitted
Fix: Set TMPDIR before installing:
mkdir -p ~/.cache/tmp && TMPDIR=~/.cache/tmp claude
Then run the install command below in that session.
/plugin install claude-hud-cubence
Step 3: Configure the statusline
/claude-hud:setup
Install Node.js LTS first:
winget install OpenJS.NodeJS.LTS
Then restart your shell and run /claude-hud:setup again.
Done! Restart Claude Code to load the new statusLine config.
After installing, enable the Cubence display in your HUD config:
Edit ~/.claude/plugins/claude-hud-cubence/config.json:
{
"display": {
"showCubenceBalance": true
}
}
Your ~/.claude/settings.json must have the Cubence credentials:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-cubence-api-key",
"ANTHROPIC_BASE_URL": "https://api.cubence.com"
}
}
Claude HUD gives you better insights into what's happening in your Claude Code session.
| What You See | Why It Matters |
|---|---|
| Project path | Know which project you're in (configurable 1-3 directory levels) |
| Context health | Know exactly how full your context window is before it's too late |
| Cubence balance | Monitor your Cubence account balance and API latency in real-time |
| Tool activity | Watch Claude read, edit, and search files as it happens |
| Agent tracking | See which subagents are running and what they're doing |
| Todo progress | Track task completion in real-time |
[Opus] │ my-project git:(main*)
Context █████░░░░░ 45% │ Cubence $12.34 230ms
/claude-hud:configure)◐ Edit: auth.ts | ✓ Read ×3 | ✓ Grep ×2 ← Tools activity
◐ explore [haiku]: Finding auth code (2m 15s) ← Agent status
▸ Fix authentication bug (2/5) ← Todo progress
Customize your HUD anytime:
/claude-hud:configure
All options from the original claude-hud are supported, plus:
| Option | Type | Default | Description |
|---|---|---|---|
display.showCubenceBalance | boolean | false | Show Cubence account balance and API latency on the context line |
See the full option list in the original claude-hud documentation.
{
"lineLayout": "expanded",
"pathLevels": 2,
"gitStatus": {
"enabled": true,
"showDirty": true
},
"display": {
"showCubenceBalance": true,
"showTools": true,
"showAgents": true,
"showTodos": true
}
}
git clone https://github.com/nangongwentian-fe/claude-hud-cubence
cd claude-hud-cubence
npm ci && npm run build
npm test