Cmd. /exit
Exit the Codex CLI session; equivalent to /quit.
Key takeaways
/exitexits the CLI and is the alternative spelling of/quit.- Choose it when your team prefers explicit shell-style naming over
/quit. - Run
/diffor/statusbefore exiting a session with meaningful local changes. /exitdoes not replace process cleanup for externally started commands.
Original Command Declaration
/exitOfficial Summary
/exit exits the CLI. It is the alternative spelling of /quit.
Usage
/exitGood Examples
- Run
/diffor/statusbefore exiting a session with meaningful local changes. - Use
/exitwhen your team prefers explicit shell-like naming over/quit.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/exit | Exits the CLI | You prefer the shell-style spelling |
/quit | Exits the CLI | You use the primary slash command name |
/new | Starts a new conversation | You want to stay in the CLI |
Use Cases
- Ending a completed session.
- Leaving a terminal before resuming later with
/resumeorcodex resume.
Cautions
- Save, commit, or intentionally discard important work before exiting.
/exitdoes not replace process cleanup for externally started commands.
Release Basis
- Judgment: confirmed addition
- First evidence version:
rust-v0.53.0 - Date (UTC): 2025-10-31
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.53.0
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI features: https://developers.openai.com/codex/cli/features