Skip to content

Add support for Azure DefaultAzureCredential authentication when using codex CLI with Azure Hosted Models #8732

@niketansrane

Description

@niketansrane

What feature would you like to see?

Many organizations disable key-based authentication on Azure OpenAI resources for security compliance reasons. Currently, the Codex CLI only supports:

 - OpenAI API key authentication (OPENAI_API_KEY/CODEX_API_KEY)
 - ChatGPT OAuth authentication

This prevents users from using Codex CLI with Azure OpenAI deployments that require Azure AD authentication.

Additional information

Use Case

  • This would enable enterprise users to use Codex CLI with their organization's Azure OpenAI resources while maintaining security best practices and compliance requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIauthIssues related to authentication and accountsazureIssues related to the Azure-hosted OpenAI modelsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions