Skip to content

Opencode Header

The opencode-like launch screen: the block wordmark in the middle, the prompt box under it with its keys, then folder, MCP and version at the foot.

On this page

Examples

Drawn for this look alone. <CliHeader preset="opencode-like" /> draws this part too, so the generic API keeps working. 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

agent / model / cwd
string
Who is running, on which model, in which folder.
mark
ReactNode
Defaulta terminal glyph
The small mark beside the name in a header line.
meta
ReactNode
Extra text where the look prints it, such as the grok-like top bar.
product / version
string
Defaultthe agent / per look
The product name and version.
headline / subhead / tips / menu / commands
per look
Defaultmade-up defaults
The news, tips, launch menu or command list this look opens with.
logo
ReactNode
Defaultthe look's own mark
Replace the large mark with your own.

When to use

When to use

  • The launch screen of an opencode-like demo.

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 Header to my app and wire it to my own data.
  • I need the launch screen of an opencode-like demo. Set that up with the Knowns UI Opencode Header.
  • Which Opencode Header props do I need for a minimal setup? Show me a short example.

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

Need help?

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