@jukanntenn/glm-plan-usage
v0.0.3
Published
GLM Plan Usage - StatusLine plugin for Claude Code
Maintainers
Readme
@jukanntenn/glm-plan-usage
GLM Plan Usage - StatusLine plugin for Claude Code
Installation
npm install -g @jukanntenn/glm-plan-usageFor users experiencing network issues, use npm mirror for faster installation:
npm install -g @jukanntenn/glm-plan-usage --registry https://registry.npmmirror.comFeatures
- 📊 Monitor: Display GLM (ZHIPU/ZAI) coding plan usage statistics
- 🌍 Cross-platform: Works on Windows, macOS, and Linux
- 📦 Easy installation: One command via npm
- 🎨 Beautiful: Color-coded warning levels based on usage percentage
Usage
Add to your Claude Code settings.json:
Linux/macOS:
{
"statusLine": {
"type": "command",
"command": "~/.claude/glm-plan-usage/glm-plan-usage",
"padding": 0
}
}Windows:
{
"statusLine": {
"type": "command",
"command": "%USERPROFILE%\\.claude\\glm-plan-usage\\glm-plan-usage.exe",
"padding": 0
}
}Environment Variables
Note: These variables are typically already configured in your Claude Code settings.json. If not, you can set them manually:
Linux/macOS:
export ANTHROPIC_AUTH_TOKEN="your-token-here"
export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"Windows (Command Prompt):
set ANTHROPIC_AUTH_TOKEN=your-token-here
set ANTHROPIC_BASE_URL=https://open.bigmodel.cn/api/anthropicWindows (PowerShell):
$env:ANTHROPIC_AUTH_TOKEN="your-token-here"
$env:ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"More Information
- GitHub: https://github.com/jukanntenn/glm-plan-usage
- Issues: https://github.com/jukanntenn/glm-plan-usage/issues
- License: MIT
