Slash commands
Slash commands
AI-generated. To be refined.
Slash command reference
| Command | Description | Arguments | Examples |
|---|---|---|---|
/new | Clear the current messages and context, and start a new Codex thread. | None | /new |
/switch | Open the Codex session picker to switch to another session. | None | /switch |
/compact | Compact the current conversation context to avoid hitting the context limit. | None | /compact |
/reconnect | Immediately reconnect Codex and SSH. | None | /reconnect |
/model | Open the model picker. | None | /model |
/fast | Toggle the fast service tier for the current model; shows as unavailable if the model does not support it. | None | /fast |
/yolo | Toggle between full-auto and manual approval mode. Unavailable while Codex is running a task. | None | /yolo |
/status | Ask Codex to report the current session configuration and status. | None | /status |
/lease | Adjust the sandbox auto-destroy time. | [+/-][duration], where duration supports y, mo, d, h, min, and s. | /lease +2h, /lease -30min |
/review | Ask Codex to review the current code changes. Without arguments, opens the review picker; with arguments, they are used as custom review instructions. | [instructions] | /review, /review focus on unsafe concurrency |
/commit | Commit the Git changes in the current remote workspace. With a message, runs git add -A && git commit -m ... directly; without one, asks Codex to inspect the changes and create a commit. | [message] | /commit, /commit fix login retry state |
/push | Push the current branch. Defaults to rebase; if the remote rejects the push, Codex integrates the remote changes using the specified strategy and pushes again. | [merge|rebase] | /push, /push merge |
/yeet | Ask Codex to create a commit, then push using the rebase strategy. | None | /yeet |
/goal | View, set, or manage the goal for a long-running task. | Empty, clear, edit, pause, resume, or new objective text. | /goal, /goal implement OAuth refresh, /goal pause |
/expose | Expose a sandbox port to the public internet. | [tcp/udp/http] [port] [ttl] | /expose http 3000 1h, /expose tcp 5432 30min |
/forward | Forward the remote 127.0.0.1:<remote-port> to the local 127.0.0.1:<local-port>. | [remote-port] [local-port] | /forward 3000 3000 |
/unforward | Stop an active port forward. | [remote-port] [local-port] | /unforward 3000 3000 |
/download | Download a file or directory from the remote workspace to the local machine. Paths support shell quoting. | [remote-path] [local-path] | /download /workspace/app/target/release/app ./app |
/upload | Upload a file or directory from the local machine to the remote workspace. Paths support shell quoting. | [local-path] [remote-path] | /upload ./config.toml /workspace/app/config.toml |
/exit | Exit the TUI without destroying the sandbox. | None | /exit |
/destroy | Destroy the current sandbox and exit the TUI. | None | /destroy |