opencode-synthetic-usageOpenCode TUI plugin for Synthetic API quota usage
GitHub 星标
0
月装机量
10
近 7 天 1
综合评分SCORE
20.2
生态多维模型
最近提交
3 个月前
2026-04-23
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-synthetic-usage@1.0.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-synthetic-usage@1.0.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-synthetic-usageopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→An OpenCode TUI plugin that displays your Synthetic quota usage in the sidebar.

Install
Add to your tui.json:
- Global:
~/.config/opencode/tui.json - Project:
tui.jsonin your project root
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
["opencode-synthetic-usage", {}]
]
}
Set your API key:
export SYNTHETIC_API_KEY="your-api-key"
Configuration
Options are passed as the second element of the plugin tuple:
{
"plugin": [
["opencode-synthetic-usage", { "showSearchHourly": false, "refreshMs": 30000 }]
]
}
| Option | Type | Default | Description |
|---|---|---|---|
showRollingFiveHour |
boolean | true |
Show the 5-hour rolling quota panel |
showWeeklyToken |
boolean | true |
Show the weekly token budget panel |
showSearchHourly |
boolean | true |
Show the hourly search quota panel |
refreshMs |
number | 60000 |
Refresh interval in ms (min: 15000) |
apiUrl |
string | https://api.synthetic.new |
Custom API base URL |