Codex CLIsession-managementbuilt-in

/archive

Archive the current session and exit. Removes it from active session lists; transcript kept locally. Restore with 'codex unarchive <SESSION>'.

When to use

  • Cleaning up completed sessions from the active list
  • Archiving a session you might want to reference later

More Codex CLI commands