Slash commands
Type / in fx to browse commands. For commands you run from your terminal, see CLI commands.
Sessions and shell
| Command | Description |
|---|---|
/help | Show interactive help. |
/clear / /new | Start a fresh conversation and keep background processes running. |
/reset | Start a fresh conversation and stop workspace background processes. |
/resume | Open the saved-session picker. |
/rename <title> | Rename the current conversation. |
/compact | Summarize older conversation context. |
/quit | Exit fx. /exit is an alias. |
See Sessions for saving, recovery, and compaction.
Account, model, and runtime
| Command | Description |
|---|---|
/provider / /setup | Choose a provider and how to connect to it. |
/login | Open the provider picker to sign in. |
/logout | Sign out of the active or named provider. |
/model | Choose a model and reasoning effort, or pass a model ID or search term. |
/fast | Toggle fast mode when supported. |
/permissions | Inspect or change the permission mode. |
/allowlist | Inspect 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
| Command | Description |
|---|---|
/status | Show model, workspace, permissions, and session state. |
/stats | Show token and turn counts for this conversation. |
/usage | Open local usage and spend. /cost is an alias. |
/credits | Show the AI Gateway credit balance. /balance is an alias. |
/settings | Open settings. |
/statusline | Choose which fields appear in the footer. |
/sound [on|off|max] | Turn sounds and terminal bells on or off; max adds interaction sounds. |
/version | Show the installed version. |
Tools and local data
| Command | Description |
|---|---|
/image <path> | Attach an image. /img is an alias. |
/images [clear] | List pending images, or remove them with clear. |
/paste | Attach a clipboard image when supported. |
/mcp | Connect and manage MCP servers. |
/skills | Browse and manage skills. |
/workspace | Manage saved additional directories. |
/undo | Undo the most recent tracked file operation. |
/copy | Copy the latest assistant response. |
/feedback | Open the fx feedback form. |
/trace | Create 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