JSPM

opencode-firmware-quota

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q46301F
  • License MIT

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

Package Exports

  • opencode-firmware-quota
  • opencode-firmware-quota/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opencode-firmware-quota) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

opencode-firmware-quota

OpenCode plugin for monitoring your Firmware API quota usage.

Features

  • firmware_quota tool - AI can check your quota on demand
  • /usage command - Quick quota check via slash command
  • 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:

{
  "plugin": ["opencode-firmware-quota"]
}

Prerequisites

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

/connect

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

Usage

Slash Command

/usage

Shows a toast notification with your current quota usage.

AI Tool

Ask the AI to check your quota:

Check my Firmware quota

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

Configuration

The plugin reads your Firmware API key from:

  1. FIRMWARE_API_KEY environment variable (if set)
  2. OpenCode auth storage (~/.local/share/opencode/auth.json)

No additional configuration is required if you've connected Firmware via /connect.

License

MIT