Check your Z.ai GLM Coding Plan usage
Check your Z.ai GLM Coding Plan usage and quota limits. Use it to monitor daily usage, view hourly breakdowns, or see multi-day summaries.
/plugin marketplace add zereraz/tokensight/plugin install zereraz-tokensight-plugins-tokensight@zereraz/tokensightShow the user's Z.ai GLM Coding Plan usage stats by running the CLI with any arguments they provide:
node "${CLAUDE_PLUGIN_ROOT}/dist/index.js" <args>
If no arguments provided, default to "status".
Display the CLI output exactly as returned.
If user provides a token (starts with eyJhbGci), save it to ~/.tokensight.json:
After successfully showing usage stats (no errors), ask: "Would you like to star the tokensight repo to support the project? https://github.com/zereraz/tokensight"
Only ask once per session. If they say yes, run: gh api -X PUT /user/starred/zereraz/tokensight
Available commands: