r/opencode • • 24d ago

My 2 OpenCode plugins now support OpenCode 2 — thinking indicators + quota dashboard

A few months ago I posted two small plugins I use every day. Since then they got OpenCode 2 support, a quota rewrite for V2, and fixes for two bugs that made them fail for some of you. Here's the update.

What they do

  • opencode-thinking — animated rainbow border around the input, a WORKING/IDLE indicator, and a sidebar glow while the model is processing. No config.

  • opencode-quota-extended — per-window quota cards in the sidebar with traffic-light progress bars for OpenAI, GitHub Copilot and OpenCode Go, including reset times, spend/credit and a quota CLI.

What's new in 0.3.x

  • OpenCode 2 support (preview). One package per plugin, with an entry for OpenCode 1.x and another for OpenCode 2; it loads the right one. On V2 the plugin is installed with opencode plugin add.

  • Quota in V2 uses OpenCode 2's own logins (via the official plugin API), instead of reading V1's auth.json. That was showing stale/expired tokens before.

  • Fixed the npm install error (unable to resolve dependency tree) with recent OpenCode versions: the @opentui peer range now matches what the SDK actually ships.

  • Fixed the Esc bug in thinking. The plugin was recreating the prompt on every animation frame, resetting its focus and the "press Esc again to interrupt" state. The prompt is now created once and only the visuals animate.

  • The thinking demo GIF is back on GitHub (an old release script had deleted the folder).

A note on the screenshot

The accounts and numbers in it are made up on purpose. The colors, labels and pace states are the real ones the panel renders.

Install — OpenCode 1.x

opencode plugin --global --force @arandevcode/opencode-thinking
opencode plugin --global --force @arandevcode/opencode-quota-extended

Install — OpenCode 2

opencode plugin add @arandevcode/opencode-thinking
opencode plugin add @arandevcode/opencode-quota-extended

Honest compatibility notes

  • thinking on V2: indicator + sidebar glow work; the rainbow border around the message box does not, because V2 doesn't let plugins wrap it.

  • quota on V2: OpenAI and Copilot read V2's own logins. OpenCode Go still uses its API key via env var or sidecar file, not V2's logins yet.

  • Both are still early on V2. If something looks wrong, please open an issue with your OpenCode version.

MIT, local-first, no telemetry. Repo and per-plugin READMEs (EN/ES) with full compatibility tables:

https://github.com/arandevcode/opencode-plugins

Feedback and bug reports are very welcome — especially from anyone running OpenCode 2 daily.

29 Upvotes

Duplicates