AI Model Guide

How to Use Gemini 3.1 Pro with OpenClaw

Google's Gemini 3.1 Pro is a frontier model with exceptional reasoning, coding, and long-context capabilities. Connect it to your OpenClaw instance in minutes via OpenRouter and control it through WhatsApp, Telegram, Discord, or Slack.

Why Use Gemini 3.1 Pro with OpenClaw?

Gemini 3.1 Pro brings Google's frontier AI capabilities to your self-hosted AI agent at competitive pricing.

Advanced Reasoning

Gemini 3.1 Pro delivers state-of-the-art reasoning across math, science, and complex multi-step tasks — ideal for an autonomous AI agent that needs to think deeply.

Massive Context Window

With one of the largest context windows available, Gemini 3.1 Pro can process long documents, entire codebases, and extended conversations without losing track.

Strong at Coding

Excels at code generation, debugging, refactoring, and technical analysis — perfect for DevOps automation and development workflows through OpenClaw.

Built-in Safety

Google's robust safety filters and alignment training help ensure your OpenClaw agent responds responsibly and handles sensitive topics appropriately.

Cost-Effective via OpenRouter

Access Gemini 3.1 Pro through OpenRouter at competitive per-token pricing. One API key gives you Gemini 3.1 Pro plus hundreds of other models — no separate Google Cloud account needed.

Fast Inference

Low-latency responses powered by Google's infrastructure mean your OpenClaw agent replies quickly through WhatsApp, Telegram, Discord, or Slack.

Setup in 4 Steps

Get Gemini 3.1 Pro running as your OpenClaw agent via OpenRouter in under five minutes.

1

Get Your OpenRouter API Key

Sign up at openrouter.ai, navigate to the API Keys section, and generate a new key. OpenRouter gives you access to Gemini 3.1 Pro and hundreds of other models with a single key — no separate Google Cloud account required.

2

Open the DeployClaw Dashboard

Log in to app.deployclaw.com and open your OpenClaw instance. Navigate to the Agents tab from the top menu.

3

Add a New Agent

Click "+ Add Agent", select "OpenRouter" as the provider, paste your API key and click Verify. Then choose "Google: Gemini 3.1 Pro Preview" from the Model dropdown.

4

Configure and Deploy

Give your agent a name (e.g., "Gemini Agent") and click "Add Agent" to save. Your OpenClaw instance will now route messages to Gemini 3.1 Pro through OpenRouter.

Gemini 3.1 Pro OpenClaw setup — Edit AI Agent dialog with agent name, OpenRouter provider, verified API key, and Google Gemini 3.1 Pro Preview model selected
The Edit AI Agent dialog with Gemini 3.1 Pro selected via OpenRouter

That's it. Your OpenClaw agent is now powered by Gemini 3.1 Pro. Send it a message through any connected platform to start.

Gemini 3.1 Pro running on OpenClaw — Agents tab showing the configured default agent with OpenRouter provider and google/gemini-3-1-pro-preview model ready
Your Gemini 3.1 Pro agent ready to go in the OpenClaw dashboard

Frequently Asked Questions

What is Gemini 3.1 Pro?

Gemini 3.1 Pro is a frontier large language model developed by Google. It offers exceptional reasoning, coding, and long-context capabilities, making it a powerful choice for AI agent workflows.

Why use OpenRouter instead of the Google AI API directly?

OpenRouter gives you access to Gemini 3.1 Pro and hundreds of other models with a single API key and unified billing. No need to set up a Google Cloud account or manage GCP credentials. You can also switch models instantly without changing provider settings.

How much does Gemini 3.1 Pro cost through OpenRouter?

OpenRouter charges per token at competitive rates based on the model. You pay OpenRouter for API usage and DeployClaw separately for the deployment platform. Check openrouter.ai for current Gemini 3.1 Pro pricing.

Can I switch between Gemini 3.1 Pro and other models?

Absolutely. Since you're using OpenRouter, switching models is as easy as changing the model selection in your agent settings. Try Gemini 3.1 Pro, Claude, GPT, Llama, or any other model — all through the same API key.

Does Gemini 3.1 Pro work with all OpenClaw features?

Yes. Gemini 3.1 Pro works with all OpenClaw capabilities including shell access, file management, web browsing, and messaging platform integrations. It supports tool calling required by OpenClaw's agent framework.

Is my data sent to Google?

When using Gemini 3.1 Pro via OpenRouter, messages are routed through OpenRouter to Google for inference. If data privacy is a concern, you can run a local model via Ollama instead. OpenClaw supports both cloud and local models.

Start using Gemini 3.1 Pro with OpenClaw

Deploy your own AI agent powered by Google's latest model via OpenRouter.