Full access is one flag away
The sandbox mode that keeps Codex inside the workspace is set in config.toml and can be overridden on the command line. Nothing central sees which mode a developer is running in.
Codex runs as a CLI on developer machines and as cloud tasks with access to your repositories. Its sandbox and approval modes are set per machine, in a config file. Agen judges every file, shell and repository action at runtime, against the developer behind it, and records the verdict.

Codex is unusual in that it runs both on the developer's machine and as delegated tasks in OpenAI-hosted containers. Both reach your code.
Codex ships thoughtful defaults, and engineering should keep them. They are chosen per machine by the person the agent is acting for.
The sandbox mode that keeps Codex inside the workspace is set in config.toml and can be overridden on the command line. Nothing central sees which mode a developer is running in.
Codex signs in with the developer's ChatGPT account, then acts with the developer's local credentials. Neither maps to a governed principal your IdP knows about.
A delegated task runs in a container OpenAI operates, with repository access you granted. The device agent cannot see it and the settings file does not apply.
Session logs live on each machine and in each developer's account. There is nowhere to write one rule for every Codex run or to answer an auditor from one place.
The gateway decides. Shield enforces where the gateway cannot see. CLI actions are stopped on the device by AgenShield. Delegated tasks are decided at the gateway where they reach your repositories. Same rules, same identity, one record.
The Codex CLI runs on the developer's machine, so AgenShield does the work: the gateway's verdict, enforced where the gateway cannot see. BrowserShield covers what the same developer pastes into AI tools in the browser. Cloud tasks are decided at the gateway where they reach your repositories.
Out-of-policy actions like touching production secrets or mass-deleting files are stopped before they execute. Everything else flows. Ships through your MDM.
Keys and sensitive data are recognised as they are pasted into AI tools, and the paste is blocked. Employees keep their tools. Only the leak stops.
Illustrative verdicts for common Codex actions under a typical policy.
| Codex action | Verdict | Why |
|---|---|---|
| Edit files inside the workspace | allow | In scope for the developer and the task. Logged, not interrupted. |
| Run tests in workspace-write mode | allow | Normal engineering work inside the sandbox engineering configured. |
| Launch with the full-access sandbox flag | step-up | The developer confirms the elevated mode. The choice is recorded against their name. |
| Read a credentials file outside the workspace | deny | A production secret has no place in an agent's context. Blocked before the read completes. |
| Cloud task opens a pull request against a protected branch | human-in-the-loop | The delegating developer reviews before the change reaches the branch. |
| Query a customer database through an MCP server | mask | The query runs. Personal data is masked before it enters the model context. |
| Install a package from an unapproved registry | deny | Supply-chain scope. Stopped on the endpoint, logged centrally. |
| Push generated secrets to a remote | deny | Recognised at the point of exfiltration and blocked in-line. |
Verdicts are illustrative defaults. Every row is a policy you write once and Agen enforces per action, per identity.
Thirty minutes on the way your teams already use Codex. We show the verdict on each action, the named human behind the session, and the record it leaves. Bring your hardest question.
It never crosses your network controls, and no log outside that machine would record the attempt. AgenShield stops it on the device.
Codex stays exactly as your engineers use it today, on the laptop and in the cloud.
The same three capabilities govern Codex and every other agent you run, internal and external.
Continuous discovery across your IdP, gateway, devices, cloud, and registries. Nothing has to self-register: agents are found, risk-scored, and resolved to a named human before they act.
One policy plane for the CLI and the cloud task, a named developer behind every run.