跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    marstid

    Synthetic Usage

    v1.0.0界面与主题
    opencode-synthetic-usage

    OpenCode 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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    An OpenCode TUI plugin that displays your Synthetic quota usage in the sidebar.

    Synthetic usage sidebar

    Install

    Add to your tui.json:

    • Global: ~/.config/opencode/tui.json
    • Project: tui.json in 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