OpenCode logo

OpenCode

Open-source AI coding agent for terminal, IDE, and desktop with multi-model support and LSP integration

62 shortcuts

Visit website
Platform

Navigation

ActionShortcut
Move up+/K
Move down+/J
Page up+U
Page down+D
Go to topG+G
Go to bottomG
Move up+/K
Move down+/J
Page up+U
Page down+D
Go to topG+G
Go to bottomG

Input

ActionShortcut
Submit message
New line+
Clear input+C
Cancel current actionEsc
Submit messageEnter
New line+Enter
Clear input+C
Cancel current actionEsc

Sessions

ActionShortcut
New session+N
List sessions+S
Switch session+Tab
Close session+W
New session+N
List sessions+S
Switch session+Tab
Close session+W

File Operations

ActionShortcut
Add file context@filename
Add folder context@foldername/
Search codebase@codebasequery
Web search@webquery
Add file context@filename
Add folder context@foldername/
Search codebase@codebasequery
Web search@webquery

Actions

ActionShortcut
Accept changeY
Reject changeN
Accept all changesA
Reject all changesR
Show diffD
Undo last actionU
Accept changeY
Reject changeN
Accept all changesA
Reject all changesR
Show diffD
Undo last actionU

View

ActionShortcut
Toggle sidebar+B
Toggle file tree+E
Focus inputI
Focus outputO
Toggle sidebar+B
Toggle file tree+E
Focus inputI
Focus outputO

Help

ActionShortcut
Show help?
Show keybindings+?
QuitQ+/+C
Show help?
Show keybindings+?
QuitQ+/+C