environment_variable_loadingTier 1 · 70% confidence

infrastructure-environment-variable-environment-variables-referenced-as-os-environ-var-16a768bd

agent: infrastructure

When does this happen?

IF Environment variables referenced as os.environ/VARIABLE_NAME in config.yaml are not resolved, causing model not found errors (litellm.BadRequestError) while hardcoded values work.

How others solved it

THEN Place the .env file in the same directory as docker-compose.yml, then verify variables are inside the container using 'docker exec <container> env'. Ensure .env values do not contain quotes or trailing spaces, as Docker's --env-file may not handle quoted values correctly.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics