~/.atomic/agent/keybindings.json (or %USERPROFILE%\.atomic\agent\keybindings.json on Windows; relocated by ATOMIC_CODING_AGENT_DIR). For editor and message-queue workflows, see Use interactive mode. If Shift+Enter, Alt shortcuts, or Escape misbehave in your terminal, see Configure your terminal or Run Atomic in tmux.
Customize a shortcut
Follow these steps to remap shortcuts and verify your changes without restarting Atomic:1
Open keybindings.json
Open or create
~/.atomic/agent/keybindings.json in your editor.2
Add your shortcut mappings
Add the action IDs you want to remap and save the file. Including
"$schema" gives your editor completion and validation (Atomic ignores $schema at load time):3
Reload keybindings
Inside Atomic, run
/reload. Atomic loads the updated file without restarting your session.4
Confirm the active shortcuts
Run
/hotkeys inside Atomic and confirm that your updated bindings appear in the shortcut table.Configuration rules
Keep the following rules in mind when you editkeybindings.json:
- Replacement semantics: Setting an action in
keybindings.jsonreplaces its default keys instead of appending to them. Pass an array to keep defaults alongside an additional key, or pass[]to unbind the action. - Invalid config fallback: Atomic ignores malformed JSON or a non-object top-level value and falls back to defaults without warning. Atomic also ignores unknown action IDs and entries whose value isn’t a string or string array.
- Windows and WSL defaults: Windows Subsystem for Linux (WSL) defaults activate on Linux whenever
WSL_DISTRO_NAMEorWSL_INTEROPis set. On native Windows,app.suspenddefaults toalt+zand opens an interactive PowerShell subshell (leavingctrl+zfor editor undo; typeexitto return while background tasks keep running). On WSL, standard Linuxctrl+z/fgsuspension applies andtui.editor.undodefaults toalt+z. See Run Atomic on Windows.
Key format
Write keys asmodifier+key using any combination of ctrl, shift, alt, and super. The following key tokens are supported:
- Letters:
atoz - Digits:
0to9 - Special keys:
escape,esc,enter,return,tab,space,backspace,delete,insert,clear,home,end,pageUp,pageDown,up,down,left,right - Function keys:
f1tof12 - Symbols:
`,-,=,[,],\,;,',,,.,/,!,@,#,$,%,^,&,*,(,),_,+,|,~,{,},:,<,>,?
ctrl+shift+x, alt+ctrl+x, ctrl+shift+alt+x, ctrl+super+x, ctrl+1, and ctrl++. Support for super depends on your terminal emulator.
Follow these syntax rules when writing key strings:
- Modifier order doesn’t matter (
ctrl+shift+pandshift+ctrl+pare equivalent), but duplicate modifiers (such asctrl+ctrl+x) are invalid and never match. escapeandescnever match with any modifier. Bind plainescapeoresconly.- Binding
+with modifiers works (ctrl++,alt++).
Case sensitivity with
$schema: At runtime, key names and modifiers are case-insensitive (CTRL+P and pageup work). The published JSON Schema (keybindings.schema.json) validates lowercase modifiers and camelCase special keys (ctrl+p, pageUp, pageDown), so use that casing if your editor validates against $schema.Reserved built-in actions and extension shortcuts
Extensions can register custom shortcuts. The following rules govern conflicts between extension shortcuts, built-in actions, andkeybindings.json:
- 17 reserved built-in actions block extension shortcuts: If an extension registers a key bound to any of these actions, Atomic skips the extension shortcut and logs a warning:
app.interrupt,app.clear,app.exit,app.suspendapp.thinking.cycle,app.thinking.toggle,app.model.cycleForward,app.model.cycleBackward,app.model.selectapp.tools.expand,app.editor.external,app.message.followUptui.input.submit,tui.select.confirm,tui.select.cancel,tui.input.copy,tui.editor.deleteToLineEnd
- Remapping moves the reservation: Rebinding a reserved action in
keybindings.jsonmoves the reservation to its updated key and frees the old key for extensions. - Extensions can override non-reserved built-in actions: If an extension claims a key bound to a non-reserved built-in action, Atomic logs a warning and activates the extension’s shortcut. When two extensions claim the same key, the later extension wins with a warning.
- Duplicate bindings in
keybindings.jsondon’t warn: Atomic doesn’t show a UI warning if you assign the same key to two actions inkeybindings.json, so avoid overlapping keys within the same view.
All actions
Use the following reference tables to look up action IDs and their default keys.TUI editor cursor movement
The following table lists actions for moving the cursor and stepping through prompt history:
Dedicated history actions switch prompt history entries regardless of cursor line in a multiline prompt. While the main editor has focus, explicit history bindings override ordinary app shortcuts (such as binding
tui.editor.historyPrevious to ctrl+p or tui.editor.historyNext to ctrl+n) without changing those keys inside selectors. Prompt history follows whichever agent you view (main or a subagent).
TUI editor deletion
The following table lists actions for deleting text in the prompt editor:TUI input
The following table lists core input actions for newlines, submission, and completion:TUI kill ring
The following table lists kill-ring paste and undo actions:TUI clipboard and selection
The following table lists selection-list controls and the reserved editor copy binding:
Local copy (for
/copy and mouse auto-copy) requires a working clipboard utility (wl-clipboard on Wayland, or xclip or xsel on X11). Atomic forwards copies through Operating System Command (OSC) 52 over SSH, Mosh, and Rex and as a headless Linux fallback; set ATOMIC_CLIPBOARD_OSC52=1 (legacy PI_CLIPBOARD_OSC52=1) to force OSC 52 after local copy. See Clipboard and OSC 52.
Fullscreen transcript navigation
Actions undertui.altScreen.* scroll the fullscreen transcript viewport above the prompt editor. For mouse clicks, text selection, auto-copy, and ask_user_question dialog controls, see Transcript navigation and mouse controls.
While the main editor has focus, home and end stay with the editor, ctrl+home and ctrl+end jump to the transcript top and bottom, pageUp and pageDown scroll the transcript, and ctrl+pageUp and ctrl+pageDown scroll the editor. Focused overlays and scrollable lists (autocomplete, /settings, /model) capture scrolling keys first.
The following table compares how shared navigation keys route based on focus:
Rebind these like any other action: for example,
"tui.altScreen.pageUp": "ctrl+pageUp" keeps pageUp in the editor and moves transcript paging to ctrl+pageUp, and [] unbinds a shortcut. Focused custom components might consume viewport keys first; see the input handling contract.
The following table lists all tui.altScreen.* viewport actions:
Atomic doesn’t include a find-in-transcript shortcut. Four compatibility action IDs—
tui.altScreen.search, tui.altScreen.searchNext, tui.altScreen.searchPrevious, and tui.altScreen.searchClose—stay recognized so existing keybindings.json files remain valid, but they have no default keys and do nothing.Application
The following table lists core application shortcuts for interrupting work, exiting, opening an external editor, searching history, and pasting from the clipboard:
Keep the following paste and interrupt behaviors in mind:
- macOS clipboard paste: Files copied in Finder paste as paths (one per line, or shell-quoted and space-separated in
!bash mode). When the clipboard holds text instead of files or an image,app.clipboard.pasteImageinserts the text. NativeCmd+V(not configurable inkeybindings.json) pastes images in terminals that forward empty bracketed paste or Kittysuper+v. Inside tmux on macOS, or when a clipboard holds both text and an image,Ctrl+Vprefers the image. Ctrl+Xrouting:Ctrl+Xdoesn’t copy text. Paired withCtrl+K, it stops all background work (see Navigation); on OAuth sign-in screens, it copies the sign-in URL (app.auth.copyUrl); in/scoped-models, it clears selections. Use/copyto copy the viewed agent’s last assistant message.- Physical
Esc: Always requests cooperative cancellation without restarting the session. PressingEscapetwice within 500 ms on an empty, idle editor triggersdoubleEscapeAction:/tree("tree", default),/fork("fork"), or nothing ("none"). To change this behavior, setdoubleEscapeActionin Interface and display settings. - Physical
Ctrl+C: Closes stuck custom dialogs (dialogs that handleCtrl+Creceive the first press and close on the second) and restarts an unresponsive background session process, even if you remapapp.clear. See Message queue for full interrupt and recovery rules.
Sessions
The following table lists session-command and session-picker shortcuts:
The session picker in
/resume and atomic -r supports these controls and limits:
- Press
Tab(tui.input.tab) to switch between sessions in the current directory and sessions across all directories. - Press
Spacewhen the search box is empty to show or hide a preview pane for the selected session. PressEscto close the preview before cancelling the picker. - Press
?(app.keys.help) to open the picker’s key overview. - Deleting a session (
Ctrl+DorCtrl+Backspace) asks for confirmation (Enterconfirms;EscorCtrl+Ccancels), can’t delete the open session, and is disabled for JSON Lines (JSONL) session storage. - Renaming a session (
Ctrl+R) works in interactive/resume, not in CLIatomic -ror--resume. - Cancelling
atomic -rprintsNo session selectedand exits with status0. - While viewing a subagent,
app.session.new,app.session.tree, andapp.session.forkask for confirmation before acting onmain;app.session.resumeopens its picker in place.
Models and thinking
The following table lists shortcuts for selecting models and adjusting thinking effort:
Inside the
/model (Ctrl+L) selector, use these keys:
- Press
←or→to adjust the thinking effort of the highlighted reasoning model before selecting it. - Press
Tab(tui.input.tab) to switch between scoped models and all available models whenenabledModelsor--modelsis active.
main to change them); app.thinking.toggle applies to the viewed transcript.
Display and message queue
The following table lists shortcuts for tool expansion, OAuth URL copying, and message queuing:
Message queue shortcuts work identically on
main and while viewing a subagent. See Message queue.
Navigation
Atomic shares one chat screen acrossmain and its subagents, with the agent panel below the prompt and /tasks for full task inspection. Press ↓ on an empty prompt to focus the agent panel, ← on an empty prompt while viewing a subagent to return to main, Ctrl+X then Ctrl+K (twice within 3 seconds) to stop all background work, and ? on an empty prompt or list to show active keys. See Background tasks for full navigation and stop workflows.
The following table lists agent-panel and /tasks navigation shortcuts:
On macOS,
Alt+W requires your terminal to send Option as Meta (enable Use Option as Meta key in Terminal.app, set Option to Esc+ in iTerm2, set macos-option-as-alt in Ghostty, or set macos_option_as_alt both in kitty). Otherwise remap app.tasks.openWaited. Because app.tasks.openWaited takes priority while you view a waiting subagent or its /tasks row, avoid binding alt+w to another editor action.
Open question prompts and the main input box keep keyboard priority. Pressing Esc leaves task stdin or task detail before leaving task focus, and unbound actions show no key hint.
Tree navigation
Inside/tree, typing filters entries live (automatically unfolding branches), Backspace edits the search query, Esc clears the search before closing the picker, and ← and → (tui.editor.cursorLeft and tui.editor.cursorRight) page up and down alongside PageUp and PageDown.
The following table lists session-tree shortcuts:
Scoped models selector
Use these shortcuts inside/scoped-models. Pressing Enter enables or disables the selected model, typing filters by model or provider name, and pressing Esc or Ctrl+C clears the search before closing. Changes save automatically.
The following table lists /scoped-models shortcuts:
Non-configurable and bundled extension shortcuts
The following table lists global shortcuts and bundled extension shortcuts that aren’t configured inkeybindings.json:
Transcript navigation and mouse controls
Interactive sessions run fullscreen with a scrollable transcript above the docked editor. See Fullscreen transcript navigation for keyboard paging and jump bindings. The following mouse interactions work across the fullscreen TUI:- Expandable blocks: Single-click any expandable block (title, preview,
... +N lines, or its inline(ctrl+o to expand)hint) to expand or collapse that block onmainor a subagent. This includes grouped-call summaries, finished-agent cards,!shell blocks, Intercom messages, task notices, skill blocks, branch summaries, and compaction boundaries. Single clicks wait 0.5 seconds after release so double-clicks, triple-clicks, and drags select text without folding blocks; clicking a link opens the link. A block keeps its clicked state untilCtrl+Oresets every block together (thinking blocks expand or collapse separately withCtrl+T). - Key hints: Click a key hint under the prompt, at the bottom of
/tasks, in dialogs or pickers, in the?overlay, or inside notices to trigger that key for the active view. In multi-key hints (pgup/pgdn scroll,↑↓ select,1-4 pick), click the specific key; clicking the trailing label triggers the last key. Slash-command hints such as/tasks to managerun the command while preserving your prompt draft, and empty-prompt keys (?,↓) work when clicked even if the editor holds text. Dragging across a hint selects text; hints behind an open dialog stay inactive. - Mouse wheel and selection: The mouse wheel scrolls the region under the pointer (and scrolls the transcript when over the editor or footer). Hold
Altwhile scrolling to move five times as far when your terminal forwards Alt with wheel events. While scrolled up, a centered↓ jump to bottom · ctrl+endpill appears above the editor and the active turn’s opening prompt stays pinned at the top. Viewed subagent transcripts and/tasksshell views scroll independently without movingmain. - Auto-copy and Windows right-click paste: Drag to select characters, double-click for a word or path, and triple-click for a line. Selection copies automatically unless
fullscreenCopyOnSelectisfalse. On native Windows, pressing the secondary mouse button pastes clipboard text into the focused component, except inside VS Code’s integrated terminal (TERM_PROGRAM=vscode). See Clipboard and mouse behavior.
Dialog controls (ask_user_question)
Transcript scroll keys stay active while the bottom-pinned ask_user_question dialog or Notes view is open. Use the following keys inside the dialog:
↑/↓: move between options.Enter: select an option (EnterorSpacechecks or clears multi-select checkboxes).- Type something. row: type a custom free-text answer.
n: add a note.Tabor←/→: switch between questions.Esc: cancel the dialog.
Preset examples
Copy either preset into~/.atomic/agent/keybindings.json and run /reload to apply it.
Emacs preset
The following configuration binds prompt history and Emacs-style movement and deletion keys:Vim-style movement preset
The following configuration addsAlt+H/J/K/L cursor movement and word jumps while leaving alt+w free for app.tasks.openWaited:
Troubleshooting
Use the following checks when a shortcut doesn’t respond as configured:- A remapped shortcut stopped working and its default also disappeared: Check
keybindings.jsonfor a typo, a duplicate modifier (such asctrl+ctrl+p), or a modifier combined withescape. Unrecognized key strings replace defaults silently. Shift+Entersubmits instead of inserting a newline: PressCtrl+Jright away, or configure your terminal for modified keys (see Configure your terminal or Run Atomic in tmux).Altshortcuts don’t work on macOS: Configure your terminal to send Option as Meta (see Navigation), or remap the action inkeybindings.json.- An extension shortcut was skipped: Check whether its key collides with one of the 17 reserved built-in actions. Remapping the built-in action in
keybindings.jsonfrees its old key.
Next steps
Explore related shortcut and terminal setup guides:- Slash commands: look up every built-in and bundled extension command.
- Configure your terminal: enable Kitty keyboard protocol, clipboard copy, and hyperlinks.
- Run Atomic on Windows: review Windows and WSL keybinding defaults.