Skip to content

Feature(LMM/Auth) : Support for GHE - Copilot for Github Enterprise #1456

Description

@Proxicon

Problem:

LLM providers during netclaw init for Github/copilot currently only supports Github device login flow and not GHE / Enterprise endpoints:

Motivation: Some enterprise users are restricted to GHE for AI access.

Proposed Solution:
Add an env option to use GHE (default: github.com).
Environment support for copilot cli - the defaults for GHE could be mirrored:

GHE_HOST=my-company-tenant.ghe.com
GH_HOST=my-company-tenant.ghe.com
COPILOT_GH_HOST=my-company-tenant.ghe.com
GITHUB_SERVER_URL=https://my-company-tenant.ghe.com
GITHUB_API_URL=https://api.my-company-tenant.ghe.com

Example gh login for GHE:

gh auth login --hostname **my-company-tenant**.ghe.com

which will use the device browser login:

https://**my-company-tenant**.ghe.com/login/device

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprovidersProvider integrations and capability detection across OpenAI-compatible backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions