Status: [UNTESTED] Endpoints found: http://127.0.0.1:44716/v1/chat/completions Source: https://github.com/Yen-US/copilot-gateway # copilot-gateway A tiny local HTTP proxy that exposes your **GitHub Copilot** subscription as both the **OpenAI** and **Anthropic** API surfaces — so you can point [Claude Code](https://docs.anthropic.com/claude/docs/claude-code), [codex](https://github.com/openai/codex), and any other OpenAI/Anthropic- compatible CLI at Copilot and pay $0 per token. Runs on `127.0.0.1`. Zero dependencies at runtime (just Node ≥ 20). ## Endpoints | Path | Surface | Consumers | |---|---|---| | `POST /v1/chat/completions` | OpenAI Chat | Most OpenAI SDKs | | `POST /v1/responses` | OpenAI Responses | `codex` CLI | | `POST /v1/messages` | Anthropic Messages | **Claude Code**, Anthropic SDK | | `GET /v1/models` | Catalog | — | | `GET /healthz` | Health check | — | ## Supported models ``` claude-opus-5.5, claude-opus-5, claude-opus-4.8, claude-opus-4.7, claude-opus-4.6, claude-sonnet-5, claude-sonnet-4.6, claude-haiku-4.5, gpt-5-mini, gpt-4.1, gemini-3.1-pro-preview, gemini-3.5-flash, gemini-3.6-flash, gemini-3.7-flash served only on /responses, via the bridge: gpt-6-astra, gpt-5.6-sol, gpt-5.6-sol-fast, gpt-5.6-luna, gpt-5.6-terra, gpt-5.5, gpt-5.4, gpt-5.4-mini, grok-4.6 ``` Every id above was confirmed with a live request (2026-08-10). Copilot rotates its catalog without warning, so if requests start failing, re-verify and edit `MODELS` in `src/index.ts`. **Anything not on that list is rejected with `400 model_not_found`**, listing what is available. The gateway normalises *spellings* of a supported model — date stamps (`claude-opus-4-6-20260115`), Bedrock/Vertex prefixes (`us.anthropic.…-v1:0`), context tags (`claude-opus-5[1m]`), and the bare `opus` / `sonnet` / `haiku` shorthands all resolve — but it will not substitute a *different* model for one you asked for. A request for a retired `claude-sonnet-4.5` fails loudly instead of coming back quietly answered by 4.6. Note that Copilot's `/models` listing and its per-integrator allow-list are both broader tha