OpenCode is an open-source terminal coding agent whose TUI is driven almost entirely from the keyboard. Most commands sit behind a leader key — Ctrl-X by default — while the prompt line keeps standard readline editing, so the two halves are worth learning together. Every binding here is the shipped default and can be remapped in tui.json.
Official:Official site
All OpenCode keyboard shortcuts (Windows)
+ 2 more controls in the table below
+ 2 more controls in the table below
50 shortcuts
Quick 13
| Action | Shortcut |
|---|---|
| Submit Prompt | Enter |
| Insert Newline | ShiftEnter |
| Move to Line Start | CtrlA |
| Move to Line End | CtrlE |
| Delete to End of Line | CtrlK |
| Delete Previous Word | CtrlW |
| Delete to Line Start | CtrlU |
| Delete Next Word | AltD |
| Move Word Forward | AltF |
| Move Word Backward | AltB |
| Delete Whole Line | CtrlShiftD |
| Undo Input Edit | Ctrl− |
| Redo Input Edit | Ctrl. |
Config 12
| Action | Shortcut |
|---|---|
| List Models | CtrlXthenM |
| List Agents | CtrlXthenA |
| Cycle Agent | Tab |
| List Providers | CtrlA |
| Cycle Recent Models | F2 |
| Toggle Sidebar | CtrlXthenB |
| Open External Editor | CtrlXthenE |
| Cycle Agent (Back) | ShiftTab |
| Theme Picker | CtrlXthenT |
| Cycle Recent Models (Back) | ShiftF2 |
| Toggle Favorite Model | CtrlF |
| Cycle Variant | CtrlT |
Session 10
| Action | Shortcut |
|---|---|
| New Session | CtrlXthenN |
| List Sessions | CtrlXthenL |
| Compact Session | CtrlXthenC |
| Export Session | CtrlXthenX |
| Session Timeline | CtrlXthenG |
| Rename Session | CtrlR |
| Session Status | CtrlXthenS |
| Delete Session | CtrlD |
| Parent Session | CtrlXthenUP |
| First Child Session | CtrlXthenDOWN |
Control 8
| Action | Shortcut |
|---|---|
| Leader Key | CtrlX |
| Interrupt Session | Esc |
| Command Palette | CtrlP |
| Clear Input | CtrlC |
| Exit OpenCode | CtrlXthenQ |
| Toggle Which-Key Panel | CtrlAltK |
| Suspend to Shell | CtrlZ |
| Toggle Tips / Conceal | CtrlXthenH |
Context 7
| Action | Shortcut |
|---|---|
| Undo Message | CtrlXthenU |
| Copy Last Message | CtrlXthenY |
| Redo Message | CtrlXthenR |
| Page Up Messages | PgUp |
| Page Down Messages | PgDn |
| Jump to First Message | CtrlG |
| Jump to Last Message | CtrlAltG |
Sourced from opencode.ai Last verified (re-checked every 6 weeks) Shortcuts last changed
Unofficial reference. ShortcutPosters is not affiliated with, endorsed by, or sponsored by OpenCode. All product names, logos, and trademarks are property of their respective owners. See our licensing & trademark notice.
Get the OpenCode poster
4 art directions — pick one below, click to zoom & compare.
A printable, framed-quality poster of the essential OpenCode shortcuts for Windows — the keys worth keeping in view, designed to stay readable on a wall.
Customise this poster Pick the shortcuts, restyle the colours — download free. Get the framed-quality print Full 300 DPI, print-ready — at home or shipped to your door.These shortcuts, on physical keys
There is a Stream Deck profile for OpenCode — 67 shortcuts laid out across the keys, each one labelled, installed by double-clicking a file. It fits every current Stream Deck model.
Frequently asked questions
- Does the poster include every OpenCode shortcut?
- OpenCode has 50 keyboard shortcuts on Windows — the complete list is free to read on this page. The poster features the most essential ones, curated to stay readable on a wall.
- Can I print it at home?
- Yes. The digital download is a high-resolution 300 DPI file you can print at home or at any print shop, in standard frame sizes.
- Does it cover both Mac and Windows?
- We sell a separate edition per platform so every key matches your keyboard exactly. This page is the Windows edition.
- Is this an official OpenCode product?
- No. This is an unofficial reference poster and is not affiliated with or endorsed by OpenCode. All trademarks belong to their respective owners.
Thanks — your feedback helps us improve.
Promote your app
Built an app with great keyboard shortcuts? Get it into the database — a free, searchable reference page, and an optional printable poster your power users will pin to the wall.
- Free shortcut reference page
- Indexed & searchable
- Optional framed poster