openai / openai/codex

Windows: Claude Code fails to launch from Codex with “Access is denied”

Open
#43,832 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug sandbox windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

26.901.51231

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Claude Code v2.1.263 runs normally in PowerShell, but the Codex desktop agent cannot launch the same executable. Even running it with --version fails with:

Program 'claude.exe' failed to run: An error occurred trying to start process. Access is denied.

The executable is installed under:
%LOCALAPPDATA%\Microsoft\WinGet\Packages\Anthropic.ClaudeCode_Microsoft.Winget.Source_8wekyb3d8bbwe\claude.exe

Granting read access through the agent's permission request and restarting Codex did not resolve the error.

What steps can reproduce the bug?
  1. On Windows, install Claude Code using:
    winget install Anthropic.ClaudeCode
  2. Reopen PowerShell and confirm Claude Code launches successfully.
  3. Open a Codex desktop task with Default permissions.
  4. Ask the agent to run the installed claude.exe using its absolute path and the --version argument.
  5. Observe “Access is denied” before Claude starts.

Platform: Microsoft Windows NT 10.0.26200.0 x64.

What is the expected behavior?

Codex should run the executable when the required scoped permissions are granted, or explain which permission or policy prevents execution and how to request the necessary access while keeping the sandbox enabled.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Reproduce the Windows launch through the Codex desktop agent, compare it with PowerShell execution, and trace the permission or sandbox handling for the absolute executable path. Done means Claude Code launches with the required scoped permission, or Codex clearly identifies the blocking policy and how to request access while keeping the sandbox enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, rust
Domain
devtools, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.