Slash commands

Type / in the interactive shell to search commands. Anything else is sent to the model as a prompt. Commands that run outside the shell are listed in CLI commands.

Sessions and shell

CommandPurpose
/helpShow interactive help.
/clearStart a fresh session and keep workspace background processes. /new does the same.
/resetStart a fresh session, then stop and forget workspace background processes.
/resumeOpen the saved-session picker.
/continueContinue a paused model response.
/renameRename the current session. Provide a title.
/compactCompact older conversation turns now.
/quitExit fx. /exit is an alias.

/clear and /new preserve background work for the current workspace. /reset stops and forgets that work. See Sessions for saving, recovery, and compaction.

Account, model, and runtime

CommandPurpose
/loginSign in with Vercel.
/logoutSign out from Vercel.
/setupSet up authentication.
/modelsOpen the model catalog.
/modelSelect a model by ID or query.
/fastToggle fast mode when supported.
/permissionsInspect or change the permission mode.
/allowlistInspect or change persistent permission rules.
/sandboxInspect or change command sandboxing.

See Permissions for permission rules and sandbox behavior.

Inspection and settings

CommandPurpose
/statusShow model, workspace, permissions, and session state.
/statsShow current-session statistics.
/usageOpen local usage and spend. /cost is an alias.
/creditsQuery AI Gateway credit balance. /balance is an alias.
/settingsOpen settings or change startup scrollback.
/appearanceChange the input presentation.
/statuslineToggle footer fields.
/soundSet completion sounds.
/versionShow the installed version.

Tools and local data

CommandPurpose
/backgroundList or manage background commands.
/imageAttach an image. /img is an alias.
/imagesInspect or clear pending images.
/pasteAttach a clipboard image when supported.
/mcpManage MCP servers, resources, and prompts.
/skillsBrowse and manage skills.
/workspaceManage saved additional directories.
/undoUndo the most recent tracked file operation.
/copyCopy the latest assistant response.
/feedbackOpen fx.sh/feedback, which forwards to the fx bug report form.
/traceCreate and copy a private diagnostic trace.

Additional workspace roots are active after they are saved or passed with leading --add-dir flags. See Additional workspaces. /feedback and /trace are covered in Share feedback.

Undo tracked file changes

/undo reverses the most recent tracked file change. Run it again to undo older file changes.

It does not undo shell commands, Git history, or changes made outside fx's file tools.