Skip to content

enhancement: support ghe.com copilot auth #355

Closed

Description

@dotned

I saw the X post and the PR in respect to bringing GitHub Copilot to the providers list, great stuff. I note it doesn't cover ghe.com and wondered if that was something being considered?

Activity

  1. self-assigned this
    on Jun 24, 2025
  2. thdxr commented on Jun 24, 2025

    @thdxr
    Member

    open to supporting it - just not sure what's involved. does copilot even work with GHE?

  3. dotned commented on Jun 25, 2025

    @dotned
    Author

    Yes, we use ghe.com, GitHub Enterprise with Data Residency, and have CoPilot enabled. It's the same as the normal github.com setup with one small but significant difference. The url is customer specific. e.g. https://company.ghe.com

    This means the URLs look like...

    https://company.ghe.com/login/device/code
    https://company.ghe.com/login/oauth/access_token
    https://company.ways.ghe.com/copilot_internal/v2/token

    I tried to see if I could authenticate without changing anything but these URLs in code and it worked. The issue will be in asking the user for thier "company" name as that is the dynamic element.

    IDEs allow this connection a few ways but essentially asking for the Enterprise URL, https://docs.github.com/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom

  4. vegardx commented on Jul 7, 2025

    @vegardx

    It would be amazing if this functionality was added. As already mentioned, just giving the user ability to set the URL to GitHub, eg. GITHUB_HOST to whatever they have. You can also get this context out

    It's worth mentioning that what @dotned is talking about is GitHub Enterprise Cloud, not GitHub Enterprise Server. There's a lot of confusion around naming for the different products in GitHub. To the best of my knowledge these are sort of the products that exists:

    • GitHub Enterprise Cloud: GitHub Enterprise on GitHub.com, often using the abbreviation GHEC
    • GitHub Enterprise Cloud with Data Residency: GitHub Enterprise on GHE.com, often using the abbreviation GHECDR
    • GitHub Enterprise Server: Self-hosted GitHub Enterprise, often abbreviated as GHES
  5. FortinFred commented on Jul 20, 2025

    @FortinFred

    Yes, we use ghe.com, GitHub Enterprise with Data Residency, and have CoPilot enabled. It's the same as the normal github.com setup with one small but significant difference. The url is customer specific. e.g. https://company.ghe.com

    This means the URLs look like...

    https://company.ghe.com/login/device/code https://company.ghe.com/login/oauth/access_token https://company.ways.ghe.com/copilot_internal/v2/token

    I tried to see if I could authenticate without changing anything but these URLs in code and it worked. The issue will be in asking the user for thier "company" name as that is the dynamic element.

    IDEs allow this connection a few ways but essentially asking for the Enterprise URL, https://docs.github.com/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom

    @dotned I would be interested in the code workaround, where specifically did you changed it in the code? Are you using a clone install or npm?
    Thanks

  6. dotned commented on Jul 22, 2025

    @dotned
    Author

    @FortinFred I pulled the code and updated the values directly in the github-copilot.ts file, and ran locally

    Image Image
  7. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  8. lzandman commented on Feb 4, 2026

    @lzandman

    Why is this closed? Was there an official solution instead of that TypeScript hack? We need this exact thing too.

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