mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-03-01 12:22:43 -08:00
29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
# Codex network approvals / sandbox notes
|
|
|
|
This guidance is intentionally isolated from `SKILL.md` because it can vary by environment and may become stale. Prefer the defaults in your environment when in doubt.
|
|
|
|
## Why am I asked to approve every video generation call?
|
|
Video generation uses the OpenAI Video API, so the CLI needs outbound network access. In many Codex setups, network access is disabled by default (especially under stricter sandbox modes), and/or the approval policy may require confirmation before networked commands run.
|
|
|
|
## How do I reduce repeated approval prompts (network)?
|
|
If you trust the repo and want fewer prompts, enable network access for the relevant sandbox mode and relax the approval policy.
|
|
|
|
Example `~/.codex/config.toml` pattern:
|
|
|
|
```
|
|
approval_policy = "never"
|
|
sandbox_mode = "workspace-write"
|
|
|
|
[sandbox_workspace_write]
|
|
network_access = true
|
|
```
|
|
|
|
Or for a single session:
|
|
|
|
```
|
|
codex --sandbox workspace-write --ask-for-approval never
|
|
```
|
|
|
|
## Safety note
|
|
Use caution: enabling network and disabling approvals reduces friction but increases risk if you run untrusted code or work in an untrusted repository.
|