Skip to main content
If you see a request for an OpenAI API key but haven’t configured OpenAI, it’s because Agno uses OpenAI by default in two places:
  • The default model when Agent has no model set
  • The default embedder (OpenAIEmbedder) for vector databases

Quick fix: Configure a Different Model

Specify the model explicitly. Without one, the agent defaults to OpenAIResponses with gpt-5.4, which requires OPENAI_API_KEY. For example, to use Google’s Gemini instead of OpenAI:
See Models for the full provider list.

Quick fix: Configure a Different Embedder

The same applies to embeddings. To use an embedder other than OpenAIEmbedder, configure it explicitly. For example, to use Google’s Gemini as an embedder, use GeminiEmbedder:
See Embedders for the available options.