Skip to content

Opencode Status

The opencode-like status line: the shortcuts on the left and your segments on the right, the mode as a badge where you pass one.

On this page

Examples

The shared grammar with the look fixed: the same as <CliStatus preset="opencode-like" />, so it reads as the opencode-like look on its own or inside a session. Every part in all eight looks is on Agent CLI.

Installation

npx knowns-ui@latest add agent-cli-opencode
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

segments
{ id, label, tone?, badge?, wide? }[]
Left to right: the session's, a plugin's own.
hints
ReactNode | false
Defaultthe look's own
Key hints; false hides them.
statusLines
ReactNode[]
Rows of your own under the segments. Off by default.
aside
ReactNode
The right end of the hint row.

When to use

When to use

  • Showing the mode and a plugin's own status under an opencode-like input.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Opencode Status to my app and wire it to my own data.
  • I need showing the mode and a plugin's own status under an opencode-like input. Set that up with the Knowns UI Opencode Status.
  • Which Opencode Status props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "opencode-status" }) and search_docs({ query: "opencode status" }).

Need help?

Stuck on Opencode Status, or found something off? We read every message.