Skip to content

Gemini

Google Gemini via its OpenAI-compatible endpoint, selected with LLM_PROVIDER=gemini, used to extract facts from conversations.

Enable it

bash
LLM_PROVIDER=gemini
OPENAI_API_KEY=<gemini-api-key>
OPENAI_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
OPENAI_LLM_MODEL=gemini-2.0-flash

Configuration

VariableDefaultDescription
LLM_PROVIDERopenaiSet to gemini.
OPENAI_API_KEY(none)Google API key, sent as a bearer token.
OPENAI_BASE_URLhttps://api.openai.com/v1Point at Gemini's OpenAI endpoint: https://generativelanguage.googleapis.com/v1beta/openai.
OPENAI_LLM_MODELgpt-4.1-nanoA Gemini model, e.g. gemini-2.0-flash.

Notes

  • OpenAI-compatible: the provider reuses the OpenAI request handling and only differs by base URL, key, and model.
  • The provider also reads a key directly from GEMINI_API_KEY, then GOOGLE_API_KEY, when no key is supplied.
  • You must override OPENAI_BASE_URL to Gemini's endpoint; its default points at OpenAI.

The memory layer for AI agents.