# ericc-ch/copilot-api

Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!

Repository: https://github.com/ericc-ch/copilot-api
Canonical: https://ross.abutalabs.com/products/copilot-api
Homepage: https://ericc-ch.github.io/copilot-api/?endpoint=http://localhost:4141/usage
Language: TypeScript
License: MIT
License Family: permissive
Topics: openai-api, reverse-engineering, github-copilot, openai-compatible-api
Last push: 2025-11-10T08:56:46+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 51, release rhythm 50, longevity 42
- inputs: {"age_days": 600, "days_push": 296, "days_rel": 332, "gap_med": 2.0, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4106, forks 656 (observed 2026-08-28T04:08:35.663517+00:00)

## What it is
A reverse-engineered proxy that exposes the GitHub Copilot API as OpenAI and Anthropic compatible endpoints, letting any OpenAI/Anthropic-compatible tool use Copilot as its LLM backend. It includes a usage dashboard, rate limiting, and one-flag Claude Code integration.

## Use cases
- use github copilot subscription with claude code
- expose copilot as an openai-compatible api server
- point any openai sdk tool at github copilot
- monitor copilot api usage and quotas
- add rate limiting to copilot requests
- use copilot with anthropic messages api clients

## When to choose
- you have a GitHub Copilot subscription and want to reuse it in OpenAI/Anthropic-compatible tools like Claude Code
- you need a usage dashboard and rate-limit controls for Copilot requests

## When to avoid
- you use opencode, which supports Copilot natively without a proxy
- you need a stable, officially supported API - this is reverse-engineered and may break or trigger GitHub abuse detection
- you don't have an active GitHub Copilot subscription

## Facets
- artifact type: service
- maturity: active
- function: proxy, http-server, api-framework, llm-inference, rate-limiting
- domain: large-language-models, developer-tools, apis, self-hosted
- platform: bun, cli, cross-platform, self-hosted
- tags: github-copilot, openai-compatible-api, anthropic-api, reverse-engineered, claude-code, api-proxy, nodejs

## Member repositories
- ericc-ch/copilot-api (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:35.663517+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:13.536527+00:00, confidence not recorded.
  - readme: https://github.com/ericc-ch/copilot-api (fetched 2026-08-28T04:08:35.663517+00:00, sha 67f26b21226f)
  - homepage: https://ericc-ch.github.io/copilot-api/?endpoint=http://localhost:4141/usage (fetched 2026-08-29T09:15:00.400980+00:00, sha 97fc42a1e640)
  - registry_npm: https://registry.npmjs.org/copilot-api (fetched 2026-08-29T09:15:00.410055+00:00, sha c951d37ef880)
- Data as of 2026-08-30T08:39:29.467469+00:00.
