Skip to content

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
mainfrom
feat/generic-ai-gateway
Open

feat: generic AI gateway support via AI_GATEWAY_API_BASE / AI_GATEWAY_API_KEY#148
krrish-berri-2 wants to merge 1 commit into
mainfrom
feat/generic-ai-gateway

Conversation

@krrish-berri-2

Copy link
Copy Markdown
Collaborator

Summary

  • Adds AI_GATEWAY_API_BASE and AI_GATEWAY_API_KEY env vars as generic alternatives to LITELLM_API_BASE / LITELLM_API_KEY across all three providers (anthropic, codex, pi-ai)
  • Resolution order: LITELLM_*AI_GATEWAY_* → provider-native keys, so existing configs are unaffected
  • Adds docs/ai-gateway.md with per-harness wiring table and a clear note that the gateway must support all harness endpoints
  • Updates docs/configuration.md with the new vars and a link to the new doc
  • Links new doc from README.md after the LiteLLM gateway section

Test plan

  • Set only AI_GATEWAY_API_BASE + AI_GATEWAY_API_KEY, verify each harness routes through the gateway
  • Set both LITELLM_* and AI_GATEWAY_*, confirm LITELLM_* wins
  • Set neither, confirm provider-native keys still work
  • Read docs/ai-gateway.md and verify endpoint assumption note is present

🤖 Generated with Claude Code

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant