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

    Firmware Quota

    v1.0.5模型接入
    opencode-firmware-quota

    OpenCode plugin for Firmware API quota monitoring - check usage, get warnings, and track your Firmware API consumption

    GitHub 星标

    3

    月装机量

    479

    近 7 天 33

    综合评分SCORE

    30.1

    生态多维模型

    最近提交

    6 个月前

    2026-01-22

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-firmware-quota@1.0.5"]
    }

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

    OpenCode plugin for monitoring your Firmware API quota usage.

    Features

    • firmware_quota tool - AI can check your quota on demand
    • Auto-show on session start - See your quota when starting a new session
    • Low quota warnings - Get notified when usage exceeds 75% or 90%

    Installation

    Add to your opencode.json:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-firmware-quota"]
    }
    

    Configuration

    Connect your Firmware account using the /connect command in OpenCode:

    /connect
    

    Search for Firmware and enter your API key from app.firmware.ai.

    OpenCode handles secure storage of your API key. This plugin only accesses it to make direct requests to Firmware's quota API endpoint—nothing else. The code is open-source and can be reviewed to verify this.

    Usage

    AI Tool

    Ask the AI to check your quota:

    Check my Firmware quota
    

    The AI will use the firmware_quota tool and display your current usage.

    Automatic Notifications

    • Session start: Quota is displayed when you start a new session
    • Low quota (75%+): Warning notification shown
    • Critical quota (90%+): Error notification shown

    Optional: /usage Slash Command

    If you prefer a slash command, you can create a custom command file. Note that this will go through the AI (uses tokens).

    Create ~/.config/opencode/commands/usage.md:

    ---
    description: Check Firmware API quota
    ---
    Check my Firmware quota using the firmware_quota tool and show me the result.
    

    Then use /usage in OpenCode to trigger it.

    License

    MIT