feat: generic AI gateway support via AI_GATEWAY_API_BASE / AI_GATEWAY_API_KEY - #148
Open
krrish-berri-2 wants to merge 1 commit into
Open
feat: generic AI gateway support via AI_GATEWAY_API_BASE / AI_GATEWAY_API_KEY#148krrish-berri-2 wants to merge 1 commit into
krrish-berri-2 wants to merge 1 commit into
Conversation
…y support All three providers (anthropic, codex, pi-ai) now resolve the effective gateway base URL and key from LITELLM_* first, then AI_GATEWAY_* as a fallback, enabling any OpenAI-compatible gateway without LiteLLM-specific vars. Adds docs/ai-gateway.md with endpoint assumption note, updates docs/configuration.md, and links the new doc from README. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AI_GATEWAY_API_BASEandAI_GATEWAY_API_KEYenv vars as generic alternatives toLITELLM_API_BASE/LITELLM_API_KEYacross all three providers (anthropic,codex,pi-ai)LITELLM_*→AI_GATEWAY_*→ provider-native keys, so existing configs are unaffecteddocs/ai-gateway.mdwith per-harness wiring table and a clear note that the gateway must support all harness endpointsdocs/configuration.mdwith the new vars and a link to the new docREADME.mdafter the LiteLLM gateway sectionTest plan
AI_GATEWAY_API_BASE+AI_GATEWAY_API_KEY, verify each harness routes through the gatewayLITELLM_*andAI_GATEWAY_*, confirmLITELLM_*winsdocs/ai-gateway.mdand verify endpoint assumption note is present🤖 Generated with Claude Code