Answer: You set the leader key in cli.json under the "keybinds" object, for example "leader": "ctrl+space". The leader defaults to ctrl+x. Status: Confirmed Entry: tool/opencode/commands-and-shortcuts/set-leader-key Revision: 1 Digest: sha256:d9c184b74caa6ddc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:16Z Last changed: 2026-11-13T03:56:16Z Last verified: 2026-11-20T13:45:07Z Next check: 2026-11-21T13:45:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of leader key setting | ctrl+space | | [1] | 2026-11-20 default leader | ctrl+x | | [1] | 2026-11-20 leader timeout | 1500 | ms | [1] | 2026-11-20 Sources: [1] opencode. "Keybinds | OpenCode". https://opencode.ai/docs/cli/keybinds/ Role: primary. Accessed: 2026-11-20T13:45:07Z Quote: ""leader" : "ctrl+space"" (Supports: leader key setting) Quote: "leader defaults to ctrl+x ." (Supports: default leader) Quote: ""leader" : { "timeout" : 1500 }" (Supports: leader timeout) Snapshot SHA-256: e17bc0a2e5812a891e7dede160f3052453564be4756dddc83e464dfc3877744a (captured 2026-11-13T03:56:15Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:56:16Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:07Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:07Z Last attempt: 2026-11-20T13:45:07Z Notes and limitations: Extracted automatically from a single official source (section "Keybinds"). Related: https://latestn.com/tool/opencode/commands-and-shortcuts/shell-in-commands How do I run shell commands from an opencode command? https://latestn.com/tool/opencode/commands-and-shortcuts/tui-plugin-commands-keymaps How do I add custom commands and keymaps in an opencode TUI plugin? https://latestn.com/tool/opencode/commands-and-shortcuts/undo-recent-changes How do I undo recent conversation and file changes in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/run-non-interactive-prompt How do I run a single opencode prompt without opening the interactive interface? https://latestn.com/tool/opencode/commands-and-shortcuts/run-shell-command How do I run a shell command in opencode TUI? https://latestn.com/tool/opencode/commands-and-shortcuts/run-shell-commands How do I run shell commands with opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/commands-and-shortcuts/set-leader-key/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/set-leader-key POST: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/set-leader-key with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/set-leader-key?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the leader key in opencode? Revision 1, last verified 2026-11-20T13:45:07Z. https://latestn.com/tool/opencode/commands-and-shortcuts/set-leader-key (accessed 2026-11-21T10:01:52Z). @misc{LatestN_tool_opencode_commands_and_shortcuts_set_leader_key_r1, title = {How do I set the leader key in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/commands-and-shortcuts/set-leader-key}}, note = {Revision 1; digest sha256:d9c184b74caa6ddc; last verified 2026-11-20T13:45:07Z; accessed 2026-11-21T10:01:52Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/commands-and-shortcuts/set-leader-key