Support dynamic apiKeyHelper field for dynamic API key support

Resolved 💬 7 comments Opened Sep 30, 2025 by HaithamMaya Closed May 18, 2026

What feature would you like to see?

For leveraging custom implementations with OAuth, or where API keys refresh more frequently, support an apiKeyHelper command, like in Claude Code: https://docs.claude.com/en/docs/claude-code/llm-gateway

{
  "apiKeyHelper": "~/bin/get-litellm-key.sh"
}

Are you interested in implementing this feature?

Yes

Additional information

_No response_

View original on GitHub ↗

7 Comments

axsaucedo · 7 months ago

+1

TomokiIchi · 6 months ago

+1

kamilio · 4 months ago

+1

salekseev · 4 months ago

+1

ChaiEranki · 4 months ago

+1

linlol · 3 months ago

Yes indeed, can we configure a key provider? Like a python/bash function to get api key

cixtor · 3 months ago

@HaithamMaya , please close as "Resolved". We can now use command-backed authentication as described here: https://developers.openai.com/codex/config-advanced#custom-model-providers (search for model_providers.proxy.auth).