Skip to content

[Feature]: GithubCopilot Support #1055

@Jitha-afk

Description

@Jitha-afk

Problem or Use Case

Expected: Use GithubCopilot License to set your hermes model
Current: hermes model does not give the users option to bring a model via GHC

Proposed Solution

Proposed: Built-in GitHub Copilot provider (github-copilot)
Use the native device-login flow to obtain a GitHub token, then exchange it for Copilot API tokens when Hermes runs. This is the default and simplest path because it does not require VS Code.

Use GitHub Copilot as a model provider (github-copilot). The login command runs the GitHub device flow, saves an auth profile, and updates your config to use that profile.

CLI setup

hermes models auth login-github-copilot
You'll be prompted to visit a URL and enter a one-time code. Keep the terminal open until it completes.

Optional flags

hermes models auth login-github-copilot --profile-id github-copilot:work
hermes models auth login-github-copilot --yes
Set a default model

hermes models set github-copilot/gpt-4o
Config snippet

{
agents: { defaults: { model: { primary: "github-copilot/gpt-4o" } } }
}
Notes
Requires an interactive TTY; run it directly in a terminal.
Copilot model availability depends on users plan; if a model is rejected, try another ID (for example github-copilot/gpt-4.1).
The login stores a GitHub token in the auth profile store and exchanges it for a Copilot API token when Hermes runs.

Alternatives Considered

integration with copilot sdk

Feature Type

Configuration option

Scope

Small (single file, < 50 lines)

Contribution

  • I'd like to implement this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions