Slash commands

Type / in fx to browse commands. For commands you run from your terminal, see CLI commands.

Sessions and shell

CommandDescription
/helpShow interactive help.
/clear / /newStart a fresh conversation and keep background processes running.
/resetStart a fresh conversation and stop workspace background processes.
/resumeOpen the saved-session picker.
/rename <title>Rename the current conversation.
/compactSummarize older conversation context.
/quitExit fx. /exit is an alias.

See Sessions for saving, recovery, and compaction.

Account, model, and runtime

CommandDescription
/provider / /setupChoose a provider and how to connect to it.
/loginOpen the provider picker to sign in.
/logoutSign out of the active or named provider.
/modelChoose a model and reasoning effort, or pass a model ID or search term.
/fastToggle fast mode when supported.
/permissionsInspect or change the permission mode.
/allowlistInspect or change persistent permission rules.

Use /permissions full-access to disable fx permission checks. /permissions full access and the legacy /permissions yolo are also accepted. See Permissions for permission rules and modes.

Saved permission rules

Save an exact allow or deny rule for the current saved conversation, or remove one by ID:

/permissions remember allow|deny <tool> <arguments-json>
/permissions revoke <rule-id>

Both commands ask for confirmation. /permissions lists saved rules and their IDs. See Saved conversation rules for an example.

Inspection and settings

CommandDescription
/statusShow model, workspace, permissions, and session state.
/statsShow token and turn counts for this conversation.
/usageOpen local usage and spend. /cost is an alias.
/creditsShow the AI Gateway credit balance. /balance is an alias.
/settingsOpen settings.
/statuslineChoose which fields appear in the footer.
/sound [on|off|max]Turn sounds and terminal bells on or off; max adds interaction sounds.
/versionShow the installed version.

Tools and local data

CommandDescription
/image <path>Attach an image. /img is an alias.
/images [clear]List pending images, or remove them with clear.
/pasteAttach a clipboard image when supported.
/mcpConnect and manage MCP servers.
/skillsBrowse and manage skills.
/workspaceManage saved additional directories.
/undoUndo the most recent tracked file operation.
/copyCopy the latest assistant response.
/feedbackOpen the fx feedback form.
/traceCreate and copy a private diagnostic trace.

See Additional workspaces for directory access and Share feedback for diagnostics.

Undo tracked file changes

Repeat /undo to undo earlier changes made by fx’s file tools. Shell commands and edits made outside those tools are not tracked.

Interactive MCP commands

Use these inside fx. For setup and examples, see MCP.

Resources and prompts

/mcp resource list <server>
/mcp resource templates <server>
/mcp resource read <server> <uri>
/mcp resource complete <server> <uri-template> <variable> [value]
/mcp prompt list <server>
/mcp prompt get <server> <name> [arguments-json]
/mcp prompt complete <server> <name> <argument> [value]

Server management

/mcp list
/mcp add <name> <command> [args...]
/mcp add --transport http <name> <url>
/mcp remove <name>
/mcp reload
/mcp auth <name> --open
/mcp logout <name>
/mcp trust approve <name>
/mcp trust reject <name>
/mcp trust approve-all
/mcp trust reset
/mcp path