Azure OpenAI API-Key support for VSCode Extension

Resolved 💬 2 comments Opened Oct 13, 2025 by heyarny Closed Jan 24, 2026

What version of the VS Code extension are you using?

0.4.19

Which IDE are you using?

VS Code

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

As of now it seems like the only way to make the AZURE_OPENAI_API_KEY environment variable visible for the extension is to start VS Code from within the terminal.

What is the expected behavior?

Use codex in VSCode with azure api key.

What do you see instead?

Can't use the extension with azure api key when starting the default way.

Additional information

Please add a way to add an api key to the extension.
You could also use the available auth.json file setup and put the key there.

{
  "AZURE_OPENAI_API_KEY": "azure-openai-api-key-here...",
  "OPENAI_API_KEY": "openai-api-key-here.."
}

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗