Providers
micro-agi supports every provider that follows the OpenAI API spec (opens in a new tab).
OpenAI
Set .env
Get your OpenRouter key at https://openai.com (opens in a new tab)
OPENAI_API_KEY=YOUR_KEY
Ollama
Run local LLMs
Run Ollama
ollama run serve
Set .env
OPENAI_API_BASE=http://127.0.0.1:11434/v1
OPENAI_API_KEY=no-key-needed
Open Router
Set .env
Get your OpenRouter key at https://openrouter.ai/keys (opens in a new tab)
OPENAI_API_BASE=https://openrouter.ai/api/v1/
OPENAI_API_KEY=YOUR_KEY