Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /archiveCmd. /copyCmd. /importCmd. /cd

Planning and execution

Cmd. /goalCmd. /app

Models and settings

Cmd. /model

Permissions and integrations

Cmd. /pluginsCmd. /hooksCmd. /mcp

Display and input

Cmd. /statuslineCmd. /tuiCmd. /worktreeCmd. /voice

Account and usage

Cmd. /usage

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Cmd. /archive
한국어KOEnglishEN

Cmd. /archive

Archive a completed or abandoned Codex session.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • Archive a completed or abandoned Codex session.
  • Archiving is not deletion: archived sessions stay out of resume and fork until restored. From the shell, use codex archive and codex unarchive.

Purpose

Archive a completed or abandoned Codex session.

/archive

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-10-23 · Codex CLI 0.163.0

The installed command menu and account or organization settings determine availability.

Examples

/archive

The related CLI subcommands are:

codex archive
codex unarchive

When to use it

  1. Archive completed research so /resume stays focused on active work.
  2. Before archiving an abandoned experiment, leave a final note explaining why it was abandoned.
  3. After unarchiving an old session, run /status, /goal, and /diff before continuing.

Choosing related commands

CommandDifferenceChoose It When
/archiveMoves a session out of active resume/fork flowsYou are done with a session but want to keep it recoverable
/resumeReopens saved conversation historyYou need to continue earlier work
/forkBranches a conversationYou want an alternate path
/newStarts a fresh conversationYou want a clean task

Effects and persistence

Archives the session; choose it separately from permanent deletion.

/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.

Changes

  • The TUI can archive sessions with /archive.
  • The CLI includes codex archive and codex unarchive.
  • Archived sessions are protected from resume/fork until restored.
  • App-server thread events include thread/archived and thread/unarchived.

Cautions

  • As of the June 12, 2026 check, /archive is 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.

Official sources

  • Developer Commands
  • Rust V0.136.0
  • App Server

Complete command list · Verification scope · History for this command

Related docs

Thread Lifecycle

Advanced Codex Usage · Manage Codex sessions across start, resume, fork, compact, archive, delete, and handoff.

Complete command list

Every Codex CLI slash command on one page: syntax, kind, and availability for all 57 official rows, plus examples, effects, and cautions by category.

Terminal CLI Commands and Options

All 29 official Codex CLI command entries, global and command-specific option tables, and release additions

Cmd. /fork

Claude Code Command Master · Copy the conversation into a new background session.

Cmd. /resume

Claude Code Command Master · Resume by ID, name, or picker (/continue).

Design Workflows

Connect /plugins, /skills, /mcp, and /ide with Figma, ImageGen, and Playwright to design, implement, and verify UI with Codex.

Cmd. /copy

Pick a whole Codex response, code block, or blockquote and copy it as Markdown.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceChangesCautionsOfficial sources