Appearance
The TUI & Keybinds
OpenCode's terminal interface uses split panels for chat, file tree, and diff views. Tab switches between Plan and Build modes. This lesson covers the layout, navigation, and keyboard shortcuts.

What you'll learn
- Split-panel TUI: chat panel, file tree, diff viewer, all in one terminal window
- Tab key toggles between Plan mode (read-only) and Build mode (makes changes)
/undoand/redorevert and restore changes
Build it
Launch the OpenCode interface and familiarize yourself with the core commands. Use these shortcuts to navigate modes, manage context, and control version history.
bash
opencode
# Tab: toggle Plan/Build mode
# /init: analyze project and create AGENTS.md
# /undo: revert last change
# /redo: restore reverted change
# /share: create a shareable link to the conversationWhat goes wrong
| Mistake | How you notice it | The fix |
|---|---|---|
| Keybinds conflict with terminal | Tab or other keys don't work as expected | Customize keybinds in OpenCode config |
| Undo not available | /undo returns error | Undo only works for the most recent change in the current session |
Next: Plan & Build Modes