---
title: GitHub Copilot
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# GitHub Copilot

Use `github-copilot/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

const agent = new Agent({
  name: "github-copilot-agent",
  instructions: "You are a helpful assistant",
  model: "github-copilot/claude-haiku-4.5",
});
```

## Environment variables

- `GITHUB_TOKEN`

## Provider package

`@ai-sdk/openai-compatible`

This provider uses the OpenAI-compatible adapter.

## Default base URL

`https://api.githubcopilot.com`

You can override the base URL by setting `GITHUB_COPILOT_BASE_URL`.

## Provider docs

- https://docs.github.com/en/copilot

## Models

<details>
  <summary>Show models (20)</summary>

- claude-haiku-4.5
- claude-opus-4.5
- claude-opus-41
- claude-sonnet-4
- claude-sonnet-4.5
- gemini-2.5-pro
- gemini-3-flash-preview
- gemini-3-pro-preview
- gpt-4.1
- gpt-4o
- gpt-5
- gpt-5-codex
- gpt-5-mini
- gpt-5.1
- gpt-5.1-codex
- gpt-5.1-codex-max
- gpt-5.1-codex-mini
- gpt-5.2
- gpt-5.2-codex
- grok-code-fast-1

</details>
