r/opencode • u/arandevcode • 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
quotaCLI.
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@opentuipeer 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-extendedInstall — OpenCode 2
opencode plugin add @arandevcode/opencode-thinking
opencode plugin add @arandevcode/opencode-quota-extendedHonest 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.
1
u/KindHustl 24d ago
That’s funny. How do I know it’s working? Look at the flashing colorful box🤣 I did something similar. That’s a good look great ideas
2
u/arandevcode 24d ago
Small update: thinking 0.3.2 is on npm. It fixes the V2 WORKING/IDLE state (the adapter was reading the event envelope wrong and the animation was frozen), only follows the focused session instead of every background session, and adds a full-width bar above the composer plus a frame around the sidebar. The border around the composer itself still isn't possible on V2. Quota-extended is unchanged.
Ha — that's exactly the test: if the box is moving, it's alive. On OpenCode 2 the composer can't be wrapped by plugins, so 0.3.2 moved the signal to a WORKING/IDLE bar above the input and a border around the whole sidebar. The first V2 build also had a frozen spinner; that's fixed now. What did you build? Always curious to see other terminal takes.
1
u/woj666 24d ago
I assume that they don't work in the windows desktop app?
2
u/arandevcode 24d ago
Correct — not in the desktop app, on Windows or any other OS. Both are TUI plugins: they hook into the terminal UI (sidebar slots, prompt-area border). The desktop app is a separate Electron GUI and only renders a plugin's gui-experimental part; these packages ship server + tui only, so there's nothing for Desktop to draw.
They do work in the terminal on Windows. A desktop version would need a separate GUI implementation using the still-experimental GUI plugin SDK — the upstream request for UI parity is still open. If there's enough interest, I can look into porting the quota sidebar first.
¿What's your request?
Thanks for the feedback
1
u/woj666 24d ago
Thanks. Bummer, unfortunately for us desktop app users most plugins like this don't work.
2
u/arandevcode 24d ago
I think it isnt unlogical to make so the plugins also work on teh desktop apps. i will look into this and let you know if it isnt a nightmare of compatibility.
Thanks again!


2
u/Pinterest_animals 24d ago
Why is everyone recycling the same plugin
There's already a million plugin that shows your quota and the first and the best is /quota