Gemini
@ask-llm/mcpenterprise default gemini-4-argon → fallback gemini-3.8-flash
Use the unified ask-llm tool with provider: "gemini" to consult Gemini CLI with an existing, eligible Gemini Code Assist Standard or Enterprise seat.
Individual access ended June 18, 2026
Google ended Gemini CLI access for individuals, including free, Google AI Pro, and Ultra accounts, on June 18, 2026. If you choose to use Google's successor CLI through Ask LLM, see Antigravity setup, prerequisites, and Google's consumer-plan terms. Google's transition announcement
Google ended new purchases of Gemini Code Assist Standard and Enterprise subscriptions on October 9, 2026. Existing subscriptions auto-renew through the rest of 2026. Automatic renewal ends in 2027. Gemini Code Assist release notes
2026-06-18 tier change
- Ask LLM still calls the
geminibinary. Reinstalling it cannot restore account access. - After the cutoff, Ask LLM prepends an advisory tier notice to some authentication or quota errors. The original error follows the notice. The account tier is one possible cause.
- To choose another provider, use Antigravity through Ask LLM, Codex, or Ollama.
- Testing the guidance: set
ASK_GEMINI_TIER_CUTOFFto a past UTC instant (e.g.2020-01-01T00:00:00Z) to force the post-cutoff gate on; an auth/quota failure will then prepend the notice. The default cutoff is2026-06-18T00:00:00Z.
Installation
1. Provider CLI (install and sign in yourself)
npm install -g @google/gemini-cli2. Connect Ask LLM to your assistant
npm i -g @ask-llm/mcp && ask-llm setupSetup registers the unified Ask LLM server, which consults Gemini through the ask-llm tool with provider: "gemini". The tools listed below belong to the retired standalone @ask-llm/gemini-mcp server, which is no longer published; ask-llm with provider: "gemini" reaches the same provider. See Migration to move an earlier installation to the setup registration.
Prerequisites
- Node.js v24.0.0 or higher
- An existing, eligible Gemini Code Assist Standard or Enterprise seat. Install Gemini CLI, launch
geminiinteractively, and select Sign in with Google with the account assigned to that seat. Gemini CLI sign-in instructions
npm install -g @google/gemini-cliTools
| Tool | Purpose |
|---|---|
ask-gemini | Send prompts to Gemini CLI with @ file syntax. Optional sessionId for multi-turn; live progressive output via --output-format stream-json |
ask-gemini-edit | Structured code edits via Gemini changeMode. Returns OLD/NEW edit blocks. Supports includeDirs for monorepo context |
fetch-chunk | Retrieve subsequent chunks from cached large responses |
get-usage-stats | Per-session token totals + breakdowns by provider/model. In-memory |
ping | Fast connection test to verify MCP setup |
ask-gemini returns both human-readable text and a structured AskResponse (provider, response, model, sessionId, usage) via MCP outputSchema; programmatic clients can extract the sessionId and usage fields directly without parsing the response footer.
Models
- Default:
gemini-4-argon(Gemini 4 Argon) - Quota fallback:
gemini-3.8-flash, automatic onRESOURCE_EXHAUSTED - Overrides:
ASK_GEMINI_MODEL,ASK_GEMINI_FALLBACK_MODEL, or the per-callmodelparameter
Access to these pinned models through existing Code Assist seats is unverified.
Optional model override: Gemini 3.5 Flash-Lite
gemini-3.5-flash-lite can be requested as a model override. Access through an existing Code Assist seat is unverified. Confirm model availability for your seat before configuring it.
Set either variable in your MCP server environment.
# Use Flash-Lite for ordinary Gemini calls without a per-call model override:
ASK_GEMINI_MODEL=gemini-3.5-flash-lite# Or keep the default and use Flash-Lite only for quota fallback:
ASK_GEMINI_FALLBACK_MODEL=gemini-3.5-flash-liteRestart your host after changing the server environment. With neither override, the default remains gemini-4-argon and the quota fallback remains gemini-3.8-flash.
Key Features
- Multi-turn sessions via
sessionIdwith native--resume <id> - Include directories for monorepo context (
includeDirsparameter onask-gemini-edit) - Live progressive output: assistant message deltas stream to MCP progress notifications, no frozen waits on long calls
- Structured AskResponse via outputSchema for programmatic clients
- Automatic quota fallback on
RESOURCE_EXHAUSTED
npm
- Package: @ask-llm/mcp, which bundles the Gemini provider
- Binary:
ask-llm(setup and diagnostics) andask-llm-mcp(the server) - The standalone
@ask-llm/gemini-mcppackage and itsask-gemini-mcpbinary are retired; see Migration.