Skip to content

Costs and Fallbacks ​

Hosted CLI providers (Gemini, Codex, Claude, Antigravity) auto-select a sensible default model with automatic fallback on provider-specific conditions — quota/rate-limit exhaustion, and for Antigravity also a rejected shipped model slug (see the table below). Grok and Ollama never substitute another model: Grok sends the selected API or Grok CLI catalog ID unchanged, while Ollama uses exactly the model you pull. Most users should never override the model parameter; the defaults are tuned for quality.

Defaults & Fallbacks ​

gpt-6.2-solquota / rate limitgpt-6.1-terra
When the default model hits quota, the executor retries once on the fallback and reports the actual model used in the response.
ProviderDefaultFallbackTrigger
Geminigemini-4-argongemini-3.8-flashRESOURCE_EXHAUSTED quota error or "exhausted your capacity" pattern
Codexgpt-6.2-solgpt-6.1-terraQuota errors (rate_limit_exceeded, 429, insufficient_quota)
Claudeopus (Opus 5.5, claude-opus-5-5)sonnetClaude Code native fallback when Opus is overloaded or unavailable
Grokgrok-4.7 (reasoning.effort=high)noneEvery error is terminal; requested ID is sent unchanged
AntigravitySubmits gemini-4-neon with --effort highSubmits gemini-4-hydrogen on a rate limit. Retries once without --model if agy rejects a shipped slug, unless the call set model or reasoningEffort. Both retain the effective effort (per-call reasoningEffort, then ASK_ANTIGRAVITY_EFFORT, then high). noFallback: true skips both retries and follows ASK_ANTIGRAVITY_SANDBOX.Rate limit or model-unavailable error for a shipped slug
Ollamaqwen3.8:27bnoneLocal, no fallback; a missing model returns a clear ollama pull error

Structured output includes a model label and usage.fellBack. For Antigravity, the label is the slug submitted for the successful attempt, including gemini-4-hydrogen after a successful rate-limit fallback, or agy default after a successful model-less recovery. The backend model is unverified in each case. Grok and Ollama never fall back, so their fellBack values are always false.

codex-pair defaults to gpt-6.2-sol at high reasoning effort and quota-falls back to gpt-6.1-terra. Unpinned Codex consultations also use gpt-6.2-sol.

Codex uses medium reasoning effort for ordinary calls to preserve the previous default behavior. The quality-first /ask-llm-review and /ask-llm-brainstorm skills use high. Direct ask-llm with provider: "codex" calls can override this with reasoningEffort (low, medium, high, xhigh, max, or ultra). ultra is opt-in only: Codex's catalog describes it as maximum reasoning with automatic task delegation, so review and brainstorm defaults stay at high.

Account costs ​

Review calls consume the quota or billing of the provider account you authenticate. Ask LLM does not enable billing, buy credits, or alter spending limits. Grok's metered xAI API is an explicit option requiring XAI_API_KEY; Grok Build and Cursor routes follow their own plans. Ollama uses local compute. Model agreement does not prove correctness.

Choosing a Provider ​

Different providers excel at different things. Pick by what you're doing, not by which is "best":

TaskSuggested providerWhy
Targeted code reasoning, refactor critiqueCodexGPT-6.2 Sol is the default; see Codex Pair for pair-review defaults
Claude second opinion while working in CodexClaudeOpus 5.5 (opus) review through Claude Code CLI, with native session continuation and read-only file access
Grok 4.7 independent critiqueGrokExact model selection, configurable reasoning depth, structured JSON Schema output
Private / air-gapped analysisOllamaRuns locally, nothing leaves your machine
Antigravity second opinionAntigravityUnified ask-llm with provider: "antigravity" and local opt-in. See Google's consumer-plan terms and account checks.
Gemini CLI reviewGeminiAn existing, eligible Gemini Code Assist Standard or Enterprise seat. Access to the pinned models is unverified.
"What do they all think?" comparisonMulti-LLM (multi-llm tool or /ask-llm-compare skill)Parallel dispatch, see all responses side-by-side
Code review with verified findings/ask-llm-multi-review skillAntigravity + Codex in parallel, then verifies each finding against source

Overriding the Model ​

For a Gemini CLI model override, see Flash-Lite configuration and seat eligibility.

Pass model explicitly when you have a reason to:

text
Use ask-llm with provider gemini and model gemini-3.8-flash to quickly check this CSS file

Or programmatically:

json
{ "name": "ask-llm", "arguments": { "provider": "gemini", "model": "gemini-3.8-flash", "prompt": "..." } }

For Grok, choose the harness first. Discover API IDs with authenticated GET https://api.x.ai/v1/models, or CLI IDs with grok models, then pass the desired ID unchanged. Reasoning depth is a separate reasoningEffort parameter (low, medium, high, xhigh), not a model suffix. There is no harness or model fallback. Cursor Agent is separate and model-neutral: ask-cursor-agent requires a canonical provider family (claude, codex, gemini, grok) plus an exact account ID from agent --list-models (for example a Cursor Grok ID may differ from xAI's API ID); the ID must belong to that family, and Cursor Auto or other noncanonical IDs are refused.

For Codex, common overrides:

text
Use ask-llm with provider codex and model gpt-6.1-terra to summarize this commit

For Ollama, you can request any model you've pulled:

bash
ollama pull deepseek-coder:6.7b
text
Use ask-llm with provider ollama and model deepseek-coder:6.7b to review this implementation

Use the unified ask-llm tool with provider: "antigravity". For model and effort overrides, see the Antigravity configuration reference.

Token Limits & Cost ​

ProviderContext windowCost model
Gemini CLIDepends on available modelExisting, eligible Gemini Code Assist Standard or Enterprise seat
Codex GPT-6.2 Astra / GPT-6.2 SolPer OpenAI's published context windowYour authenticated account’s quota/billing
Grok 4.7500k tokens on xAI APIAPI is metered; Grok CLI follows its authenticated plan
Cursor Agent harnessPer selected catalog modelIncluded usage/on-demand spend follows the user's Cursor plan; Ask LLM never changes spend settings
Codex GPT-6.1 TerraPer OpenAI's published context windowCheaper, faster fallback target
OllamaPer model (e.g., 256k for qwen3.8)Local compute and hardware

Track What You're Spending ​

Token usage is exposed live via:

  • Per-call: result.structuredContent.usage on ask-* tool responses (provider, model, inputTokens, outputTokens, cachedTokens, thinkingTokens, durationMs, fellBack). See Antigravity tools for agy's usage reporting.
  • Per-session aggregate: call the get-usage-stats MCP tool, or read the usage://current-session MCP Resource for a JSON snapshot
  • In the REPL: type /usage for a markdown-formatted breakdown

This is in-memory only; no persistence to disk, resets when the MCP server restarts.

Recommendations by Use Case ​

  • General code review → defaults are correct; let the fallback chain handle quota
  • Whole-codebase analysis with Google → use the Gemini CLI route if you have an eligible seat, or review the Antigravity route prerequisites.
  • Quick fixes, fast iteration → request Flash or gpt-6.1-terra explicitly to skip the flagship→fallback round-trip
  • Grok consultation → ask-grok; confirm xAI pricing and data transfer first, then use exact model IDs with no fallback
  • Privacy-sensitive code → ask-ollama, never leaves your machine
  • Multi-perspective debate → multi-llm or /ask-llm-brainstorm skill; Claude weighs verified vs inferred

Released under the MIT License.