Environment Variables¶
Once you have installed readmeai
, set up the required environment variables for the API key of your chosen language model provider. The following examples demonstrate how to set the environment variables for each provider supported by readme-ai:
Setting API Keys¶
 OpenAI¶
 Anthropic¶
 Google Gemini¶
Window Users
On Windows, use set
instead of export
to set environment variables.
 Ollama¶
1. Pull your preferred language model from the Ollama server.
For example, to pull themistral
model: 2. Set the OLLAMA_HOST
environment variable and start the Ollama server. Unsupported Language Models
If your preferred LLM API is not supported, open an issue or submit a pull request and we'll review the request!