Environment Configuration
Learn how to configure LLM providers and environment variables
Most agents require access to language models and other external services to function. BeeAI makes it easy to configure these connections once and share them across all your agents.
Quickstart Interactive Setup
The fastest way to get started is with the interactive setup wizard:
The setup wizard will then guide you through:
- API Key entry (with validation)
- Model selection (with recommendations)
- Connection testing (to verify everything works)
- Provider-specific options (like context window for Ollama)
Supported LLM Providers
BeeAI supports a wide range of language model providers:
Cloud Providers
- Anthropic Claude
- Cerebras - has a free tier
- Chutes - has a free tier
- Cohere - has a free tier
- DeepSeek
- Google Gemini - has a free tier
- Groq - has a free tier
- IBM watsonx
- Mistral - has a free tier
- NVIDIA NIM
- OpenAI
- OpenRouter - has some free models
- Perplexity
- together.ai - has a free tier
Local Providers
- Ollama
- Jan
Custom Providers via LLM Gateway
If you have a custom OpenAI-compatible API endpoint, you can configure it during the interactive setup via beeai env setup
by selecting “Other (RITS, vLLM, …)” and providing your API URL.
BeeAI includes a built-in LLM gateway that provides a unified OpenAI-compatible API endpoint. This is useful when you want to:
- Point existing agents to BeeAI instead of directly to LLM providers
- Centrally manage API keys and provider configurations
- Switch providers without reconfiguring individual agents
After configuring BeeAI with a provider, the gateway is available at: http://localhost:8333/api/v1/llm/chat/completions
This is a POST-only API endpoint for programmatic use. Use curl or OpenAI-compatible clients to interact with it.
The gateway automatically handles:
- Authentication with your configured provider
- Provider-specific request/response formatting
- Both streaming and non-streaming responses
- Request validation and error responses
Agent-Specific Variables
Some agents require additional API keys for external services.
Example variables that agents might declare:
Manual Environment Management
Add Variables
Set individual variables:
View Current Configuration
List all configured environment variables:
Remove Variables
Remove specific variables: