Setup guide - Documented by Goose
Use Gemini in Goose
goose has a built-in Google Gemini provider configured through goose configure (CLI) or Settings > Models (Desktop) using GOOGLE_API_KEY.
Last verified 4 steps2 official sources
Steps
- Step 1.
Get an API key from Google AI Studio (https://aistudio.google.com/app/apikey).
- Step 2.
goose Desktop: Open the sidebar, click Settings, click the Models tab, click Configure Providers, choose Google Gemini as provider from the list, click Configure, enter your API key, and click Submit.
- Step 3.
goose CLI: run goose configure, select Configure Providers, choose Google Gemini, enter your API key when prompted, then enter the Gemini model of your choice.
Terminalgoose configure - Step 4.
Optional: for Gemini 3 models, set the thinking level. Precedence: request_params.thinking_level in model configuration, then the GEMINI3_THINKING_LEVEL environment variable, then the default value low.
Caveats
- goose's sample CLI transcript enters model gemini-2.0-flash-exp, which is outdated (Google lists Gemini 2.0 Flash as Shut down). Enter a current id from Google's models page instead.
- Gemini 3 thinking levels in goose are Low (default) and High.
More setup guides
Same tool, other providers
Related reading
- Gemini Trains on Your Chats Unless Keep Activity Is OffA Tell HN says paying for Gemini does not stop chat training. What Google documents about Keep Activity, human review and 3-year retention, and what developers should do before pasting code.
- Gemini 4 Carbon: Benchmarks, Pricing, and AccessGemini 4 Carbon is Google's new frontier model: 59 on the AA Intelligence Index, $2/$10 intro pricing, but cyber-defender access only. What builders do now.
- AI API 429, 529 and 503 Errors: Retry Rules That Match the DocsWhich 429, 529 and 503 errors to retry across OpenAI, Claude, Gemini and Bedrock, how to read Retry-After, and a typed wrapper that skips quota errors.
- AI Model Shutdown Dates 2026-2027: Calendar and Migration PlanEvery scheduled AI model API shutdown through mid 2027 by month: GPT-4o on Jan 14, whisper-1 on Feb 26, Claude Sonnet 4.5 on Nov 30, plus how to migrate.
- Gemini Live and TTS Preview Models Retire November 17: Moving to Gemini 3.8 Live and 3.8 Flash TTSThe Gemini API shuts down two Live API preview models and three TTS preview models on November 17, 2026. Replacement ids, what changes in the session config and TTS request, prices before and after, and the code change.
- Prompt Caching Across AI Providers: Prices, TTLs and SetupPrompt caching across OpenAI, Anthropic, Gemini, DeepSeek, Mistral, xAI and Qwen: prices, TTLs, setup code. A reused 100K prefix costs 71-93% less.
FAQ
How do I use Gemini in Goose?
goose has a built-in Google Gemini provider configured through goose configure (CLI) or Settings > Models (Desktop) using GOOGLE_API_KEY.
Which Gemini model ids work in Goose?
The official docs read for this guide list gemini-4-argon, gemini-3.8-flash, gemini-3.6-flash, gemini-3.5-flash-lite, gemini-3.1-pro-preview, gemini-2.5-pro and gemini-2.5-flash.
Is this an official Gemini and Goose setup?
Goose documents this setup in its own docs. It was last checked against 2 official pages on October 17, 2026.
Sources
Last verified against 2 official pages.
- raw.githubusercontent.comhttps://raw.githubusercontent.com/block/goose/main/documentation/docs/getting-started/providers.md
- ai.google.devhttps://ai.google.dev/gemini-api/docs/models
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.