Spiral gives your agent every tool with one account. Browse the tools →

Gemini CLI · LLMReleased 2026-03-16

How to Use Mistral Small 4 in Gemini CLI

Mistral Small 4 handles code exploration, document analysis, and multilingual chat with a 256k context window. Adjustable reasoning lets you reserve deeper analysis for difficult problems and use direct responses for routine work.

Prompts to try with Mistral Small 4 in Gemini CLI

Copy an example into Gemini CLI, or ask in your own words.

Use Mistral Small 4 to trace authentication through this repository. Identify the entry points, validation checks, and session storage, citing file paths and relevant functions.

Mistral Small 4Gemini CLI
Try asking
  • Use Mistral Small 4 with high reasoning to investigate the failing test output and relevant source files. Propose the smallest fix, explain the cause, and run the affected tests.

  • Use Mistral Small 4 to compare the API specification with the route handlers in this project. Return JSON listing mismatched behavior, supporting file references, and suggested corrections.

  • Use Mistral Small 4 with reasoning turned off to draft release notes from the current diff. Group changes by user impact and cite the changes supporting each bullet.

  • Use Mistral Small 4 with high reasoning to review the queue retry logic. Check duplicate processing, retry exhaustion, and failed acknowledgments, then propose tests for the risks you find.

How to set up Mistral Small 4 in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Mistral Small 4

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "mistralai/mistral-small-2603",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Gemini CLI finds Mistral Small 4 on Spiral, shows the price and runs it.

Mistral Small 4 providers and prices

Spiral runs Mistral Small 4 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Mistral: Mistral Small 4
mistralai/mistral-small-2603

Settings you can ask for

Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top p0 to 1
Max tokens1 to 209715

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Reasoning effortnone or highhigh

How much the model reasons.

Frequency penalty-2 to 2

Every API field of Mistral: Mistral Small 4 is on its tool page: open its card above.

What can you do with Mistral Small 4 in Gemini CLI?

Mistral Small 4 can help you understand a repository, investigate failures, and draft focused code changes. Use deeper reasoning for difficult debugging and structured results for review checklists.

Trace an unfamiliar codebase

Follow a request from its entry point through validation, business logic, and storage. Ask for file references and a short explanation of each step.

Investigate a failing test

Compare the failure output with the relevant implementation, identify a likely cause, and propose a focused fix. Use high reasoning when several components interact.

Compare lengthy documents

Find conflicting requirements across policies or specifications. Request section references and separate explicit statements from interpretations.

Turn support requests into records

Classify each request and extract its issue, requested action, and unresolved questions into a defined JSON structure.

Draft multilingual support replies

Use supplied policy text to draft replies in English, French, German, or Spanish. Preserve product names and flag questions the policy does not answer.

Explain charts

Analyze a supplied chart image, describe the visible trend, and identify the labels or values supporting the explanation. Ask it to mark unreadable details.

Extract document details

Pull dates, organizations, obligations, and supporting passages from supplied documents into a consistent record for review.

Compare constrained plans

Evaluate proposals against stated requirements, explain which constraints each satisfies, and list the missing information needed for a decision.

Questions about Mistral Small 4 in Gemini CLI

Can Gemini CLI use Mistral Small 4?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Mistral Small 4 like any built-in tool.

How much does Mistral Small 4 cost in Gemini CLI?

Up to $0.003202 per run at the default inputs. $0.195 per 1M input tokens, $0.78 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need an OpenRouter account to use Mistral Small 4 in Gemini CLI?

No. Spiral runs Mistral Small 4 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Mistral Small 4 in Gemini CLI?

About two minutes: add the server, then sign in, then check it.

Does Gemini CLI wait while Mistral Small 4 runs?

Mistral Small 4 runs in the background. Gemini CLI starts the run, checks on it and gives you the text, json when it's ready.

What is Mistral Small 4 useful for?

Use it for code exploration, document analysis, multilingual conversations, and problems that need several reasoning steps. It also supports structured extraction when you need a consistent result.

When should I use deeper reasoning?

Use high reasoning for difficult debugging, math, or comparisons with several constraints. For routine summaries and straightforward questions, start with reasoning turned off; high reasoning generates additional thinking tokens.

How much text can Mistral Small 4 handle?

Its context window is 256k tokens. Input and output share that allowance, so leave room for the answer instead of filling the entire window with source material.

Which languages does Mistral Small 4 support?

Mistral lists English, French, Spanish, German, Italian, Portuguese, Dutch, Chinese, Japanese, Korean, and Arabic. Specify the response language and provide any terminology you want preserved.

Which temperature should I start with?

Mistral recommends 0.7 with high reasoning. With reasoning turned off, its recommended range is 0.0 to 0.7, depending on the task.

Get started

Start using Mistral Small 4 in Gemini CLI

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini CLI:

Set up Gemini CLI

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options