Gemini 3.1 Pro Preview as a coding agent in your terminal

Gemini 3.1 Pro Preview by Google, one of 250+ models you can use in Darce, the open source AI coding agent you can undo.

ModelGemini 3.1 Pro Preview
VendorGoogle
Model idgoogle/gemini-3.1-pro-preview
Context window1.05M tokens
Price per 1M tokens$2.00 input · $12.00 output (OpenRouter)
Can dotool calling · reads images · reasoning
CategoryPopular

Strengths

Google's Gemini Pro model with a 1M token context. Good at reading large codebases and long documents; one of Darce's default /derby contestants.

OpenRouter's description:

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation...

Use Gemini 3.1 Pro Preview as a coding agent in your terminal

Start Darce in your project with Gemini 3.1 Pro Preview:

npm install -g darce-cli
darce --model google/gemini-3.1-pro-preview

Already in a session? Type /model google/gemini-3.1-pro-preview, or open the picker with Ctrl+P. Darce then reads your code, edits files and runs commands with Gemini 3.1 Pro Preview; risky commands ask first, and /undo reverses any change, including what shell commands did. No account yet? npx darce-cli lets you try it free. Which plan includes which models is on the pricing page.

Make it your default or a gear

In ~/.darcerc, set it as the starting model or add it to the gears you move between with Shift+↑ / Shift+↓ (see configuration):

{
  "router": { "default": "google/gemini-3.1-pro-preview" },
  "gears": ["qwen/qwen3-coder", "google/gemini-3.1-pro-preview"]
}

Compare it on your own code

Benchmarks rarely match your repository. Race Gemini 3.1 Pro Preview against two other models on a real task and keep the best diff:

/derby --models google/gemini-3.1-pro-preview,google/gemini-3.8-flash,google/gemini-3.5-flash-lite fix the failing test

Read more about /derby and /swarm.

Related models

All models · Getting started · Claude Code alternative

Model data from OpenRouter, refreshed daily. Prices are OpenRouter's list rates and show relative cost; your Darce allowance is used in proportion to them.