Repository navigation
v0.9.0
Initial release.
Derived from guyinwonder168/opencode-glm-quota (as of PR #52 by @itelyatnikov80, commit dafcf639),
security-reviewed and then reworked into its own zero-dependency project.
Not a fork and not intended to be merged back.
THE BIGGEST IMPROVEMENT FOR THE END USER: Neither the footer meter nor /zai-limits spends credits or tokens:
both only make plain monitoring GETs, with no agent and no model call.
Full Changelog: https://github.com/ManeFunction/opencode-zai-limits/commits/v0.9.0
Features:
- improved /zai-limits TUI popup structure
- added opencode bun:sqlite support to remove external sqlite dependency
- Renamed glm-limits to zai-limits
- /glm-limits do not launch subagent anymore
- initial rework
Fixes:
- rename glm leftovers
- share MCP tool labels and format MCP usage numbers
- fall back to per-model tokens when 24h totals read zero
- drop the 40M token sentinel and its fallback loop
- surface API errors instead of an empty report
- decode response body as a UTF-8 stream
Refactor:
- move the report renderer into src/report/
- one duration helper for the report and the meter
- parse the quota response into one typed model