Skip to content

Supporting Azure OpenAI #11

Closed
Closed

Description

@monuminu

Supporting Azure OpenAI

Activity

  1. ralzinov commented on Apr 16, 2025

    @ralzinov
  2. nikhil-pandey commented on Apr 16, 2025

    @nikhil-pandey

    We should be able to bake in Azure OpenAI support directly from the openai package — likely just a few lines of changes.

    import { AzureOpenAI, OpenAI } from "openai";

    I might take a stab at it later today, or wire it up through GitHub agent mode if I get the chance.

  3. rgregg commented on Apr 16, 2025

    @rgregg

    I asked codex this question on it's own repo - and it says you should be able to set two ENV vars to redirect it:

     • Set OPENAI_BASE_URL to your Azure OpenAI endpoint (e.g. https://<your‑resource>.openai.azure.com)
     • Set OPENAI_API_KEY (or codex config set apiKey …) to your Azure API key
    

    I haven't given it a try yet though.

  4. guygregory commented on Apr 16, 2025

    @guygregory

    I asked codex this question on it's own repo - and it says you should be able to set two ENV vars to redirect it:

     • Set OPENAI_BASE_URL to your Azure OpenAI endpoint (e.g. https://<your‑resource>.openai.azure.com)
     • Set OPENAI_API_KEY (or codex config set apiKey …) to your Azure API key
    

    I haven't given it a try yet though.

    Deployment name for the model will also be required for AOAI

  5. SeaDude commented on Apr 16, 2025

    @SeaDude

    Please also consider implementing azure_ad_token (or the like) so that enterprises don’t have to communicate and manage AOAI API keys.

    Reference

  6. thegovind commented on Apr 16, 2025

    @thegovind
    Contributor

    Working on it - #92

  7. surim0n commented on Apr 17, 2025

    @surim0n

    Following, if someone successfully gets it running please update this thread. thank you x 1000000.

  8. cavanaug commented on Apr 23, 2025

    @cavanaug

    It would be a godsend if you supported the GH copilot api similar to how vscode utilizes models. GH copilot also has a generous free tier and is well utilized in Enterprises.

    The GH OpenAi api is a slight variant on the generic OpenAI api. More information and how litellm supported it available at BerriAI/litellm#6564

  9. jslitzkerttcu commented on May 7, 2025

    @jslitzkerttcu

    PR is being worked on in #769

  10. robotdad commented on May 21, 2025

    @robotdad

    Looks like the PR for this was merged, but this does not have Entra support right? #1056 covers Entra and has a PR #1062 ready to go for that.

  11. doggy8088 commented on May 26, 2025

    @doggy8088

    Azure OpenAI already supports the Azure OpenAI Responses API. This should be supported in Codex CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions