Gemini 3.8 Flash by Default
Instantaneous response latency coupled with deep multi-step thinking tokens via gemini-3.8-flash-high.
Unleash Google's Gemini 3.8 Flash, Gemini 3.1 Pro, reasoning depth, and Imagen multimodal generation directly inside Claude Code, Cursor, and autonomous agent workflows.
Experience how Claude Code interacts with gemini-relay in real-time across architectural planning, large context inlining, visual generation, and structured outputs.
### 📋 Architectural Blueprint: Resilient WebSocket Server
**Mode:** --mode plan | **Reasoning Effort:** High (4,180 thinking tokens)
#### Phase 1: Core Stream Engine & Backpressure
- Implement stream.Writable with highWaterMark: 64KB.
- Buffer overflow strategy: Pause socket frame ingestion when client buffer exceeds 80% threshold.
#### Phase 2: Autonomous Token Rotation
- Background lease manager checking JWT expiry at T-60s.
- Non-blocking handshake refresh without closing established TCP sockets.
#### Phase 3: Failure Modes & Recovery
- Exponential backoff with full jitter: min(30s, 100ms * 2^attempt + rand(0, 50ms)).Explore the thinking token budgets available across Gemini 3.8 Flash and Gemini 3.1 Pro.
Control thinking token depth per tool call using effort: "low" | "medium" | "high".
Security vulnerability audits, race conditions, distributed architecture design, mathematical algorithms, and comprehensive system planning (gemini-plan).
await useGeminiPlan({
task: "Design distributed lock mechanism with Redis & auto-renew",
context: "High-throughput financial ledger API with strict consistency",
effort: "high"
});The default engine for Gemini Relay. Delivers state-of-the-art multimodal speed paired with multi-step reasoning depth.
Top-tier complex problem solving, formal mathematical algorithms, concurrency analysis, and mission-critical architecture.
Optimized for instant parsing, commit summaries, AST linting, and high-frequency queries without thinking delay.
Add the MCP server to your local Claude Code instance in seconds:
claude mcp add gemini-relay -- npx -y gemini-relayVerify your setup at any time by asking Claude:
"Run gemini-doctor to check the status of the MCP server and active backend"