Answer: To set up Gemini CLI with Vertex AI using application default credentials, first unset GOOGLE_API_KEY and GEMINI_API_KEY, then log in to Google Cloud with `gcloud auth application-default login`, configure your Google Cloud Project, start the CLI with `gemini`, and select Vertex AI. Status: Confirmed Entry: tool/gemini-cli/install-and-setup/vertex-ai-adc-auth Revision: 1 Digest: sha256:755cd945ca683266 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:18:26Z Last changed: 2026-11-13T03:18:26Z Last verified: 2026-11-20T12:52:50Z Next check: 2026-11-21T12:52:50Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Login command | gcloud auth application-default login | [1] | 2026-11-20 Unset command (macOS/Linux) | unset GOOGLE_API_KEY GEMINI_API_KEY | [1] | 2026-11-20 Unset command (Windows PowerShell) | Remove-Item Env:\GOOGLE_API_KEY, Env:\GEMINI_API_KEY -ErrorAction Ignore | [1] | 2026-11-20 Start command | gemini | [1] | 2026-11-20 Provider selection | Vertex AI | [1] | 2026-11-20 Sources: [1] Google. "Gemini CLI authentication setup". https://geminicli.com/docs/get-started/authentication.md Role: primary. Accessed: 2026-11-20T12:52:50Z Quote: "gcloud auth application-default login" (Supports: Login command) Quote: "unset GOOGLE_API_KEY GEMINI_API_KEY" (Supports: Unset command (macOS/Linux)) Quote: "Remove-Item Env:\GOOGLE_API_KEY, Env:\GEMINI_API_KEY -ErrorAction Ignore" (Supports: Unset command (Windows PowerShell)) Quote: "gemini" (Supports: Start command) Quote: "Select **Vertex AI**." (Supports: Provider selection) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 457d1b4b794ffa5fb6446bc0574e914f9758adaef0f7fea7feba468a74a97b49 (captured 2026-11-13T03:18:26Z) 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-13T03:18:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:52:50Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:52:50Z Last attempt: 2026-11-20T12:52:50Z Notes and limitations: Extracted automatically from a single official source (section "A. Vertex AI - application default credentials (ADC) using `gcloud`"). Related: https://latestn.com/tool/gemini-cli/install-and-setup/web-tools-prerequisites What are the prerequisites for using web search and fetch in Gemini CLI? https://latestn.com/tool/gemini-cli/integrations/acp-ide-integration How do I integrate Gemini CLI with JetBrains IDEs or Zed using ACP? https://latestn.com/tool/gemini-cli/integrations/configure-mcp-server How do I configure Gemini CLI to use an MCP server? https://latestn.com/tool/gemini-cli/install-and-setup/uninstall-macports How do I uninstall Gemini CLI installed with MacPorts? https://latestn.com/tool/gemini-cli/install-and-setup/uninstall-npm-global How do I uninstall Gemini CLI if I installed it with npm globally? https://latestn.com/tool/gemini-cli/install-and-setup/update-to-latest-version How do I update Gemini CLI to the latest version? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:18:26Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/install-and-setup/vertex-ai-adc-auth/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/gemini-cli/install-and-setup/vertex-ai-adc-auth POST: https://latestn.com/dispute/tool/gemini-cli/install-and-setup/vertex-ai-adc-auth with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/install-and-setup/vertex-ai-adc-auth?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up Gemini CLI with Vertex AI using application default credentials? Revision 1, last verified 2026-11-20T12:52:50Z. https://latestn.com/tool/gemini-cli/install-and-setup/vertex-ai-adc-auth (accessed 2026-11-21T10:03:06Z). @misc{LatestN_tool_gemini_cli_install_and_setup_vertex_ai_adc_auth_r1, title = {How do I set up Gemini CLI with Vertex AI using application default credentials?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/install-and-setup/vertex-ai-adc-auth}}, note = {Revision 1; digest sha256:755cd945ca683266; last verified 2026-11-20T12:52:50Z; accessed 2026-11-21T10:03:06Z} } 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/gemini-cli/install-and-setup/vertex-ai-adc-auth