Answer: For Amazon Bedrock, set `model_provider` to `amazon-bedrock` for the Bedrock Mantle endpoint or `amazon-bedrock-runtime` for the Runtime endpoint, and configure the `aws` table with `profile` and `region`. For Google Cloud Vertex AI, set the built-in provider `gcp` in `config.toml` with `project_id` and `location` under `[model_providers.gcp]`. Status: Confirmed Entry: tool/codex/models/custom-model-providers Revision: 1 Digest: sha256:d190be5a01398bfa (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:16Z Last changed: 2026-11-13T03:48:16Z Last verified: 2026-11-20T13:35:56Z Next check: 2026-11-21T13:35:56Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Bedrock Mantle provider ID | amazon-bedrock | [1] | 2026-11-20 Bedrock Runtime provider ID | amazon-bedrock-runtime | [1] | 2026-11-20 Bedrock region example | eu-central-1 | [1] | 2026-11-20 Vertex AI provider ID | gcp | [1] | 2026-11-20 Vertex AI project_id example | my-project | [1] | 2026-11-20 Vertex AI location example | global | [1] | 2026-11-20 Vertex AI default location | global | [1] | 2026-11-20 Sources: [1] OpenAI. "Advanced Configuration". https://learn.chatgpt.com/docs/config-file/config-advanced.md Role: primary. Accessed: 2026-11-20T13:35:56Z Quote: "Set `model_provider` to `amazon-bedrock` for the Bedrock Mantle endpoint or" (Supports: Bedrock Mantle provider ID) Quote: "`amazon-bedrock-runtime` for the Runtime endpoint." (Supports: Bedrock Runtime provider ID) Quote: "region = "eu-central-1"" (Supports: Bedrock region example) Quote: "model_provider = "gcp"" (Supports: Vertex AI provider ID) Quote: "project_id = "my-project"" (Supports: Vertex AI project_id example) Quote: "location = "global"" (Supports: Vertex AI location example) Quote: "The location defaults to `global`." (Supports: Vertex AI default location) Snapshot SHA-256: 509cb889c8d02037082a87c240864f0e2618d38ab224c28b562712b2744fbd65 (captured 2026-11-17T13:59:29Z) 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-17T13:59:29Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:35:56Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:35:56Z Last attempt: 2026-11-20T13:35:56Z Notes and limitations: Extracted automatically from a single official source (section "Custom model providers"). Related: https://latestn.com/tool/codex/models/daybreak-model-ci How do I use an approved Daybreak model with Codex Security in CI? https://latestn.com/tool/codex/models/fast-mode-supported-models Which models support Fast mode in Codex? https://latestn.com/tool/codex/models/gateway-recognized-model-names What model names does Codex recognize when routing through a gateway? https://latestn.com/tool/codex/models/choose-model-for-complex-work Which GPT model should I use in Codex for complex, long-running work? https://latestn.com/tool/codex/models/choose-model-names-routes How do I choose model names and routes for a Codex gateway? https://latestn.com/tool/codex/models/choose-model-reasoning-effort How do I choose a model and reasoning effort for a Codex Security bulk scan? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/models/custom-model-providers/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/models/custom-model-providers POST: https://latestn.com/dispute/tool/codex/models/custom-model-providers with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/models/custom-model-providers?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up a custom model provider like Amazon Bedrock or Google Cloud Vertex AI in Codex? Revision 1, last verified 2026-11-20T13:35:56Z. https://latestn.com/tool/codex/models/custom-model-providers (accessed 2026-11-21T09:53:33Z). @misc{LatestN_tool_codex_models_custom_model_providers_r1, title = {How do I set up a custom model provider like Amazon Bedrock or Google Cloud Vertex AI in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/models/custom-model-providers}}, note = {Revision 1; digest sha256:d190be5a01398bfa; last verified 2026-11-20T13:35:56Z; accessed 2026-11-21T09:53:33Z} } 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/models/custom-model-providers