Omahub
← All plugins
A

OpenCode Go

by ardfard

OpenCode Go limits and catalog: subscription windows plus models sorted by cost from the Go API.

Security review

No obvious issues detected

Deterministic scan — not a security guarantee

None
Risk level
None
Analyzed commit
3ccf9b6
Scanned
1 month ago

No potentially dangerous behavior detected in the analyzed commit.

Automated analysis only — not a security guarantee.

AI advisory review

No obvious issues detected

Language-model assessment · ~deepseek/deepseek-v4-flash-latest — advisory only

None
AI risk level
None
Recommendation
install
Model
~deepseek/deepseek-v4-flash-latest
Analyzed commit
3ccf9b6
Reviewed
1 month ago

The plugin is a transparent bar widget that fetches OpenCode Go usage and model pricing from opencode.ai and models.dev. It reads the user's OpenCode Go API key from the standard auth file and uses it only to query the user's own usage endpoint, with no exfiltration or destructive actions. The shell collector is well-scoped with timeouts and output caps, and the QML code sanitizes parsed data.

How this check works

This review combines the deterministic scan (the rule-based results above) with an independent look at the plugin's code by a language model. The model reads a trimmed sample of the repository's files, the manifest, and the README, then gives a plain-language risk level and a recommendation: install (no notable danger), review (look closer first), or avoid (clearly dangerous).

It runs on the same analyzed commit as the deterministic scan and is strictly advisory — it is not a security guarantee and never blocks a plugin by itself. A human moderator still reviews plugins before they are listed.

AI advisory only — automated analysis, not a security guarantee.

Install
$ omarchy plugin add https://github.com/ardfard/omarchy-opencode-usage --enable
Developer Tools #bar #quickshell #ai

omarchy-opencode-go-usage

Omarchy bar widget for OpenCode Go. Works with any agent (OpenCode, pi, hermes, omp, etc.) that uses your Go API key.

It shows:

  • Go limit windows — rolling 5h ($12), weekly ($30) and monthly ($60) from GET /zen/go/v1/usage, with progress bars, reset countdowns and behind-pace highlighting.
  • Model catalog — live list from GET /zen/go/v1/models, current $/M from models.dev (includes promos), sorted by cost, quota, or name.
  • Picks — computed daily from live pricing: stretch quota (most ~req/5h) and best value (top quota after excluding the stretch winner). Muse Spark excluded (trains on prompts).

The bar is an icon pill. Hover for limit %. Click for the full panel.

Inspired by local.opencode-go.

Install

omarchy plugin add https://github.com/ardfard/omarchy-opencode-usage.git --enable

Put your Go key in ~/.local/share/opencode/auth.json under opencode-go (OpenCode TUI: /connect → OpenCode Go). Other agents use the same key against https://opencode.ai/zen/go/v1.

Remove

omarchy plugin remove local.opencode-go-usage

Dependencies

  • curl — Go limits, catalog, and models.dev pricing fetch
  • jq — JSON assembly

Limits need an opencode-go key. Catalog and pricing fetches are public.

How prices update

On each refresh (default hourly), collector.sh:

  1. Fetches model IDs from https://opencode.ai/zen/go/v1/models
  2. Fetches current input/output $/1M from https://models.dev/api.json under opencode-go (this tracks promos, e.g. GLM-5.3-Flash at $0.075/$0.25)

There is no pricing field on the Go API itself. models.dev is maintained by the OpenCode team and updates when rates change.

Stretch quota / best value picks recompute at most once per day from current pricing: estimate ~req/5h as $12 rolling budget ÷ cost per typical agent turn (830 input + 71.5K cached + 295 output tokens). Stretch = highest quota among eligible models; best value = next highest (Muse Spark excluded). Limits and catalog prices still refresh hourly.

Settings (Omarchy Settings → Widgets)

  • refreshIntervalSec 60–3600 (default 3600, hourly)
  • maxModels 3–30 (default 12) — catalog rows before folding into "other"
  • sortBy cost / quota / name (default cost)

License

MIT — see LICENSE.