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.

More AI tasks

Back to the full OpenAI Codex cheat sheet