Keyboard shortcuts
Press these keys in the interactive shell that fx opens. For commands that start with /, see Slash commands .
On Linux, press alt wherever this page says option. Shortcuts with cmd work only in terminals that pass cmd key presses to fx, and many terminals keep some of them, such as cmd+c, for their own copy and paste.
Shortcut Action escape twiceInterrupt fx while it works. File changes and commands that already ran stay in place. The footer shows esc again to interrupt after the first press. ctrl+cClear your draft. With an empty draft, stop what fx is doing. ctrl+c twiceExit fx. The footer shows press ctrl+c again to exit for 3 seconds after the first press. ctrl+dExit fx when your draft is empty and fx isn't working. Otherwise, delete the character after the cursor. ctrl+zSuspend fx and return to your shell. Run fg to resume it. ctrl+oOpen or close Full detail . ctrl+pOpen the model picker without losing your draft. Press ctrl+p again to close it. shift+tabCycle the permission mode through ask, auto, and full access. cmd+rOpen saved sessions from every workspace. Send or clear your draft first. ctrl+gReload fx when the footer shows update ready: ctrl+g to reload. ctrl+lRedraw the screen. escapePause a retry that is waiting for a network connection. fx shows esc to pause while it waits.
Shortcut Action enterSend your prompt. While fx works, the prompt steers the current task. shift+enter, option+enter, or ctrl+jInsert a newline. \, then enterReplace the backslash with a newline. This works in every terminal. @Choose a file to include. /Browse slash commands. $Choose a skill . tabComplete the highlighted file, command, or model. up or downMove between lines. On the first or last line, browse your earlier prompts. ctrl+nShow the next prompt in your history. ctrl+vAttach a clipboard image, like /paste. escape twiceClear your draft while fx is idle. The footer shows esc again to clear after the first press.
Shortcut Action left or right, ctrl+b or ctrl+fMove one character. option+left or option+right, ctrl+left or ctrl+right, option+b or option+fMove one word. home or end, ctrl+a or ctrl+e, cmd+left or cmd+rightMove to the start or end of the line. option+up or option+downMove to the previous or next paragraph. A blank line separates paragraphs. ctrl+home or ctrl+end, cmd+up or cmd+downMove to the start or end of the draft. page up or page downMove through a long draft one page at a time.
Shortcut Action shift with a movement keySelect text, for example with shift+left or shift+option+right. Typing replaces the selection. cmd+aSelect the whole draft. cmd+cCopy the selection. cmd+xCut the selection. cmd+z or ctrl+_Undo. cmd+shift+zRedo.
On a Mac keyboard, backspace is the delete key and forward delete is fn+delete.
Shortcut Action backspace or ctrl+hDelete the character before the cursor. forward delete or ctrl+dDelete the character after the cursor. option+backspaceDelete the word before the cursor. ctrl+wDelete back to the previous space. option+d, option+forward delete, or ctrl+forward deleteDelete the word after the cursor. ctrl+u or cmd+backspaceDelete to the start of the line. ctrl+k or cmd+forward deleteDelete to the end of the line. ctrl+yPaste the text you last deleted with ctrl+w, ctrl+u, or ctrl+k.
These keys work in lists such as /model, /resume, /help, and /settings, and in the suggestions that appear when you type /, @, or $.
Shortcut Action up or ctrl+kMove up. down or ctrl+jMove down. enterChoose the highlighted item. typing Filter a list that shows type to filter. tab or shift+tabSwitch the category in /help and /settings, the provider in /model, or the source in /skills. In /resume, switch between the current workspace and all workspaces. left or rightChange the highlighted value in /settings and /statusline. escapeClose the list.
Shortcut Action tab, shift+tab, left, or rightChange the period. up or downSelect a model. enterShow details for the selected model. rRefresh. escapeClose, or return from model details.
Shortcut Action tab, left, or rightSwitch section. enterInspect the highlighted server or open a catalog item. In server details, sign in. aAdd a server. In a project server's details, approve it. sAdd Slack. rReload servers. lLog out of the server. dRemove the server. pApprove all pending project servers. xReject the project server. zReset your project server choices. /Filter a catalog. iInsert the highlighted preview into your prompt. cShow the config file locations and these keys.
fx asks you to press enter before it removes a server, logs out, or changes project server trust.
These keys work when fx asks before it runs a tool.
Shortcut Action 1, 2, or 3Choose that option and answer right away. The prompt shows what each number does. up or downMove between options. tabAdd a note for fx to a yes or no answer. When the prompt doesn't take a note, move to the next option. enterConfirm the highlighted option. escapeCancel. ctrl+cDeny. mouse wheel Scroll a long file review.
These keys work when fx asks you a question with options.
Shortcut Action 1 to 9Choose that option. up or downMove between options. shift+up or shift+downMove between options while you type an answer. tabGo to the next question. enterAnswer. escapeCancel the questions. If you've typed an answer, press escape twice to clear it first. ctrl+cCancel the questions.
Full detail shows the conversation and complete command output.
Shortcut Action ctrl+o, escape, or ctrl+cClose Full detail. fx keeps working. up or down, mouse wheelScroll. page up or page downScroll one page.
PreviousSlash commands Next Configuration