Junie Help

GitHub Copilot

GitHub Copilot lets you use your existing GitHub Copilot subscription to power Junie CLI. Unlike other BYOK providers that require an API key, GitHub Copilot authenticates through the GitHub Copilot CLI installed on your machine — Junie CLI reuses its sign-in and resolves the available models and endpoint from it.

Prerequisites

  • GitHub Copilot CLI: the GitHub Copilot CLI must already be installed on your local machine, version 1.0.65 or newer. Older versions lack the methods Junie CLI relies on and will be reported as outdated.

  • GitHub account with an active subscription: use an account with an active GitHub Copilot subscription (Individual, Business, or Enterprise). For terminal setup, sign in to the Copilot CLI first. The dedicated ACP authentication method can initiate GitHub sign-in when needed.

  • Enabled models: the models you want to use must be explicitly enabled in your GitHub Copilot settings. Go to github.com/settings/copilot and enable the desired models under the Models section. Models that are not enabled on the website will not be available in Junie CLI.

Set up GitHub Copilot in Junie CLI

  1. Start Junie CLI in your project directory:

    junie
  2. Run the /account command and select the BYOK option. If you have not added any API keys yet, it is labeled Use your own API key (OpenAI, Anthropic, Google, xAI, OpenRouter, GitHub Copilot); if you already have keys configured, it is labeled Manage your API keys.

Select Manage your API keys
  1. Select GitHub Copilot from the provider list.

Select Manage your API keys
  1. Make sure GitHub Copilot is Enabled on the provider page. Junie CLI reuses the sign-in from your local Copilot CLI, so no separate sign-in step is required here.

Select Manage your API keys
  1. Return to Junie CLI in the terminal — the connection is now active.

Select a model

Once connected, run /model to see and switch between the available models:

Select Manage your API keys

Models marked with GitHub Copilot GitHub Account are available through your Copilot subscription.

Use Copilot from an ACP client

When Junie asks for login and the ACP client supports terminal authentication, the authentication UI offers GitHub Copilot next to the JetBrains login options.

Prerequisites:

  • The copilot CLI is on the agent's PATH, version 1.0.65 or newer.

  • A local browser is available if the CLI is not signed in yet.

  1. Choose GitHub Copilot in the client's authentication UI.

  2. If the Copilot CLI is not signed in, Junie runs copilot login --web-flow and GitHub authorization opens in your browser. Complete it while the ACP connection stays open.

  3. Junie enables GitHub Copilot and selects one of your Copilot models.

  4. Send a prompt. New sessions on this connection use the Copilot model; you can switch models with the client's model controls.

Authentication fails with an error when the CLI is missing or outdated, sign-in fails, no models are enabled, or the attempt exceeds five minutes. Fix the cause and choose GitHub Copilot again. Junie does not fall back to JetBrains quota.

08 October 2026