Skip to content
    ↑↓ select↵ openesc close
    English中文
    npv12

    Context Sidebar

    v0.3.0UI & Themes
    @npv12/opencode-context-sidebar

    OpenCode TUI sidebar plugin for context usage progress

    GitHub stars

    0

    Monthly installs

    82

    16 in 7 days

    Composite scoreSCORE

    29.8

    Multi-signal model

    Last commit

    1 month ago

    2026-07-09

    Install and configure

    opencode.json

    Writes 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"]
    }

    opencode 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