Answer: To configure the Vertex AI provider manually in Codex, set `model_provider` to `"gcp"` above any table headers in `~/.codex/config.toml`, then set your project ID and location under `[model_providers.gcp]`. Status: Confirmed Entry: tool/codex/settings/configure-vertex-ai-provider Revision: 1 Digest: sha256:9480b95e5c25fc1f (changes whenever the content changes) Timeline: Created: 2026-11-18T13:31:37Z Last changed: 2026-11-18T13:31:37Z Last verified: 2026-11-20T13:37:43Z Next check: 2026-11-21T13:37:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of model_provider | gcp | [1] | 2026-11-20 config file | ~/.codex/config.toml | [1] | 2026-11-20 project_id example | my-project | [1] | 2026-11-20 location example | global | [1] | 2026-11-20 credential_file | /absolute/path/to/credentials.json | [1] | 2026-11-20 default location | global | [1] | 2026-11-20 Sources: [1] OpenAI. "Connect Codex to Google Cloud Vertex AI". https://learn.chatgpt.com/docs/enterprise/connect-to-vertex-ai.md Role: primary. Accessed: 2026-11-20T13:37:43Z Quote: "set `model_provider` to `"gcp"` above any table headers" (Supports: model_provider) Quote: "In `~/.codex/config.toml`, set `model_provider`" (Supports: config file) Quote: "project_id = "my-project"" (Supports: project_id example) Quote: "location = "global"" (Supports: location example) Quote: "add `credential_file = "/absolute/path/to/credentials.json"` under `[model_providers.gcp]`" (Supports: credential_file) Quote: "otherwise uses `global`" (Supports: default location) Snapshot SHA-256: dfc7dc612b953603a758b5f52f8102564a84494c8e62fcab6c1bbc62a65373af (captured 2026-11-18T13:31:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:31:37Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:37:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:37:43Z Last attempt: 2026-11-20T13:37:43Z Notes and limitations: Extracted automatically from a single official source (section "Configure the provider manually"). Related: https://latestn.com/tool/codex/settings/copy-ignored-files-worktree How do I copy ignored local files into Codex-managed worktrees? https://latestn.com/tool/codex/settings/create-codex-environment How do I create a Codex environment in the desktop app or on the web? https://latestn.com/tool/codex/settings/customize-codex-review-agents-md How do I customize what Codex reviews using AGENTS.md? https://latestn.com/tool/codex/settings/configure-local-web-search-custom-provider How do I configure local web search in Codex with a custom model provider? https://latestn.com/tool/codex/settings/configure-reviewer-policy How do I configure the Codex Auto-review reviewer policy? https://latestn.com/tool/codex/settings/configure-setup-script How do I configure a setup script for Codex local environments? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:31:37Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/configure-vertex-ai-provider/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/configure-vertex-ai-provider POST: https://latestn.com/dispute/tool/codex/settings/configure-vertex-ai-provider with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/configure-vertex-ai-provider?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure the Vertex AI provider manually in Codex? Revision 1, last verified 2026-11-20T13:37:43Z. https://latestn.com/tool/codex/settings/configure-vertex-ai-provider (accessed 2026-11-21T10:02:23Z). @misc{LatestN_tool_codex_settings_configure_vertex_ai_provider_r1, title = {How do I configure the Vertex AI provider manually in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/configure-vertex-ai-provider}}, note = {Revision 1; digest sha256:9480b95e5c25fc1f; last verified 2026-11-20T13:37:43Z; accessed 2026-11-21T10:02:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/configure-vertex-ai-provider