← Back to all toys

copilot2api

A lightweight Go proxy that exposes GitHub Copilot as OpenAI-compatible and Anthropic-compatible API endpoints.

The Problem

Using GitHub Copilot's LLM capabilities outside of its native IDE integrations requires a compatible API layer that doesn't exist natively.

Highlights

  • OpenAI and Anthropic API compatible endpoints
  • Full SSE streaming support
  • Auto GitHub Device Flow OAuth authentication
  • Built-in usage monitoring and models cache