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. /clearCmd. /renameCmd. /archiveCmd. /deleteCmd. /compactCmd. /copyCmd. /memoriesCmd. /importCmd. /initCmd. /mentionCmd. /forkCmd. /sideCmd. /resumeCmd. /newCmd. /cdCmd. /exportCmd. /recap

Planning and execution

Cmd. /planCmd. /goalCmd. /psCmd. /stopCmd. /app

Review and verification

Cmd. /review

Models and settings

Cmd. /modelCmd. /fast

Permissions and integrations

Cmd. /permissionsCmd. /ideCmd. /setup-default-sandboxCmd. /sandbox-add-read-dirCmd. /pluginsCmd. /hooksCmd. /approveCmd. /skillsCmd. /mcp

Status and diagnostics

Cmd. /agentCmd. /appsCmd. /diffCmd. /feedbackCmd. /personalityCmd. /rawCmd. /statusCmd. /debug-configCmd. /title

Display and input

Cmd. /keymapCmd. /vimCmd. /experimentalCmd. /statuslineCmd. /themeCmd. /petsCmd. /voiceCmd. /worktree

Account and usage

Cmd. /exitCmd. /logoutCmd. /quitCmd. /usage

Legacy

Cmd. /approvals

Verification and history

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

Cmd. /archive

Archive a completed or abandoned Codex session.

Key takeaways

  • Archive a completed or abandoned Codex session.
  • Check the input surface and availability before using the examples below.

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-09-22 · Codex CLI 0.155.1

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

Cmd. /delete

Permanently delete the current Codex session transcript and spawned descendant sessions.

Cmd. /resume

Reopen the saved-session picker to continue earlier Codex work across interruptions, remote app-server sessions, and large multi-thread task histories.

Thread Lifecycle

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

Cmd. /resume

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

Cmd. /fork

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

Cmd. /rename

Rename the current saved Codex chat without changing its transcript or execution state.

Cmd. /delete

Permanently delete the current Codex session transcript and spawned descendant sessions.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceChangesCautionsOfficial sources