opencode-free-usage-monitorOpenCode TUI plugin showing free model API usage in the sidebar
GitHub 星标
0
月装机量
97
近 7 天 37
综合评分SCORE
27.9
生态多维模型
最近提交
2 个月前
2026-05-28
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-free-usage-monitor@1.0.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-free-usage-monitor@1.0.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-free-usage-monitoropencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→OpenCode TUI sidebar plugin that displays free model API usage (count, limit, countdown to next reset) in real-time.
Features
- Monitors requests to free-tier models (Big Pickle, DeepSeek-V4-Flash-Free, Qwen3.6 Plus Free, Nemotron 3 Super Free)
- Displays current/total usage with a progress bar
- Session-specific request count
- Countdown timer to next available request
- Retry-after countdown when rate-limited
- Persistent usage tracking across sessions via KV storage
Installation
Add to your opencode.json or tui.json plugin array:
{
"plugin": ["opencode-free-usage-monitor"]
}
License
MIT