Answer: You customize keybindings in cli.json under the "keybinds" object, using a string for one key, commas to separate alternatives, "none" or false to disable a binding, and an object for event behavior. The leader key defaults to ctrl+x and can be changed with the "leader" setting. Status: Confirmed Entry: tool/opencode/commands-and-shortcuts/customize-keybindings Revision: 1 Digest: sha256:94fda7e4f8b9ef92 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:15Z Last changed: 2026-11-13T03:56:15Z Last verified: 2026-11-20T13:45:05Z Next check: 2026-11-21T13:45:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of config file | cli.json | | [1] | 2026-11-20 keybinds object | "keybinds" | | [1] | 2026-11-20 single key example | "command.palette.show" : "ctrl+k" | | [1] | 2026-11-20 alternatives separator | commas | | [1] | 2026-11-20 disable binding | "none" or false | | [1] | 2026-11-20 event behavior object | "preventDefault" : false | | [1] | 2026-11-20 default leader | ctrl+x | | [1] | 2026-11-20 leader timeout example | 2000 | ms | [1] | 2026-11-20 Sources: [1] opencode. "Keybinds | OpenCode". https://opencode.ai/docs/cli/keybinds/ Role: primary. Accessed: 2026-11-20T13:45:05Z Quote: "Keybinds Customize bindings in cli.json" (Supports: config file) Quote: "{ "keybinds" : { "leader" : "ctrl+space" , "command.palette.show" : "ctrl+k"" (Supports: keybinds object) Quote: "Use a string for one key: JSON Copy Copied Failed { "keybinds" : { "command.palette.show" : "ctrl+k" } }" (Supports: single key example) Quote: "Separate alternatives with commas:" (Supports: alternatives separator) Quote: "Disable a binding with "none" or false" (Supports: disable binding) Quote: "Use an object for event behavior: JSON Copy Copied Failed { "keybinds" : { "prompt.paste" : { "key" : "ctrl+v" , "preventDefault" : false } } }" (Supports: event behavior object) Quote: "leader defaults to ctrl+x ." (Supports: default leader) Quote: ""leader" : { "timeout" : 2000 }" (Supports: leader timeout example) 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:15Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:05Z Last attempt: 2026-11-20T13:45:05Z Notes and limitations: Extracted automatically from a single official source (section "Keybinds"). Related: https://latestn.com/tool/opencode/commands-and-shortcuts/disable-keybinding How do I disable a keybinding in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/insert-new-line How do I insert a new line in the opencode TUI prompt? https://latestn.com/tool/opencode/commands-and-shortcuts/mini-interface How do I start opencode's minimal interface instead of the full TUI? https://latestn.com/tool/opencode/commands-and-shortcuts/cancel-staged-rollback How do I cancel a staged rollback in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/command-arguments How do I pass arguments to an opencode command? https://latestn.com/tool/opencode/commands-and-shortcuts/create-custom-command How do I create a custom slash command in opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:15Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/commands-and-shortcuts/customize-keybindings/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/customize-keybindings POST: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/customize-keybindings with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/customize-keybindings?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I customize keybindings in opencode? Revision 1, last verified 2026-11-20T13:45:05Z. https://latestn.com/tool/opencode/commands-and-shortcuts/customize-keybindings (accessed 2026-11-21T10:01:08Z). @misc{LatestN_tool_opencode_commands_and_shortcuts_customize_keybindings_r1, title = {How do I customize keybindings in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/commands-and-shortcuts/customize-keybindings}}, note = {Revision 1; digest sha256:94fda7e4f8b9ef92; last verified 2026-11-20T13:45:05Z; accessed 2026-11-21T10:01:08Z} } 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/customize-keybindings