> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ccs.kaitran.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Copilot API (Deprecated)

> Deprecated GitHub Copilot compatibility integration for Claude Code

# Copilot API Integration (Deprecated)

CCS keeps [copilot-api](https://github.com/ericc-ch/copilot-api) integration
available for existing local GitHub Copilot setups. This is now deprecated
compatibility, not a recommended path for new provider setup.

> [!WARNING]
>
> GitHub usage-based Copilot billing begins June 1, 2026. Prefer Codex or another
> active provider for new work.

## Overview

> [tab] Dark Theme
>
> ![Copilot API - Dark](https://mintcdn.com/ccs-7e541244/ZIh-b3XKOoSIE-qm/assets/screenshots/copilot-api.webp?fit=max\&auto=format\&n=ZIh-b3XKOoSIE-qm\&q=85\&s=c79c8c03db6b484e7b8c20727a137725)

> [tab] Light Theme
>
> ![Copilot API - Light](https://mintcdn.com/ccs-7e541244/ZIh-b3XKOoSIE-qm/assets/screenshots/copilot-api-light.webp?fit=max\&auto=format\&n=ZIh-b3XKOoSIE-qm\&q=85\&s=10750febf398017fa8baa8d76f6ec533)

> [!WARNING]
>
> **Unofficial API - Use at Your Own Risk**
>
> * Reverse-engineered API - may break anytime
> * Excessive use may trigger account restrictions
> * No warranty, no responsibility from CCS

## Setup

### 1. Install copilot-api

```bash theme={null}
ccs config
# Navigate to GitHub Copilot → Install copilot-api
```

### 2. Start Daemon

The Copilot proxy runs as a local daemon on port 4141:

* **Status**: Stopped/Running indicator
* **Port**: 4141 (configurable)
* **Start/Stop**: Control buttons in dashboard

## Model Tiers

### Free Tier

No premium usage count - unlimited access:

| Model | Description |
| - | - |
| **GPT-4.1 (Free)** | General purpose |
| **GPT-5 Mini (Free)** | Faster responses |

### Pro+ Required

Uses premium request quota from your subscription:

| Model | Description |
| - | - |
| **Claude Opus 4.5** | Complex reasoning |
| **Claude Sonnet 4.5** | Balanced performance |
| **GPT-5.2** | Latest GPT model |
| **GPT-5.1 Codex Max** | Code-optimized |
| **Gemini 2.5 Pro** | Google's flagship |

## Model Mapping

Configure which models handle each tier:

| Tier | Description | Default |
| - | - | - |
| **Default Model** | No tier specified | gpt-4.1 |
| **Opus** | Complex reasoning | gpt-4.1 |
| **Sonnet** | Balanced | gpt-4.1 |
| **Haiku** | Fast responses | gpt-4.1 |

## Raw Configuration

```json theme={null}
{
  "env": {
    "ANTHROPIC_BASE_URL": "http://127.0.0.1:4141",
    "ANTHROPIC_AUTH_TOKEN": "",
    "ANTHROPIC_MODEL": "gpt-4.1",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "gpt-4.1",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "gpt-4.1",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "gpt-4.1"
  }
}
```

## Requirements

> [card] GitHub Copilot
>
> Active subscription (Individual, Business, or Enterprise)

> [card] GitHub CLI
>
> `gh` CLI authenticated with your GitHub account

> [!NOTE]
>
> copilot-api is an open-source project. See
> [GitHub](https://github.com/ericc-ch/copilot-api) for implementation details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.