Skip to content
Slash commands

Slash commands

AI-generated. To be refined.

Slash command reference

CommandDescriptionArgumentsExamples
/newClear the current messages and context, and start a new Codex thread.None/new
/switchOpen the Codex session picker to switch to another session.None/switch
/compactCompact the current conversation context to avoid hitting the context limit.None/compact
/reconnectImmediately reconnect Codex and SSH.None/reconnect
/modelOpen the model picker.None/model
/fastToggle the fast service tier for the current model; shows as unavailable if the model does not support it.None/fast
/yoloToggle between full-auto and manual approval mode. Unavailable while Codex is running a task.None/yolo
/statusAsk Codex to report the current session configuration and status.None/status
/leaseAdjust the sandbox auto-destroy time.[+/-][duration], where duration supports y, mo, d, h, min, and s./lease +2h, /lease -30min
/reviewAsk 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
/commitCommit 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
/pushPush 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
/yeetAsk Codex to create a commit, then push using the rebase strategy.None/yeet
/goalView, 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
/exposeExpose a sandbox port to the public internet.[tcp/udp/http] [port] [ttl]/expose http 3000 1h, /expose tcp 5432 30min
/forwardForward the remote 127.0.0.1:<remote-port> to the local 127.0.0.1:<local-port>.[remote-port] [local-port]/forward 3000 3000
/unforwardStop an active port forward.[remote-port] [local-port]/unforward 3000 3000
/downloadDownload 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
/uploadUpload 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
/exitExit the TUI without destroying the sandbox.None/exit
/destroyDestroy the current sandbox and exit the TUI.None/destroy