Skip to content

Use OpenAI Azure without APIKEY #31342

Closed
Closed

Description

@Uranium2

Question

With the recent changes with github copilot billing, I've reach my quota in few days instead of a full month.

I've seen that it is possible to connect opencode with Azure OpenAI, but it seems that it is only with an APIKEY. In my company there's a security policy that block the usage of APIKEY.

Does anyone have an example to how to connect to an Azure OpenAI with Oauth2 ? I can connect to the ressource with the python SDK and making an az login in my terminal. Maybe there's a script that could generate the Token to put inside the opencode configuration file at each time we start opencode?

Activity

  1. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    You may want to add your use case as a comment on one of those issues, or link them here if your situation differs.

  2. OpeOginni commented on Jun 8, 2026

    @OpeOginni
    Contributor

    @Uranium2 Im taking a look at this, should be possible

  3. rekram1-node commented on Jun 8, 2026

    @rekram1-node
    Collaborator

    AUTOMATED: closing as duplicate of: #21658

  4. rekram1-node commented on Sep 1, 2026

    @rekram1-node
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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