SesameSesame

Gemini

Google's Gemini agent for AI-assisted coding

Gemini is Google's multimodal AI, capable of understanding code, images, and complex technical contexts. It offers strong reasoning capabilities and integration with Google's ecosystem.

Overview

FeatureDetails
ProviderGoogle
CLI Toolgemini
Auth MethodsAPI key only

Sesame automatically installs the Gemini CLI via npm when a session starts. You do not need to install it manually. Unlike the other agents which are native binaries, Gemini is a Node.js package installed to a local prefix directory in the sandbox.

Authentication

Gemini currently only supports API key authentication. Subscription-based auth (Google One AI Premium) requires browser interaction and isn't supported headlessly.

API Key Setup

  1. Go to Google AI Studio
  2. Click "Create API Key" or copy an existing key
  3. Add to Sesame:
    • UI: Settings → Agent Credentials → Gemini → enter key → Save
    • Environment variable: Set GEMINI_API_KEY

Gemini only supports API key authentication, so there is no tab selector — the API key form is shown directly when you expand Gemini in the Agent Credentials dialog.

Environment Variables

VariableDescription
GEMINI_API_KEYAPI key from Google AI Studio

Troubleshooting

"API key invalid"

  • Verify the key at Google AI Studio
  • Ensure the key hasn't been revoked
  • Check for billing issues in Google Cloud Console

"Quota exceeded"

  • Free tier has limited requests per minute/day
  • Check your quota at Google Cloud Console
  • Consider upgrading to a paid plan

"Region not supported"

  • Gemini API availability varies by region
  • Check supported regions
  • Use a VPN if your region isn't supported (check ToS)

Slow responses

  • Gemini with large contexts can be slower
  • Consider using smaller context for simple tasks
  • Use Gemini Flash for faster responses

Bootstrap failed

If the Gemini CLI fails to install:

  • Check that the sandbox has internet access and can reach the npm registry
  • Verify Node.js and npm are available in the sandbox environment
  • Check the session logs for specific npm install errors

Pricing

For current pricing, see Google AI Pricing.

Why No Subscription Auth?

Google One AI Premium includes Gemini access, but:

  • Requires browser-based OAuth flow
  • Session tokens expire frequently
  • No official headless authentication method

For now, API keys are the only supported method. This may change if Google adds device auth support.

On this page