AI Providers
Configure AI providers for KyroJudge — OpenAI, Anthropic, Gemini, Azure, and Ollama.
Kyro uses @kyro/shared's ProviderFactory to create provider instances. Providers implement the AIProvider interface and handle all API communication.
ProviderFactory
OpenAI
Supported models: gpt-4o, gpt-4o-mini, gpt-4-turbo, o1, o1-mini, and all other OpenAI chat models.
Anthropic
Supported models: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5-20251001, and all other Anthropic models.
Google Gemini
Supported models: gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash.
Azure OpenAI
Ollama (local models)
💡Tip
Ollama requires the ollama package and a running Ollama server. Install with npm install ollama.
Custom providers
Implement the AIProvider interface from @kyro/shared to use any other AI service:
Summary
| Provider | Package dependency | Env variable |
|---|---|---|
| OpenAI | openai | OPENAI_API_KEY |
| Anthropic | @anthropic-ai/sdk | ANTHROPIC_API_KEY |
| Gemini | @google/generative-ai | GEMINI_API_KEY |
| Azure | openai | AZURE_OPENAI_API_KEY |
| Ollama | ollama | — (uses host) |