caozhiyuan/copilot-api

Universal local AI gateway & desktop app for Claude Code, Codex, OpenCode, and Antigravity (AGY) — unify GitHub Copilot, Codex, xAI, Gemini & third-party providers via OpenAI, Anthropic, and Gemini APIs.

About the project

caozhiyuan/copilot-api is a local AI gateway that exposes OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages interfaces for multiple providers. It lets clients such as Claude Code, OpenCode, and Codex connect through one endpoint to GitHub Copilot, the built-in Codex provider, and other configured services.

Latest release v2.10.1 · 29 Nov 2026

7 files for Codex, OpenCode and Claude Code: copilot-api AGENTS.md, copilot-api-code-review, copilot-api-imagegen, copilot-api-videogen and 3 more — 710 tokens loaded in every session.

1,136Stars on the repository
7Files it configures its agents with
710Tokens loaded in every session
3Agents configured

Instructions

Skills

These files are caozhiyuan/copilot-api's own configuration — they tell Codex, OpenCode and Claude Code how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.