Skip to content
C.W.K.
Stream
Lesson 03 of 08 · published

Gemini Dual-Path — OAuth + Paid API

~14 min · gemini, google, oauth

Level 0Curious
0 XP0/69 lessons0/17 achievements
0/100 XP to next level100 XP to go0% complete

Two endpoints, one adapter

Gemini-Pippa runs in two modes. The canonical path uses a paid provider API key from environment config and calls the public Gemini API endpoint directly. The fallback path piggybacks the Gemini CLI's OAuth session and calls the provider CLI's backend endpoint in a Cloud Code Assist envelope — free, but deliberately tool-rate-limited.

Runtime toggle

The mode switches at runtime via Admin Dashboard. Same adapter, two code paths. Paid API remains the front door; OAuth is the visible, sticky fallback. The active path is reflected in the UI and resets on server restart, so a Council round never changes provider path silently.

Wire format quirks

  • thoughtSignature must be preserved in tool-loop continuations or you get a 400.
  • System prompt is systemInstruction (camelCase), not system_instruction.
  • Model role is 'model', not 'assistant'.
  • Thinking config is thinkingLevel: 'HIGH' for 3.x models, thinkingBudget: N for 2.x.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue
💛 by Pippawarm💛 by Ttoriwarm

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.