Skip to content

caozhiyuancopilot-api

GitHub Copilot, OpenAI Codex, OpenCode Go, and third-party AI provider gateway with OpenAI and Anthropic API compatibility.

Repository stars
1,141 Star
All-time
#38,269 all time
Fork
265 Fork
Repository created
since 2025
Language
TypeScript
License
MIT
Commercial use OKMIT; keep the license notice
Actively maintainedLast push today

About

README

Copilot API is a local AI gateway that connects Claude Code, OpenCode, Codex, Antigravity CLI (agy), and other clients to GitHub Copilot, the built-in Codex and xAI providers, and third-party model providers through a unified API.

Getting started

Only the GitHub Copilot provider requires a Copilot subscription, and other configured providers can run independently.

Start it with npx @jeffreycao/copilot-api@latest start.

Limitations

  • CVE-2026-111497: the Brotli decoder in affected Node.js and Bun runtimes can corrupt memory and allow remote code execution. Upgrade Node.js 22.x to 22.23.4 or later, 24.x to 24.22.1 or later, or 26.x to 26.12.1 or later; upgrade Bun to 1.4.4 or later. Restart the gateway after upgrading. For Docker deployments, rebuild and redeploy the image with a patched runtime.
  • Before using GitHub Copilot, read the GitHub Copilot Security Notice.

Summarized by AI from the README · As of 2026-12-02, caozhiyuan/copilot-api had 1,141 stars. According to the 2026-12-02 record, caozhiyuan/copilot-api is catalogued under AI Development Platforms. A permissive license allows commercial use under its terms. The last push was on 2026-12-01. The figures come from a GitHub API snapshot. Stars count expressions of interest. Record updated: . About the data

Raw observations · 27
Historical observations
Measured atRepository starsSource
2026-12-02 00:48 UTC1,141Source
2026-12-01 00:50 UTC1,140Source
2026-11-30 00:45 UTC1,136Source
2026-11-29 00:44 UTC1,136Source
2026-11-28 00:44 UTC1,138Source
2026-11-27 00:45 UTC1,138Source
2026-11-26 00:46 UTC1,136Source
2026-11-25 01:15 UTC1,135Source
2026-11-24 01:13 UTC1,131Source
2026-11-23 01:11 UTC1,129Source
2026-11-22 01:12 UTC1,128Source
2026-11-21 01:23 UTC1,128Source
2026-11-20 01:10 UTC1,129Source
2026-11-19 01:16 UTC1,129Source
2026-11-18 01:15 UTC1,128Source
2026-11-17 01:16 UTC1,126Source
2026-11-16 01:06 UTC1,125Source
2026-11-15 01:26 UTC1,125Source
2026-11-14 01:26 UTC1,124Source
2026-11-13 01:11 UTC1,124Source
2026-11-12 00:49 UTC1,121Source
2026-11-11 01:39 UTC1,118Source
2026-11-10 00:50 UTC1,117Source
2026-11-09 00:46 UTC1,116Source
2026-11-08 00:45 UTC1,113Source
2026-11-07 14:17 UTC1,113Source
2026-11-06 10:19 UTC1,113Source

Add a badge to your README

For project authors: paste it into the README. It updates daily and links back here.

Badge preview
[![github.day](https://github.day/badge/copilot-api-caozhiyuan.svg)](https://github.day/resources/copilot-api-caozhiyuan?ref=badge)

Share this project

Share on X

First collected 2026-11-06Measured at 2026-12-02 00:48 UTCSourceLicense source

Compiled from public project information; not independently tested. · Repository Stars, not unique users · License tiers are derived from metadata. Check obligations for your use; unknown does not mean prohibited.