Skip to main content
Avaluma AI uses environment variables to configure credentials and service endpoints for both the Avatar Server and the LiveKit Agent. Set these variables before starting either service — misconfigured or missing values are the most common cause of startup failures.

LiveKit Agent Variables

The LiveKit Agent reads its configuration from .env.local at startup. All variables marked Required must be present or the agent will exit with an error.

Avatar Server Variables

The Avatar Server reads its configuration from the environment block in docker-compose.yaml. Set these values before running docker compose up.

Setting Variables

LiveKit Agent — .env.local

Copy .env.example to .env.local and fill in your credentials:
Then edit .env.local with your real values:
.env.local
The agent loads .env.local specifically via load_dotenv(".env.local"). A file named .env will not be picked up automatically — make sure you use the correct filename.

Avatar Server — docker-compose.yaml

Set the Avatar Server variables directly in the environment block of docker-compose.yaml:
docker-compose.yaml
Replace api.yourdomain.com with your server’s actual public domain or IP, and replace CHANGE_THIS with a strong password before starting the server.
Never commit .env.local or expose your AVALUMA_LICENSE_KEY, LIVEKIT_API_SECRET, or API_UTILS_PWD to version control or public repositories. Add .env.local to your .gitignore file immediately after creating it.