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. /copy
한국어KOEnglishEN

Cmd. /copy

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

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

Key takeaways

  • Pick a whole Codex response, code block, or blockquote and copy it as Markdown.
  • From 0.162.0, move between transcript blocks with the arrow keys or j/k and press Enter to copy; copying a mouse selection is separate from /copy.

Purpose

Pick a whole Codex response, code block, or blockquote and copy it as Markdown; the 0.162.0 release notes add navigating and copying transcript blocks.

/copy

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

/copy

When to use it

  1. Copy a complete plan into an issue, pull request, or team message.
  2. Select only the reusable code block or blockquote from a long response.

Choosing related commands

CommandDifferenceChoose It When
/copySelects a whole response, code block, or blockquoteYou want to reuse part or all of a result
/rawSimplifies terminal scrollbackYou need to select parts of multiple turns or logs
/diffShows working-tree changesYou need code changes rather than response text

Effects and persistence

Copies the selected response or supported content to the clipboard. Check the selected scope before pasting elsewhere.

/copy selects the whole completed response, a code block, or a blockquote and copies it to the clipboard.

copy behavior

/copy also supports status output and individual session fields. Response copies preserve formatting in rich-text applications. Choose the required item from the installed picker.

official changelog · 2026-09-12 KST

Copying a mouse selection from the transcript is separate from /copy. From 0.158.0, selection copies also keep Markdown formatting, and from 0.159.0 they preserve tables and significant whitespace. tui.copy_on_select decides whether a selection is copied immediately.

From 0.162.0, /copy navigates and copies transcript blocks. According to the pull-request description, it selects the latest completed response directly in the transcript that Codex renders itself (the owned transcript); arrow keys or j/k move between user messages, code blocks, and blockquotes, and g/G jump to the ends. Press Enter to copy and Escape to close.

The same release adds Ctrl+Insert as a copy key for selections. Windows Terminal forwards Ctrl+Insert when its Copy action has no native terminal selection, so the key copies text selected inside Codex, in the transcript or the composer. Both changes are confirmed from release notes and are not in the official command page yet.

Update

  • The old whole-response flow now opens a picker for the full response, individual code blocks, and blockquotes.

Changelog ahead of command reference

The 0.150.0 official changelog is the source for the picker. The current detailed Developer Commands section still describes the pre-picker “latest completed output” flow, including the before-first-response, in-progress-turn, rollback, and Ctrl+O edge cases. This page combines the new release behavior with those still-applicable reference constraints instead of pretending the two official pages were updated at the same time.

Cautions

  • It does not copy partial output from the active turn.
  • It is unavailable without a completed response or immediately after rollback.
  • Check for secrets before sharing clipboard contents externally.

Official sources

  • Developer Commands
  • Changelog
  • Rust V0.105.0
  • Rust V0.158.0
  • Rust V0.159.0
  • Rust V0.162.0

Complete command list · Verification scope · History for this command

Related docs

Cmd. /copy

Claude Code Command Master · Copy a recent assistant response or selected code block.

Cmd. /tui

Choose the fullscreen UI for your next launch; fullscreen transcripts are the default from 0.157.0.

Core Command Group

The most frequently used Codex commands, including full conversation export, in one page.

Cmd. /export

Claude Code Command Master · Copy or save the current conversation as plain text.

Slash Commands

Advanced Codex Usage · Use Codex slash commands as an operating surface for sessions, review, models, and status.

Cmd. /archive

Archive a completed or abandoned Codex session.

Cmd. /import

Import Claude Code or Cursor setup, project files, and recent chats into Codex.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistencecopy behaviorUpdateCautionsOfficial sources