Codex works on a real computer with real files — so understanding its guardrails is the most valuable 25 minutes in this course. The reassuring truth: Codex is cautious by default, and the controls are simpler than they first look once you see they're just two dials.
Codex werkt op een echte computer met echte bestanden — dus zijn vangrails begrijpen is de waardevolste 25 minuten van deze training. Het geruststellende: Codex is standaard voorzichtig, en de bediening is simpeler dan ze lijkt zodra je ziet dat het maar twee knoppen zijn.
People conflate Codex's safety settings into one fuzzy idea of "permissions." It's clearer to see two separate dials that work together:
One is the fence; the other is how often the dog checks with you before going near it. Let's take each.
Mensen gooien Codex' veiligheidsinstellingen op één hoop als vaag "rechten." Het is helderder om twee aparte knoppen te zien die samenwerken:
De één is het hek; de ander is hoe vaak de hond bij je incheckt voor hij er in de buurt komt. We nemen ze allebei.
| Sandbox mode | What Codex can do |
|---|---|
| Read-only | Look at files only. It can't change anything or run commands without asking. Safest — great for "just analyze this." |
| Workspace-write (default) | Read files, and create/edit files inside your project folder, plus run routine local commands there. Cannot touch things outside the project without permission. |
| Danger-full-access | No restrictions — full access to your system. Only for people who know exactly why they need it. |
The names are blunt on purpose. That third one literally has "danger" in the title — treat it that way.
| Sandbox-modus | Wat Codex mag |
|---|---|
| Read-only | Alleen bestanden bekijken. Het kan niets wijzigen of commando's draaien zonder te vragen. Veiligst — ideaal voor "analyseer dit alleen." |
| Workspace-write (standaard) | Bestanden lezen, en bestanden maken/bewerken binnen je projectmap, plus routinematige lokale commando's daar draaien. Kan niets buiten het project aanraken zonder toestemming. |
| Danger-full-access | Geen beperkingen — volledige toegang tot je systeem. Alleen voor wie precies weet waarom het nodig is. |
De namen zijn met opzet bot. Die derde heeft letterlijk "danger" (gevaar) in de titel — behandel het zo.
| Approval policy | When Codex asks you |
|---|---|
| Untrusted | Pauses and asks before anything that isn't clearly safe. Most cautious. |
| On-request (default) | Works on its own within the sandbox, and asks only at the boundaries (e.g. editing outside the project, or going online). |
| Never | Doesn't prompt at all. Convenient but hands-off — pair only with a tight sandbox and trusted work. |
| Goedkeuringsbeleid | Wanneer Codex vraagt |
|---|---|
| Untrusted | Pauzeert en vraagt voor alles wat niet duidelijk veilig is. Meest voorzichtig. |
| On-request (standaard) | Werkt zelfstandig binnen de sandbox en vraagt alleen aan de grenzen (bijv. bewerken buiten het project, of online gaan). |
| Never | Vraagt helemaal niets. Handig maar hands-off — combineer alleen met een strakke sandbox en vertrouwd werk. |
Out of the box, Codex uses the Auto setting: workspace-write + on-request. In plain words, by default Codex will:
That last point is important and very safe: by default Codex can't quietly send your files anywhere or download things from the web. Crucially, these limits are enforced by your computer's operating system — a real technical wall, not just Codex "promising" to behave.
Uit de doos gebruikt Codex de Auto-instelling: workspace-write + on-request. In gewone taal zal Codex standaard:
Dat laatste is belangrijk en heel veilig: standaard kan Codex je bestanden niet stilletjes ergens heen sturen of dingen van het web downloaden. Cruciaal: deze grenzen worden afgedwongen door het besturingssysteem van je computer — een echte technische muur, niet slechts een belofte van Codex om zich te gedragen.
You can leave every safety setting on its default and be in good shape: Codex stays inside your project, asks before stepping out, and can't reach the internet unless you let it.
Je kunt elke veiligheidsinstelling op de standaard laten en zit goed: Codex blijft in je project, vraagt voor het naar buiten stapt, en kan niet bij internet tenzij jij het toestaat.
A quick bit of history that affects you. Until early 2026, Windows had no proper sandbox, so Codex on Windows faced an awkward choice: approve nearly every action, or hand over full access. OpenAI then built a custom Windows sandbox (released around May 2026) so Windows now gets the same safe defaults as Mac and Linux.
One practical tip: on Windows, make sure your sandbox is set to the standard "Default permissions" in the Composer to get those native protections. You may also see "elevated" vs "unelevated" — elevated is stronger; the app handles this for you. You generally won't need to think about it.
Een stukje geschiedenis dat jou raakt. Tot begin 2026 had Windows geen echte sandbox, dus Codex op Windows had een ongemakkelijke keuze: bijna elke actie goedkeuren, of volledige toegang geven. OpenAI bouwde toen een eigen Windows-sandbox (uitgebracht rond mei 2026), zodat Windows nu dezelfde veilige standaarden krijgt als Mac en Linux.
Eén praktische tip: zet op Windows je sandbox op de standaard "Default permissions" in de Composer om die ingebouwde bescherming te krijgen. Je ziet mogelijk ook "elevated" vs "unelevated" — elevated is sterker; de app regelt dit voor je. Meestal hoef je er niet over na te denken.
Two dials: sandbox (how far Codex reaches) and approvals (when it asks). The default — work in the project, ask at the edges, no internet — is safe. Keep it tight, use read-only to just analyze, steer clear of full-access, and read the prompts.
Twee knoppen: sandbox (hoe ver Codex reikt) en goedkeuringen (wanneer het vraagt). De standaard — werken in het project, vragen aan de randen, geen internet — is veilig. Houd het strak, gebruik read-only om alleen te analyseren, blijf weg van full-access, en lees de vragen.