Skip to content

[FEATURE]: customizable status line with Go usage tracking #25875

@cioffiAI

Description

@cioffiAI

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Feature Request: Customizable Status Line

Claude Code supports a statusline setting in ~/.claude/settings.json that lets users display arbitrary info (git branch, time, costs, etc.) in the bottom bar.
It would be great if OpenCode had something similar — ideally a small DSL or template string in tui.json that renders into the status bar.

Specific use case: Go usage at a glance

As a Go subscriber, I'd love to see my usage for the current period directly in the TUI status line, e.g.:
Go: 42% (5h) | 38% (week) | 25% (month)
Right now I have to open opencode.ai/auth in a browser to check. Having this info persist in the terminal would save a lot of context switching.

What I'm imagining

// tui.json
{
  "statusline": {
    "left": "{git:branch} {go:usage_5h}",
    "right": "{model} {go:usage_week} | {go:usage_month}"
  }
}
Or even simpler — just expose the Go usage via an API/env that I could pipe into a plugin hook or a custom command.
Alternatives considered
- Using the plugin system — but there's no hook to modify the TUI chrome/status bar
- Using status_view (<leader>s) — useful but not persistent/glanceable
- Web console — works but breaks flow
Would love to hear if there's already a way to do this, or if this is something the team would consider adding.
**Labels:** `feature-request`, `tui`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions