--search
The flag that enables live web search — gives the model the native Responses web_search tool (no per-call approval).
Specs
Verified:
- Kind
- Launch flag
- Syntax
- --search
- First seen
- —unverified
- Tool enabled
- Native Responses web_search
Official help verbatim: "Enable live web search. When enabled, the native Responses `web_search` tool is available to the model (no per‑call approval)". Note the "no per-call approval" — once enabled, the model decides when to search on its own. First-seen version is unverified.
Key features
- Gives the model the native web_search tool
- No per-call approval once enabled
Use cases
Enable for tasks that depend on fresh info (new library APIs, recent changes); unnecessary for pure local work.
Install
`codex --search` or `codex exec --search "check the latest version number"`.
Caveats
Searches run without per-call approval once enabled — think twice before web-enabling sessions carrying sensitive code.
Added
Updated
Verified