How to list and resume Codex CLI sessions
Short answer
Type /resume in a Codex CLI session: its picker lists your saved chats, from the current directory or, under All, from every directory, and reopens the one you select.
codex resumeopens a picker from your shell, andcodex resume --last --allreopens your most recent chat from any directory.codex agentsbrowses your chats and finds one by its name, prompt or working directory.- ccdeck lists the Codex sessions at work in every terminal on one page, beside your Claude Code sessions, and opens one in a terminal pane.
/resume and codex resume, in Codex CLI
In a session, type /resume and choose a scope: Cwd shows chats from the current directory, Repo, when available, adds the same directory in linked local worktrees, and All “searches across directories.” Ctrl + T previews the selected chat. Select one, and Codex “reloads the selected chat’s transcript so you can pick up where you left off.”
From a shell:
codex resumeopens a picker.--lastskips it and takes the most recent chat “from the current working directory”; add--allto take it from any directory.codex resumefollowed by a session’s ID or name reopens that one./renamegives the current chat “a short name that will help you find the chat later.”codex archivefollowed by an ID or a name takes a chat out of the picker “without deleting the transcript”;codex unarchivebrings it back.
What it misses. It reopens one chat, in the terminal you type it in. With several sessions running, each keeps its own terminal, and you go to each in turn.
codex agents, to browse and search your chats
Codex’s reference calls codex agents “the command center to browse chats and switch between agents on a shared server”, and /agents opens it inside a session. To find an older chat, press F3 or / and type part of its name, prompt preview or working directory. It came with Codex CLI 0.149.0, “for searching, starting, opening, renaming, and stopping tasks.”
What it misses. It belongs to Codex, so your Claude Code sessions are not in it.
ccdeck: the sessions at work, from every terminal
ccdeck is a dashboard for Codex CLI and Claude Code that runs on your machine. It reads the rollout file Codex writes for each session, so a session started in any terminal appears once it writes.
npx ccdeck --ref=codex-cli-sessions
- Open Sessions (S) on the stripe on the left, or type a session’s name in the search field at the top. A Codex row wears Codex’s mark, beside your Claude Code sessions.
- Click a session’s card: the deck switches to Workspace, with the session in a terminal pane. For one that ended, or that you quit in its own terminal, the pane offers Reopen here, with the same conversation.
What it misses. It lists the Codex sessions it has seen at work, not every chat Codex has saved: for an older one, use codex resume. A session idle when ccdeck starts appears when it next writes. Workspace needs the terminal, on unless you turned it off, and a window wider than a phone’s. Its cards cannot show a Codex approval prompt, as the Codex CLI dashboard page explains.
Step by step
Sources
Read on . What ccdeck does is checked against ccdeck 4.3.12, and what another tool does against its own documentation.
- Codex docs: Developer commands, Resume a saved chat with /resume
- Codex docs: Developer commands, Rename the current chat with /rename
- Codex docs: Developer commands, Manage chats with /agents
- Codex docs: CLI reference, codex resume
- Codex docs: CLI reference, codex archive and codex unarchive
- Codex docs: CLI reference, codex agents
- Codex CLI 0.149.0 release notes: codex agents
- The ccdeck README at 4.3.12