Session Management in AI
From the OpenAI Codex cheat sheet ยท Essential Slash Commands ยท verified Jul 2026
Session Management
Create, resume, organize, archive, or exit sessions.
text
/new Start a fresh chat
/clear Clear the terminal and start fresh
/resume Resume a saved chat
/fork Fork the current chat
/rename NAME Rename the current chat
/archive Archive the session and exit
/delete Permanently delete the session
/logout Clear local credentials
/quit Exit the CLI
/exit Exit the CLI๐ /new and /clear both start a fresh chat
๐ก /fork preserves the original transcript
โ ๏ธ /delete is permanent and removes descendant sessions
๐ Use /logout before leaving a shared machine
commandssessionsaccount
Continue with OpenAI Codex
Save the full cheat sheet or work through every related task.