Quick Start
You can just set up the API key values in your environment and let dartantic find them automatically:Provider Variable Names
| Provider | Variable | Required |
|---|---|---|
| OpenAI | OPENAI_API_KEY | ✅ |
| Anthropic | ANTHROPIC_API_KEY | ✅ |
GEMINI_API_KEY | ✅ | |
| Mistral | MISTRAL_API_KEY | ✅ |
| Cohere | COHERE_API_KEY | ✅ |
| OpenRouter | OPENROUTER_API_KEY | ✅ |
| Together AI | TOGETHER_API_KEY | ✅ |
| Lambda | LAMBDA_API_KEY | ✅ |
| Ollama | None (local) | ❌ |
Agent Environment
The environment provided by your platform is a fall-back mechanism and it’s not always available, e.g. when you’re running dartantic in your Flutter web app. The first place that dartantic looks is the environment supplied by theAgent
class itself:
Examples
Next Steps
- Quick Start - Start building
- Providers - Available providers

