
OpenCode v2 finally has a status line, and it's fully customizable
Hey folks,
For a long time I was jealous of Pi, Claude Code, and even dsh-tui users. They get these nice status lines showing what's going on in a session, and I looked for something like that for OpenCode v2 for ages but never found one that I can truly customize to my liking. So I made my own.
This status line plugin shows context window usage (with a bar that changes color as it fills up), cache usage, streaming speed, running shell count, and uncommitted changes in your repo, all in one line. There's also a /tps command that opens a dialog with the detailed numbers behind it.
The best part is how customizable it is:
- Put it anywhere. Bottom, sidebar, top, whatever. It can even live in more than one spot at the same time.
- Each spot can show its own segments, so you can decouple the info instead of cramming everything into one row.
- Pick what shows. Order, palettes (catppuccin, dracula, gruvbox, tokyo night, more), gauge width, padding.
- Responsive. On narrow windows segments wrap to the next row, and in a sidebar they stack one per row.
- Works great on small screens too, so it pairs nicely with Orca Mobile and Heeler (the mobile client for Herdr) if you check on sessions from your phone.
Install:
opencode plugin add @rashidrazak/opencode-status-line
Then restart OpenCode. If you prefer, you can add it to your cli.json by hand instead (not opencode.json, since it's a CLI plugin).
I also hide OpenCode's default footer so the status line is the only footer. To do that, disable the built-in prompt footer plugin in cli.json:
"plugins": [
"@rashidrazak/opencode-status-line",
"-opencode.prompt.footer"
]
Links:
- npm: https://www.npmjs.com/package/@rashidrazak/opencode-status-line
- github: https://github.com/rashidrazak/opencode-status-line
Note: This plugin is only compatible with OpenCode v2. Full docs are in the repo. Let me know what you think about it.