Skip to main content

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 Integration (Deprecated)

CCS keeps copilot-api integration available for existing local GitHub Copilot setups. This is now deprecated compatibility, not a recommended path for new provider setup.
GitHub usage-based Copilot billing begins June 1, 2026. Prefer Codex or another active provider for new work.

Overview

Copilot API - Dark
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

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:
ModelDescription
GPT-4.1 (Free)General purpose
GPT-5 Mini (Free)Faster responses

Pro+ Required

Uses premium request quota from your subscription:
ModelDescription
Claude Opus 4.5Complex reasoning
Claude Sonnet 4.5Balanced performance
GPT-5.2Latest GPT model
GPT-5.1 Codex MaxCode-optimized
Gemini 2.5 ProGoogle’s flagship

Model Mapping

Configure which models handle each tier:
TierDescriptionDefault
Default ModelNo tier specifiedgpt-4.1
OpusComplex reasoninggpt-4.1
SonnetBalancedgpt-4.1
HaikuFast responsesgpt-4.1

Raw Configuration

{
  "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

GitHub Copilot

Active subscription (Individual, Business, or Enterprise)

GitHub CLI

gh CLI authenticated with your GitHub account
copilot-api is an open-source project. See GitHub for implementation details.