Answer: Install the Google Cloud CLI on the machine where Codex runs, then run `gcloud auth application-default login` to sign in and set up Application Default Credentials (ADC). If your administrator provided an ADC file, skip the interactive sign-in and use the file during setup. Status: Confirmed Entry: tool/codex/integrations/authenticate-codex-vertex-ai Revision: 1 Digest: sha256:16dfd89e264cd989 (changes whenever the content changes) Timeline: Created: 2026-11-18T13:31:35Z Last changed: 2026-11-18T13:31:35Z Last verified: 2026-11-20T13:37:41Z Next check: 2026-11-21T13:37:41Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Authentication command | gcloud auth application-default login | [1] | 2026-11-20 Token command | gcloud auth application-default print-access-token | [1] | 2026-11-20 Prerequisite | Google Cloud CLI | [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:41Z Quote: "run this command to sign in and set up Application Default Credentials (ADC). ```sh gcloud auth application-default login" (Supports: Authentication command) Quote: "Codex runs `gcloud auth application-default print-access-token` to get an access token." (Supports: Token command) Quote: "Install the Google Cloud CLI on the machine where Codex runs." (Supports: Prerequisite) 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:35Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:37:41Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:37:41Z Last attempt: 2026-11-20T13:37:41Z Notes and limitations: Extracted automatically from a single official source (section "Authenticate on the Codex host"). Related: https://latestn.com/tool/codex/integrations/capture-outputs How do I capture outputs from the Codex GitHub Action in my workflow? https://latestn.com/tool/codex/integrations/ci-api-key-setup How do I set up the API key for Codex Security scans in CI? https://latestn.com/tool/codex/integrations/ci-integration-options Which CI integrations does Codex Security support? https://latestn.com/tool/codex/install-and-setup/wsl-version-support Which WSL version does Codex support, and is WSL1 still supported? https://latestn.com/tool/codex/integrations/add-api-key-secret-github-actions How do I add my OpenAI API key as a secret for the Codex Security Action in GitHub Actions? https://latestn.com/tool/codex/integrations/app-server-production-support Is the Codex app server supported for production workloads? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:31:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/integrations/authenticate-codex-vertex-ai/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/integrations/authenticate-codex-vertex-ai POST: https://latestn.com/dispute/tool/codex/integrations/authenticate-codex-vertex-ai with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/integrations/authenticate-codex-vertex-ai?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authenticate Codex on the host machine to use Google Cloud Vertex AI? Revision 1, last verified 2026-11-20T13:37:41Z. https://latestn.com/tool/codex/integrations/authenticate-codex-vertex-ai (accessed 2026-11-21T09:54:36Z). @misc{LatestN_tool_codex_integrations_authenticate_codex_vertex_ai_r1, title = {How do I authenticate Codex on the host machine to use Google Cloud Vertex AI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/integrations/authenticate-codex-vertex-ai}}, note = {Revision 1; digest sha256:16dfd89e264cd989; last verified 2026-11-20T13:37:41Z; accessed 2026-11-21T09:54:36Z} } 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/integrations/authenticate-codex-vertex-ai