All OpenSwarm configuration lives in a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/UnkleFunk/HouseMusicSwarm-/llms.txt
Use this file to discover all available pages before exploring further.
.env file at the root of the project. To get started, copy the template and fill in your keys:
openswarm (npm) or python onboard.py (local) — writes this file for you automatically. You can also edit it by hand at any time. Every key is optional except for one: you must supply an API key for at least one AI provider.
AI provider (required — choose one)
OpenSwarm requires exactly one AI provider key to function. Choose the provider that best fits your use case and add the corresponding key to.env.
| Variable | Provider | Default model | Get your key |
|---|---|---|---|
OPENAI_API_KEY | OpenAI | gpt-5.2 | platform.openai.com/api-keys |
ANTHROPIC_API_KEY | Anthropic | litellm/claude-sonnet-4-6 | console.anthropic.com/settings/keys |
GOOGLE_API_KEY | Google Gemini | litellm/gemini/gemini-3-flash | aistudio.google.com/app/apikey |
DEFAULT_MODEL automatically to match the provider you select.
Model selection
TheDEFAULT_MODEL environment variable controls which model all agents use. It is set automatically by the setup wizard, but you can override it manually at any time.
config.py reads DEFAULT_MODEL at startup. If the value contains a /, it is treated as a LiteLLM model string and wrapped in agency_swarm.LitellmModel. OpenAI model IDs (e.g. gpt-5.2, o3) contain no slash and are passed to the OpenAI API directly. This means you can use any LiteLLM-supported model by prefixing it with litellm/ — no other code changes required.
Optional integrations
Composio — 10,000+ external integrations
Composio — 10,000+ external integrations
Composio extends the Virtual Assistant with access to over 10,000 external services including Gmail, Slack, GitHub, HubSpot, Google Calendar, Notion, Stripe, and more.Both values are required. The user ID scopes which connected accounts the agent can access. Get your credentials at composio.dev.Without these keys, the Virtual Assistant operates without external integrations but still handles writing, planning, and local tasks.
Web Search — SearchAPI
Web Search — SearchAPI
The Get your key at searchapi.io. Without this key, the Deep Research agent cannot perform live web queries and will work from its training data only.
SEARCH_API_KEY enables web search, Google Scholar search, and product search across all agents — primarily used by the Deep Research agent.Google AI / Gemini — image generation and Veo video
Google AI / Gemini — image generation and Veo video
The Get your key at aistudio.google.com/app/apikey.If you chose Google Gemini as your primary AI provider, this key is already set and also covers model inference — no separate key is needed.
GOOGLE_API_KEY enables Gemini-powered image generation and editing (Gemini 2.5 Flash Image, Gemini 3 Pro Image) across the Image Generation agent, Slides Agent, and Video Generation agent. It also unlocks Veo video generation in the Video Generation agent.fal.ai — Seedance video, editing, and background removal
fal.ai — Seedance video, editing, and background removal
The Get your key at fal.ai/dashboard/keys. Without this key, the Video Generation agent falls back to Sora (OpenAI) or Veo (Google) if those provider keys are available, and background removal in the Image agent is unavailable.
FAL_KEY enables Seedance 1.5 Pro video generation, video editing and clip combination, and background removal in the Image Generation agent.Stock photos — Pexels, Pixabay, Unsplash
Stock photos — Pexels, Pixabay, Unsplash
These keys enable the Slides Agent’s image search tool, which pulls high-quality stock photos into generated slide decks automatically.All three are optional and independent — the agent uses whichever keys are present. Get your keys at:
- Pexels: pexels.com/api
- Pixabay: pixabay.com/api/docs
- Unsplash: unsplash.com/developers
GOOGLE_API_KEY or FAL_KEY is present.Complete .env reference
The following is the full .env.example from the repository, showing every supported variable with inline documentation: