What’s Covered in This OpenCode Cheat Sheet (August 2026)
This page is for OpenCode (opencode.ai) — the open-source AI coding agent TUI — not OpenAI Codex and not VS Code. Defaults below match the official tui.json keybinds: leader Ctrl+X, command list Ctrl+P, interrupt Esc, plus slash commands (/new, /sessions, /models, /undo). Use in-page search for a hotkey or command name. Bindings merge in tui.json; set a key to none to disable it.
How the OpenCode leader key works
Press Ctrl+X, release it, then press the action key. Example: Ctrl+X then N starts a new session. Holding both keys at once does nothing — that is the usual reason “OpenCode shortcuts don’t work.” leader_timeout defaults to 2000 ms. Subagent navigation is an exception: Up is parent, Left/Right cycle children, Ctrl+X then Down jumps to the first child.