Similar to the feature request that has been prioritized for VS Code’s AI Toolkit: [custom endpoint] Add support for getting auth token from command line · Issue #107 · microsoft/vscode-ai-toolkit · GitHub
At our company we have an OpenAI API compatible model router deployed which can only be accessed via short lived tokens.
This means we can’t put a long-lived API key in the configuration since long-lived tokens cannot be generated.
We would be able to use this if we provide a custom bash command to get an auth token like get-auth-token --name vs-code-ai