Loading...
Loading...
Install and configure a Claude Code status line that displays real-time ZenMux account information: subscription tier, 5-hour and 7-day quota usage with color-coded progress bars, and PAYG wallet balance, alongside standard session info (model, git, context usage, prompt cache). Trigger on: "status line", "statusline", "set up status bar", "show ZenMux in status bar", "install ZenMux statusline", "configure status line with ZenMux", "状态栏", "配置状态栏", "安装状态栏", "在状态栏显示ZenMux信息". Activate when user wants to SET UP, INSTALL, CONFIGURE, or CUSTOMIZE a Claude Code status line that includes ZenMux account data. Do NOT trigger for querying usage interactively (use zenmux-usage), docs (use zenmux-context), or general setup (use zenmux-setup).
npx skill4agent add zenmux/skills zenmux-statuslinescripts/zenmux-statusline.shLine 1: [model-slug] 📁 dir | 🌿 branch | █████░░░░░ 58% ctx | 💾 r72.0k w5.0k
Line 2: ⚡ Ultra | 🔑 Sub sk-ss-...6e6 | 5h █░░░░ 19% · 7d █░░░░ 24% | 💳 Bal $492.74ZENMUX_MANAGEMENT_KEYLine 2: ⚙ Set ZENMUX_MANAGEMENT_KEY to display account data → zenmux.ai/platform/managementcurljqcommand -v curl && command -v jqbrew install jqecho "${ZENMUX_MANAGEMENT_KEY:+set}"setThe status line needsto fetch account data. Create one at https://zenmux.ai/platform/management, then add to your shell profile:ZENMUX_MANAGEMENT_KEYexport ZENMUX_MANAGEMENT_KEY="sk-mg-v1-..."Without the key, the status line will still show session info (model, git, context remaining) and display a setup hint on Line 2.
SKILL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
# Falls back to the skill directory path from the skills install locationcp "SKILL_SCRIPTS_DIR/zenmux-statusline.sh" ~/.claude/zenmux-statusline.sh
chmod +x ~/.claude/zenmux-statusline.shSKILL_SCRIPTS_DIRscripts/~/.claude/statusline*.shcat ~/.claude/settings.jsonstatusLine{
"statusLine": {
"type": "command",
"command": "sh ~/.claude/zenmux-statusline.sh",
"refreshInterval": 120
}
}refreshInterval: 120echo '{"model":{"id":"test-model"},"workspace":{"current_dir":"'$(pwd)'"},"context_window":{"used_percentage":0},"session_id":"verify-install"}' | sh ~/.claude/zenmux-statusline.shStatus line installed. It will appear at the bottom of Claude Code on your next interaction.What it shows:
- Line 1: Model slug, directory, git branch, context used bar, last-call prompt cache read/write
- Line 2: ZenMux plan tier, API key type + masked key, 5-hour and 7-day quota usage with color-coded bars, PAYG wallet balance
Colors:
- Context used: Green (<70%), yellow (70–89%), red (90%+)
- Quota usage: Green (<70%), yellow (70–89%), red (90%+)
Caching: ZenMux API data is cached for 120 seconds to keep the status line fast. Git data is cached for 5 seconds.To remove it later, delete thefield fromstatusLine.~/.claude/settings.json
~/.claude/settings.json