You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the ~/.infer/auth.json provider key fallback and precedence order #642
PR inference-gateway/cli#1169 (resolves inference-gateway/cli#1167) adds a userspace fallback for provider API keys: ~/.infer/auth.json, a flat JSON map of provider key env vars (for example ANTHROPIC_API_KEY, OPENAI_API_KEY). Keys resolve per key with first hit winning: system environment, project .env, then ~/.infer/auth.json. The fallback applies to the gateway (container and binary modes) and to A2A agent containers. A missing or unreadable file degrades silently; a malformed file is ignored with a logged warning; permissions broader than 0600 warn.
The CLI repo's own README.md and docs/configuration-reference.md were updated in the PR. This ticket asks for the same coverage in the docs site.
Acceptance Criteria
The docs site pages that cover provider keys / .env setup mention ~/.infer/auth.json and the precedence order (system environment > project .env > ~/.infer/auth.json, first hit wins).
The recommended file permissions (chmod 600) and the fact that the file is on the sandbox protected paths list (agent tools cannot read or edit it) are mentioned.
The graceful-degradation behavior is stated: a missing or unreadable file changes nothing; a malformed file is ignored with a logged warning.
Also added an auth.json row to the config-files table, a ~/.infer/auth.json bullet under Protected Paths, and a cross-reference from the .env section of configuration.md.
Not done: nothing from the acceptance criteria. No generated sections were touched, so no task generate run was needed.
Activity
edenreich commentedon Sep 3, 2026
@claude Can you document this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 3, 2026
Claude finished @edenreich's task in 2m 7s —— View job •
docs/issue-642-20260903-1314• Create PR ➔Documented
~/.infer/auth.json.envlint:md,format:check,build- all pass)cli.md- new### Provider API keyssection under Configuration:.env>~/.infer/auth.json, resolved per key, first hit wins (so sources can mix in one run).chmod 600recommended (broader permissions warn), file is on the protected paths list so agent tools cannot read or edit it.Also added an
auth.jsonrow to the config-files table, a~/.infer/auth.jsonbullet under Protected Paths, and a cross-reference from the.envsection ofconfiguration.md.Not done: nothing from the acceptance criteria. No generated sections were touched, so no
task generaterun was needed.| Branch
feat(auth): add ~/.infer/auth.json as userspace provider key fallback (…
inference-gateway-releaser commentedon Sep 22, 2026
🎉 This issue has been resolved in version 0.9.14 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀