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
| Command | Purpose |
|---|---|
/help | Show interactive help. |
/clear | Start a fresh session and keep workspace background processes. /new does the same. |
/reset | Start a fresh session, then stop and forget workspace background processes. |
/resume | Open the saved-session picker. |
/continue | Continue a paused model response. |
/rename | Rename the current session. Provide a title. |
/compact | Compact older conversation turns now. |
/quit | Exit 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
| Command | Purpose |
|---|---|
/login | Sign in with Vercel. |
/logout | Sign out from Vercel. |
/setup | Set up authentication. |
/models | Open the model catalog. |
/model | Select a model by ID or query. |
/fast | Toggle fast mode when supported. |
/permissions | Inspect or change the permission mode. |
/allowlist | Inspect or change persistent permission rules. |
/sandbox | Inspect or change command sandboxing. |
See Permissions for permission rules and sandbox behavior.
Inspection and settings
| Command | Purpose |
|---|---|
/status | Show model, workspace, permissions, and session state. |
/stats | Show current-session statistics. |
/usage | Open local usage and spend. /cost is an alias. |
/credits | Query AI Gateway credit balance. /balance is an alias. |
/settings | Open settings or change startup scrollback. |
/appearance | Change the input presentation. |
/statusline | Toggle footer fields. |
/sound | Set completion sounds. |
/version | Show the installed version. |
Tools and local data
| Command | Purpose |
|---|---|
/background | List or manage background commands. |
/image | Attach an image. /img is an alias. |
/images | Inspect or clear pending images. |
/paste | Attach a clipboard image when supported. |
/mcp | Manage MCP servers, resources, and prompts. |
/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 fx.sh/feedback, which forwards to the fx bug report form. |
/trace | Create 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.