Required
Your OpenAI API key. The gateway uses this key for all drafter, heavyweight, and embedding API calls. It is read once at process startup.
Optional
Redis connection string in If
host:port format. Used by the semantic cache to store embeddings and cached responses.When running under Docker Compose, set this to redis:6379 to reach the Redis container by its service name. The Compose file already does this:cache.enabled is false in config.yaml, this variable is not read.Qdrant HTTP URL. Used by the semantic cache to store and query vector embeddings.When running under Docker Compose, set this to If
http://qdrant:6333 to reach the Qdrant container by its service name. The Compose file already does this:cache.enabled is false in config.yaml, this variable is not read.Setting variables
Running locally
Export variables in your shell before starting the gateway binary:REDIS_URL and QDRANT_URL can be omitted when running locally if Redis and Qdrant are both listening on their default ports.
Running with Docker Compose
The Compose file passes variables to the gateway container via theenvironment block. OPENAI_API_KEY is read from your shell environment using variable substitution:
OPENAI_API_KEY in your shell before running docker compose up: