Cmd. /archive
Archive a completed or abandoned Codex session.
Key takeaways
/archivemoves a session out of active resume/fork flows, and archived sessions are protected from resume/fork until restored.- The CLI adds
codex archiveandcodex unarchive, and app-server thread events includethread/archivedandthread/unarchived. - After unarchiving an old session, run
/status,/goal, and/diffbefore continuing. - Archive is not deletion; sensitive transcripts still need separate retention rules.
Original Command Declaration
/archiveOfficial Summary
/archive is an official slash command for archiving a Codex session. Archived sessions are
protected from resume/fork until restored, and app clients can expose archived chats or threads from
their archived area.
Usage
/archiveThe related CLI subcommands are:
codex archive
codex unarchiveGood Examples
- Archive completed research so
/resumestays focused on active work. - Before archiving an abandoned experiment, leave a final note explaining why it was abandoned.
- After unarchiving an old session, run
/status,/goal, and/diffbefore continuing.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/archive | Moves a session out of active resume/fork flows | You are done with a session but want to keep it recoverable |
/resume | Reopens saved conversation history | You need to continue earlier work |
/fork | Branches a conversation | You want an alternate path |
/new | Starts a fresh conversation | You want a clean task |
Use Cases
- Keeping large active-session lists manageable.
- Retaining completed review or research sessions as recoverable records.
- Moving abandoned experiments out of normal resume flows.
v0.136.0 Changes
- The TUI can archive sessions with
/archive. - The CLI includes
codex archiveandcodex unarchive. - Archived sessions are protected from resume/fork until restored.
- App-server thread events include
thread/archivedandthread/unarchived.
Cautions
- As of the June 12, 2026 check,
/archiveis listed in the official slash-command table. - Do not archive a session with pending approval or input unless the blocker and next decision are documented.
- Archive is not deletion; follow separate retention rules for sensitive transcripts.
Release Basis
- Judgment: confirmed addition
- First evidence version:
rust-v0.136.0 - Date (UTC): 2026-06-01
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.136.0
Sources
- Codex release 0.136.0: https://github.com/openai/codex/releases/tag/rust-v0.136.0
- Codex App Server: https://developers.openai.com/codex/app-server
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands