Let Codex search the web
interactive sessions
// what it does
--search turns on live web search for the run so Codex can pull current docs and APIs instead of relying on training data. Persist it with the web_search config key, whose values are disabled, cached (the default), indexed, and live.
// shell
$ codex --search "find the current recommended way to configure Vite"// gotcha
The default web_search is cached, not live — without --search or web_search="live", answers about fast-moving libraries can be stale.