Skip to content

GitHub Copilot with Empryo

If you already pay for GitHub Copilot, Empryo can use the models in your plan, such as Claude, GPT and Gemini, with no separate API bill. Sign in with your GitHub account from Empryo. This integration is not official: it uses the same API as the Copilot editor extensions, which GitHub can change at any time.

What you get

Example models

  • Claude Opus 4.8
  • Claude Opus 4.6
  • Claude Sonnet 4.6
  • Claude Sonnet 4.5
  • Claude Haiku 4.5
  • GPT-5.5
  • GPT-5.4
  • GPT-5.3-Codex
  • GPT-5 mini
  • Gemini 3.1 Pro (preview)
  • Gemini 3.5 Flash
  • Gemini 2.5 Pro

When to use it

Pick Copilot when you already pay for a plan and don't want a second, usage-based API bill. The models in your plan work with all of Empryo's features, including the task router and checkpoints, at no extra per-token cost. Keep the caveats in mind. This integration is not endorsed by GitHub and the API can change without notice. Heavy agent use can hit rate limits sooner than chat-style use. Copilot also limits some models by plan, so your model list may be shorter than the one shown here. For CI, large batch runs or anything you need to be supported, use a direct provider key or a gateway instead.

Set it up

Copilot doesn't use an API key. You sign in with your GitHub account instead.

1. Sign inLink to this section

Inside Empryo, run:

/login copilot

Empryo shows a short code and opens GitHub's device sign-in page. Enter the code, approve access, and Empryo saves the sign-in for you. GitHub Enterprise users can run /login copilot-enterprise instead. You can also manage sign-ins with /keys.

2. Pick a model and runLink to this section

Press Ctrl+L in the TUI to choose the copilot provider and a model, or go headless:

bash
empryo --headless --model copilot/claude-sonnet-4 "explain this file"

Optional: set it as the default and route per taskLink to this section

In ~/.empryo/config.json:

json
{
  "defaultModel": "copilot/claude-sonnet-4",
  "taskRouter": {
    "ember": "copilot/claude-opus-4",
    "spark": "copilot/claude-haiku-4-5",
    "compact": "copilot/gemini-2.5-flash"
  }
}

The task router lets you spend a strong model on code edits (ember) while cheaper models handle research (spark) and compaction, all billed against the same Copilot seat. Verify what is live with empryo --list-models copilot.

Keys or subscriptions

GitHub Copilot connects the way marked below. You can mix ways across task-router slots.

  • API keyPaste a key once. Empryo keeps it in your system keychain, and you pay the provider for what you use.
  • Sign inGitHub CopilotApprove Empryo in your browser and use a plan or credits you already have. There is no key to copy.
  • On your machineRun open models on your own computer. No key, no per-token bill, and nothing has to leave your machine.
  • Any compatible APIOne block of JSON config turns any OpenAI-compatible endpoint into a provider, including your own server.