@npv12/opencode-context-sidebarOpenCode TUI sidebar plugin for context usage progress
0
82
16 in 7 days
29.8
Multi-signal model
1 month ago
2026-07-09
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-context-sidebar@0.3.0"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-context-sidebar@0.3.0"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D @npv12/opencode-context-sidebaropencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
OpenCode TUI sidebar plugin that displays context window usage, token counts, and session cost as a progress bar.
Features
- Visual progress bar showing context window usage percentage
- Color-coded bar (accent → warning → error as usage increases)
- Displays token count, context window limit, and session cost
- Updates in real-time as the conversation progresses
Installation
opencode plugin add @npv12/opencode-context-sidebar
Or add to your opencode.json:
{
"plugins": {
"@npv12/opencode-context-sidebar": {}
}
}
Attribution
This plugin is adapted from streetturtle's context-progress plugin in the opencode-better-sidebar repository.
License
MIT