Feature hasn't been suggested before.
Describe the enhancement you want to request
At this time, Azure OpenAI has a different endpoint format for certain models.
Typically, it looks like these for models like gpt-4.1-mini: https://RESOURCENAME.openai.azure.com/openai/v1
For models that are in an experimental phase, like GPT-5 and GPT-5-Codex, which actually requires you to sign up for access, the endpoint looks like this: https://RESOURCENAME.cognitiveservices.azure.com/openai/v1
Important note: the openai.azure.com based models have a different API key than the cognitiveservices.azure.com based models, which means that this would need to be integrated into the opencode auth login process to manage the two keys, either by asking for an additional optional key for the Azure option, or adding an Azure Cognitive Services option, or whatever else you thing makes sense.
Can we add support for this?
Feature hasn't been suggested before.
Describe the enhancement you want to request
At this time, Azure OpenAI has a different endpoint format for certain models.
Typically, it looks like these for models like gpt-4.1-mini: https://RESOURCENAME.openai.azure.com/openai/v1
For models that are in an experimental phase, like GPT-5 and GPT-5-Codex, which actually requires you to sign up for access, the endpoint looks like this: https://RESOURCENAME.cognitiveservices.azure.com/openai/v1
Important note: the openai.azure.com based models have a different API key than the cognitiveservices.azure.com based models, which means that this would need to be integrated into the opencode auth login process to manage the two keys, either by asking for an additional optional key for the Azure option, or adding an Azure Cognitive Services option, or whatever else you thing makes sense.
Can we add support for this?