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_
7 Comments
+1
+1
+1
+1
+1
Yes indeed, can we configure a key provider? Like a python/bash function to get api key
@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).