CapitalGuard
OpenAI CodexPrivate file access

OpenAI Codex Private File Access: What to Check

OpenAI Codex private file access: understand the access path, warning signs, safe checks, and controls before your next sensitive task.

CapitalGuard Security ResearchUpdated July 13, 2026Primary-source review

The direct answer

Codex can read repository and workspace files within the environment supplied to the task, with scope varying by local or cloud setup. Codex behavior depends on the environment, sandbox profile, approval policy, network access, connected services, and task scope. A protected default can still be widened by explicit authorization.

What changes here

How OpenAI Codex creates this exposure

OpenAI Codex can work locally or in cloud environments with repository files, commands, patches, network controls, approvals, plugins, and connected developer workflows.

The risk is not that an AI assistant can magically see an entire device. The risk begins when a file is uploaded, a folder is granted, a project is indexed, or a connected service makes private material retrievable.

Codex can read repository and workspace files within the environment supplied to the task, with scope varying by local or cloud setup.

The exposure path

Three steps from useful context to avoidable risk

  1. 1

    Context enters

    Codex can read repository and workspace files within the environment supplied to the task, with scope varying by local or cloud setup.

  2. 2

    Access carries it

    OpenAI Codex may use local repositories and worktrees, commands, patches, tests, and tools, or cloud repositories, plugins, MCP servers, and network access, depending on the surface and settings.

  3. 3

    A real consequence becomes possible

    Private notes, identity documents, financial records, health information, drafts, and personal photos can contain details that are difficult to take back once shared into the wrong workflow. For professional work, the same access can reveal contracts, pricing, unpublished plans, internal discussions, customer records, or source material covered by confidentiality obligations.

Who should care

Why this matters for people using AI with personal records, work files, research, or private project folders

Private notes, identity documents, financial records, health information, drafts, and personal photos can contain details that are difficult to take back once shared into the wrong workflow.

For professional work, the same access can reveal contracts, pricing, unpublished plans, internal discussions, customer records, or source material covered by confidentiality obligations.

This page does not claim that OpenAI Codex has exposed your information. It shows the access conditions that make a review sensible before the next sensitive task.

Warning signs

Pause before adding more access

You cannot name every file, folder, project, or cloud location currently available to the AI tool.

A broad folder or synced knowledge source was connected for convenience and never narrowed afterward.

Sensitive and non-sensitive work live together, so ordinary retrieval can pull in material you did not intend to use.

Five-minute safe check

Check OpenAI Codex without exposing more data

Review the working directory, writable roots, repository connection, mounted files, and environment profile before task execution.

List the exact uploads, projects, folders, and connected storage locations in scope without opening or copying their contents.

Confirm whether access is one-time, session-based, persistent, indexed, or inherited from another account.

Use a harmless test file with a unique phrase to verify what the assistant can retrieve; never test with a real secret or client record.

Reduce the risk

Controls to apply now

Use a dedicated worktree or scoped repository without unrelated personal or client files.

Separate sensitive work from ordinary AI-ready material before granting access.

Prefer the smallest folder, file, or project scope that completes the task.

Remove stale uploads and connections, then document who should review access again and when.

Review sandbox and approval profile.

Review writable roots and network policy.

Review repository, plugin, mcp, and cloud connections.

Decision rule

When CapitalGuard is the right next step

If the tool only receives public or disposable material, use the free checklist. If it can reach recurring private work, repositories, or client files, create a documented access baseline before the next sensitive task.

CapitalGuard focuses on repository and tool-connected exposure: what an AI workflow can read, change, execute, trust, or transfer. It does not inspect your private OpenAI Codexaccount from this page, replace the provider's privacy controls, or guarantee that an incident can never happen.

Primary references

Check the source, not our confidence.

Your next safe step

Turn this check into a real repository baseline.

Starter gives one authorized repository scan, a redacted report, preventive controls, and the customer delivery kit.

Review Starter