# NousResearch/hermes-agent · Expand environment variable references in gateway fallback config

## Open now

- 1 issue, 3 PRs open on GitHub.
- #20974: fallback_model.api_key in config.yaml is not expanded for ${VAR} references in gateway mode
- PR #20980: fix(gateway): expand fallback env vars in gateway mode
- PR #21029: fix(gateway): expand fallback env references
- PR #25005: fix(gateway): expand env vars in fallback_providers/fallback_model config

All four members concern ${VAR}-style environment variable references in fallback settings (such as fallback_model.api_key and fallback_providers) not being expanded when running in gateway mode. Three are titled as fixes and one reads as an issue report; the titles alone do not show what the outcomes were.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #20974: fallback_model.api_key in config.yaml is not expanded for ${VAR} references in gateway mode

## Prior & competing PRs

- **#20980: fix(gateway): expand fallback env vars in gateway mode**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `7245bc77eb3b92b311c622806821375709bbe4d2`
  - files: `gateway/run.py`, `tests/gateway/test_auth_fallback.py`
- **#21029: fix(gateway): expand fallback env references**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `gateway/run.py`, `tests/gateway/test_auth_fallback.py`
- **#25005: fix(gateway): expand env vars in fallback_providers/fallback_model config**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#20974`, `#20980`, `#21029`
  - files: `gateway/run.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
- Kind: `bug` (from the open issues' GitHub type labels).
