Skip to content
YottaCode v0.2.0 is out! πŸŽ‰ See the release notes β†—

GitHub Copilot

Bill model calls against your GitHub Copilot subscription. copilot uses GitHub’s device-code flow to authenticate; available models depend on the subscription tier (Free, Pro, Pro+).

Configure

In the TUI β€” add it straight from the provider picker:

/provider      # open the picker β†’ Add `copilot-auth`; starts the GitHub device-code flow inline
/model <id>    # pick a model your plan allows (plan-gated ones are marked "upgrade plan")

From the command line β€” sign in, then select the provider:

yottacode copilot-auth login
export YOTTACODE_PROVIDER=copilot
export YOTTACODE_MODEL=claude-haiku-4.5
export YOTTACODE_BASE_URL=https://api.githubcopilot.com

…or pass flags at launch (no --api-key β€” auth uses the stored token):

yottacode --provider copilot \
  --model claude-haiku-4.5 \
  --base-url https://api.githubcopilot.com

Lifecycle commands:

yottacode copilot-auth login          # device code flow, saves token + caches models
yottacode copilot-auth models         # list available models (updates cache)
yottacode copilot-auth models --raw   # full API response for debugging
yottacode copilot-auth status
yottacode copilot-auth status --json
yottacode copilot-auth logout

Tokens and cached model lists live in ~/.yottacode/auth/ with restrictive file permissions. That directory is denied to model read and write tools.