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
| Provider | Default | Fallback | Trigger |
|---|---|---|---|
| Gemini | gemini-4-argon | gemini-3.8-flash | RESOURCE_EXHAUSTED quota error or "exhausted your capacity" pattern |
| Codex | gpt-6.2-sol | gpt-6.1-terra | Quota errors (rate_limit_exceeded, 429, insufficient_quota) |
| Claude | opus (Opus 5.5, claude-opus-5-5) | sonnet | Claude Code native fallback when Opus is overloaded or unavailable |
| Grok | grok-4.7 (reasoning.effort=high) | none | Every error is terminal; requested ID is sent unchanged |
| Antigravity | Submits gemini-4-neon with --effort high | Submits 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 |
| Ollama | qwen3.8:27b | none | Local, 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":
| Task | Suggested provider | Why |
|---|---|---|
| Targeted code reasoning, refactor critique | Codex | GPT-6.2 Sol is the default; see Codex Pair for pair-review defaults |
| Claude second opinion while working in Codex | Claude | Opus 5.5 (opus) review through Claude Code CLI, with native session continuation and read-only file access |
| Grok 4.7 independent critique | Grok | Exact model selection, configurable reasoning depth, structured JSON Schema output |
| Private / air-gapped analysis | Ollama | Runs locally, nothing leaves your machine |
| Antigravity second opinion | Antigravity | Unified ask-llm with provider: "antigravity" and local opt-in. See Google's consumer-plan terms and account checks. |
| Gemini CLI review | Gemini | An existing, eligible Gemini Code Assist Standard or Enterprise seat. Access to the pinned models is unverified. |
| "What do they all think?" comparison | Multi-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 skill | Antigravity + 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:
Use ask-llm with provider gemini and model gemini-3.8-flash to quickly check this CSS fileOr programmatically:
{ "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:
Use ask-llm with provider codex and model gpt-6.1-terra to summarize this commitFor Ollama, you can request any model you've pulled:
ollama pull deepseek-coder:6.7bUse ask-llm with provider ollama and model deepseek-coder:6.7b to review this implementationUse the unified ask-llm tool with provider: "antigravity". For model and effort overrides, see the Antigravity configuration reference.
Token Limits & Cost
| Provider | Context window | Cost model |
|---|---|---|
| Gemini CLI | Depends on available model | Existing, eligible Gemini Code Assist Standard or Enterprise seat |
| Codex GPT-6.2 Astra / GPT-6.2 Sol | Per OpenAI's published context window | Your authenticated account’s quota/billing |
| Grok 4.7 | 500k tokens on xAI API | API is metered; Grok CLI follows its authenticated plan |
| Cursor Agent harness | Per selected catalog model | Included usage/on-demand spend follows the user's Cursor plan; Ask LLM never changes spend settings |
| Codex GPT-6.1 Terra | Per OpenAI's published context window | Cheaper, faster fallback target |
| Ollama | Per 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.usageonask-*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-statsMCP tool, or read theusage://current-sessionMCP Resource for a JSON snapshot - In the REPL: type
/usagefor 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-terraexplicitly 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-llmor/ask-llm-brainstormskill; Claude weighs verified vs inferred