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. /sandbox-add-read-dir
한국어English

Cmd. /sandbox-add-read-dir

Grant sandbox read access to an additional absolute directory path.

Key takeaways

  • Grant sandbox read access to an additional absolute directory path.
  • Check the input surface and availability before using the examples below.

Purpose

Grant sandbox read access to an additional absolute directory path.

/sandbox-add-read-dir <absolute-directory-path>

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusConditional
Aliases—
Documented minimumNot specified
Reviewed against2026-09-22 · Codex CLI 0.155.1

Native Windows only; distinguish this from Linux sandboxing under WSL.

Examples

/sandbox-add-read-dir

When to use it

  1. Add a read-only dependency directory outside the current workspace when Codex must inspect it.
  2. Use /status afterward to verify the readable roots and current sandbox policy.

Choosing related commands

CommandDifferenceChoose It When
/sandbox-add-read-dirAdds read access to an absolute pathA Windows sandbox blocks needed reads
/permissionsChanges broader approval policyYou need to change edit or execution autonomy
/statusShows roots and policyYou need to audit the current scope

Effects and persistence

Adds a readable directory to the Windows sandbox without granting write access.

/sandbox-add-read-dir grants sandbox read access to an extra directory. The official slash command reference marks it as Windows-only.

Cautions

  • Use the narrowest path possible.
  • This is not a write permission command.
  • Do not assume the command exists on non-Windows environments.

Official sources

  • Developer Commands
  • Cli

Complete command list · Verification scope · History for this command

Related docs

Cmd. /add-dir

Claude Code Command Master · Add a working directory for file access in this session.

Cmd. /setup-default-sandbox

Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode.

Cmd. /sandbox

Claude Code Command Master · Toggle sandbox mode on supported platforms.

Cmd. /debug-config

Inspect Codex config layers, policy sources, and requirements diagnostics.

Cmd. /resume

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

Cmd. /setup-default-sandbox

Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode.

Cmd. /plugins

Browse installed and discoverable Codex plugins.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources