OpenCode2 plugin to show more detailed state below the text input
4
stars
46
commits
TypeScript
primary language
Aug 30, 2026
updated
OpenCode 2 plugin that displays a persistent status HUD below the text input in the TUI. It is a native TUI plugin, not an assistant-message renderer, so it does not add HUD content to a session transcript.

Add it to the plugins array in ~/.config/opencode/cli.json, for example:
{
"plugins": [
"@ndom91/opencode-hud"
]
}
OpenCode downloads and loads the package. Restart OpenCode after changing the configuration.
[!WARNING] To show
5handweeklyCodex subscription usage, the HUD plugin queries the OpenAI endpoint through your system's Codex authorization. This is disabled by default. See PRIVACY.md before enabling it with thecodexUsagepackage option. This is the same mechanism as used by CodexBar and others.
The default HUD can show the following native TUI data:
compaction likely soon warning at
80% usage and the active compaction state.The default HUD shows all available status rows. Disable individual groups with
package options in ~/.config/opencode/cli.json:
{
"plugins": [
{
"package": "@ndom91/opencode-hud",
"options": {
"agents": false,
"codexUsage": true,
"compaction": false,
"context": true,
"git": true,
"shell": true,
"tools": true
}
}
]
}
| Option | Controls |
|---|---|
agents | Running subagents, elapsed time, and context usage |
codexUsage | Disabled by default. Set to true to show Codex 5-hour and weekly usage limits. |
compaction | Active compaction state and the 80% context warning |
context | Current session context usage |
git | Branch, dirty state, and change summary |
shell | Running shell commands |
tools | Recent tool activity and brief tool-failure row |
Requirements:
opencode2Install dependencies and validate the project:
pnpm install
pnpm format
pnpm typecheck
pnpm test
Start OpenCode from this repository:
opencode2 .
OpenCode discovers .opencode/plugins/tui/status.tsx automatically. Start or
open a session to see the HUD under the prompt.
[!NOTE] The OpenCode 2 plugin API is beta and liable to change. Please check NOTES.md and validate against the installed
@opencode-ai/pluginruntime types if making changes.
MIT
46 commits
Hacker News (1)
TypeScript
100.0%
OpenCode2 plugin to show more detailed state below the text input
4
stars
46
commits
TypeScript
primary language
Aug 30, 2026
updated
OpenCode 2 plugin that displays a persistent status HUD below the text input in the TUI. It is a native TUI plugin, not an assistant-message renderer, so it does not add HUD content to a session transcript.

Add it to the plugins array in ~/.config/opencode/cli.json, for example:
{
"plugins": [
"@ndom91/opencode-hud"
]
}
OpenCode downloads and loads the package. Restart OpenCode after changing the configuration.
[!WARNING] To show
5handweeklyCodex subscription usage, the HUD plugin queries the OpenAI endpoint through your system's Codex authorization. This is disabled by default. See PRIVACY.md before enabling it with thecodexUsagepackage option. This is the same mechanism as used by CodexBar and others.
The default HUD can show the following native TUI data:
compaction likely soon warning at
80% usage and the active compaction state.The default HUD shows all available status rows. Disable individual groups with
package options in ~/.config/opencode/cli.json:
{
"plugins": [
{
"package": "@ndom91/opencode-hud",
"options": {
"agents": false,
"codexUsage": true,
"compaction": false,
"context": true,
"git": true,
"shell": true,
"tools": true
}
}
]
}
| Option | Controls |
|---|---|
agents | Running subagents, elapsed time, and context usage |
codexUsage | Disabled by default. Set to true to show Codex 5-hour and weekly usage limits. |
compaction | Active compaction state and the 80% context warning |
context | Current session context usage |
git | Branch, dirty state, and change summary |
shell | Running shell commands |
tools | Recent tool activity and brief tool-failure row |
Requirements:
opencode2Install dependencies and validate the project:
pnpm install
pnpm format
pnpm typecheck
pnpm test
Start OpenCode from this repository:
opencode2 .
OpenCode discovers .opencode/plugins/tui/status.tsx automatically. Start or
open a session to see the HUD under the prompt.
[!NOTE] The OpenCode 2 plugin API is beta and liable to change. Please check NOTES.md and validate against the installed
@opencode-ai/pluginruntime types if making changes.
MIT
Hacker News (1)
46 commits
TypeScript
100.0%