A collection of opencode TUI sidebar plugins. Each panel is a small, standalone plugin published as its own npm package, so you can install only the ones you want.
| Package | Panel | Shows |
|---|---|---|
ocgo-usage-tui |
OCGO Usage | OpenCode Go rolling (5h), weekly and monthly limits, with time until each resets |
oc-session-context |
Session Context | Context window used this session, the model's limit, and session cost |
oc-model-speed |
Model Speed | Time to first token (TTFT) and tokens per second for the latest turn |
OCGO Usage
Rolling █░░░░░░░░░░░░░░░ 3% 2h19m
Weekly █░░░░░░░░░░░░░░░ 3% 6d4h
Monthly ███████████░░░░░ 69% 5d23h
Session Context
█████░░░░░░░░░░░░░░░░░░░ 42%
86,120 of 200,000 / $0.42
Model Speed
TTFT 1.2s
TPS 25.3
- opencode 1.18 or newer
- For the usage panel, an OpenCode Go subscription connected in opencode with
/connect
Install any panel with opencode plugin, which installs the npm package and adds it to your tui.json:
opencode plugin ocgo-usage-tui --global
opencode plugin oc-session-context --global
opencode plugin oc-model-speed --globalRestart opencode; each panel appears in the sidebar.
Each panel has a few settings at the top of its source file. See the panel's own README for the options:
This is a bun workspace; the packages live in packages/.
bun installThere is no build step: each plugin ships as a single .tsx file that opencode loads directly. The workspace devDependencies exist only so editors resolve the plugin API types.
To run a panel from a local checkout instead of the published package, point tui.json at its folder:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["/absolute/path/to/opencode-sidebars/packages/ocgo-usage-tui"]
}~ is not expanded here, so use an absolute path.
Releases are published to npm by .github/workflows/publish.yml when a v* tag is pushed. Each package is published only if its version is not already on the registry, so bump the version of the package(s) you changed before tagging.
MIT