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. /setup-default-sandbox
한국어English

Cmd. /setup-default-sandbox

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

Key takeaways

  • Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode.
  • Check the input surface and availability before using the examples below.

Purpose

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

/setup-default-sandbox

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

/setup-default-sandbox

When to use it

  1. Run it after Codex detects the degraded Windows sandbox and offers elevated setup.
  2. Verify the resulting sandbox and approval state with /status and /permissions.

Choosing related commands

CommandDifferenceChoose It When
/setup-default-sandboxInstalls the elevated Windows sandboxYou need to replace degraded mode
/sandbox-add-read-dirGrants one extra absolute read pathOnly a specific external directory is blocked
/permissionsChanges approval profilesYou need a session policy change without installation

Effects and persistence

Runs the Windows default-sandbox setup flow.

/setup-default-sandbox configures the elevated Windows agent sandbox when Codex detects degraded mode.

Cautions

  • This is Windows-only and appears only in the degraded restricted-token state.
  • Check organizational endpoint and security policy before the administrator flow.
  • Re-check the effective mode and writable roots with /status afterward.

Official sources

  • Developer Commands
  • Slash_Command.Rs

Complete command list · Verification scope · History for this command

Related docs

Cmd. /sandbox-add-read-dir

Grant sandbox read access to an additional absolute directory path.

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

Claude Code Command Master · Removed in v2.1.92; use /config Editor mode.

Cmd. /fast

Claude Code Command Master · Switches the supported model's fast processing path. It is separate from reasoning effort and may have different billing or quota rules.

Cmd. /ide

Include open files, selections, and IDE context in the next prompt.

Cmd. /sandbox-add-read-dir

Grant sandbox read access to an additional absolute directory path.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources