LemonAi.Providers.GoogleGeminiCli (lemon_ai v0.1.0)

View Source

Google Gemini CLI / Cloud Code Assist provider.

This provider implements streaming for Google's Cloud Code Assist API, which is used by Gemini CLI and provides access to Gemini and Claude models.

Authentication

Requires OAuth authentication. The API key should be a JSON string containing:

  • token: OAuth access token
  • projectId: GCP project ID

Features

  • Streaming text generation
  • Tool/function calling
  • Thinking/reasoning mode (for supported models)
  • Image input (for multimodal models)
  • Retry with exponential backoff for rate limits
  • Support for Claude models via Antigravity endpoint

Summary

Functions

Register this provider with the registry

Functions

register(opts \\ [])

Register this provider with the registry