Configuration

Customize models, agent behavior, API keys, and deployment settings.

Environment Variables

Agent Zero reads configuration from a .env file mounted at /a0/.env inside the container. Variables prefixed with A0_SET_ override Agent Zero's internal settings.

API Keys

VariableDescriptionRequired
API_KEY_OPENROUTEROpenRouter API key for LLM accessYes
OPENAI_API_KEYOpenAI API key (for embeddings)Recommended

Model Settings

VariableDefaultDescription
A0_SET_chat_model_provideropenrouterProvider for chat/reasoning model
A0_SET_chat_model_namemoonshotai/kimi-k2.5Chat model name
A0_SET_util_model_provideropenrouterProvider for utility/fast model
A0_SET_util_model_namegoogle/gemini-2.5-flash-previewUtility model name
A0_SET_embed_model_provideropenaiProvider for embeddings
A0_SET_embed_model_nametext-embedding-3-smallEmbedding model name
A0_SET_chat_model_ctx_length128000Max context length for chat model

Auth & Security

VariableDefaultDescription
AUTH_LOGINadminWeb UI login username
AUTH_PASSWORDWeb UI login password
A0_SET_mcp_server_token(auto-generated)API key for X-API-KEY auth

Note: By default, mcp_server_token is auto-generated at startup. The included a0-dotenv/patch-settings.py script patches Agent Zero to respect the token set in .env, enabling fixed API keys for backend integration.

Feature Toggles

VariableDefaultDescription
A0_SET_a2a_server_enabledtrueEnable Agent-to-Agent communication
A0_SET_mcp_server_enabledfalseEnable MCP server
A0_SET_update_check_enabledfalseDisable auto-update checks

Agent Profiles

Each agent's behavior is configured in agents/bmad-{role}/:

settings.json

Controls model parameters specific to each agent:

{
    "chat_model_kwargs": {"temperature": 0.5},
    "chat_model_ctx_length": 128000,
    "chat_model_ctx_history": 0.75
}
FieldDescription
temperatureControls randomness. Low (0.2) = precise; High (0.7) = creative
chat_model_ctx_lengthMaximum tokens in the context window
chat_model_ctx_historyFraction of context reserved for conversation history (0.0–1.0)

prompts/

Contains the system prompt that defines the agent's persona, behavior, and instructions. Edit these to customize how each agent responds.

SKILL.md

Defines the agent's skill for Agent Zero's skill system — triggers, capabilities, inputs, and outputs. This enables the Orchestrator to route tasks to the right agent.

Switching Models

To use a different model, update the a0-dotenv/.env file:

# Example: Use Claude Sonnet via OpenRouter
A0_SET_chat_model_provider=openrouter
A0_SET_chat_model_name=anthropic/claude-sonnet-4-20250514

# Example: Use GPT-4o via OpenRouter
A0_SET_chat_model_provider=openrouter
A0_SET_chat_model_name=openai/gpt-4o

# Example: Use Qwen 3.5 via OpenRouter
A0_SET_chat_model_provider=openrouter
A0_SET_chat_model_name=qwen/qwen3-235b-a22b

Then restart the containers:

docker compose -f docker-compose.live.yml restart

GMeet Backend Config

The GMeet backend reads from environment variables or defaults:

VariableDefaultDescription
GMEET_PORT4000REST API port
GMEET_WS_PORT4001WebSocket port
A0_API_KEYbmad-live-api-2026API key for Agent Zero authentication
DATABASE_URLPostgreSQL connection stringOptional persistence backend