Find answers to common questions about GitHub Copilot API Gateway.
GitHub Copilot API Gateway is a VS Code extension that exposes your authenticated GitHub Copilot session as a local HTTP API server. This allows you to use your Copilot subscription with any tool that supports OpenAI-compatible APIs—like LangChain, Cursor, Aider, and more—without paying for separate API keys.
Yes! The extension itself is completely free and open source. You just need an active GitHub Copilot subscription (Individual at $10/mo, Business, or Enterprise). If you're a student with the GitHub Student Developer Pack, you likely have free access to Copilot.
This extension uses your existing GitHub Copilot subscription. If your plan includes GPT-4 (which most do), then yes—you can access GPT-4 programmatically without paying extra for OpenAI API credits. However, you still need a valid Copilot subscription.
The available models depend on your Copilot subscription, but typically include:
Use the /v1/models endpoint to see all available
models for your subscription.
Yes. The extension runs entirely locally on your machine. No data is sent to any third-party server other than GitHub itself (which is where Copilot is hosted). You can enforce:
This extension uses GitHub Copilot's official VS Code extension API to authenticate and make requests. It doesn't extract or store tokens, doesn't make unauthorized requests, and operates within the normal usage patterns. However, you should review GitHub's current terms for your subscription type and use responsibly.
By default, no. The server binds to 127.0.0.1 (localhost only). To enable LAN
access:
server.host to 0.0.0.0You don't need to extract or hunt for a static API key! This extension handles the secure
authentication handshake with GitHub automatically through your VS Code session. Your local
tools just need to point to http://127.0.0.1:3030 and use any placeholder API
key.
This extension is a local LLM server, but powered by GitHub's cloud. It's a perfect alternative to running heavy local models if your hardware is limited, offering cloud-quality performance (GPT-4o, Claude 3.5) with local-like control and privacy.
Make sure you have:
Try restarting VS Code after installing the prerequisites.
Common issues:
server.apiKey, your client
must send the correct Bearer tokenCheck the VS Code Output panel (select "GitHub Copilot API Gateway") for detailed logs.
The extension itself doesn't impose hard rate limits beyond what you configure. However, GitHub Copilot has fair-use policies. If you're making extremely high-volume requests, you may experience throttling from GitHub's side. For typical development use cases, you shouldn't hit any limits.
| Aspect | Copilot API Gateway | OpenAI API |
|---|---|---|
| Cost | $0 extra (included in Copilot) | Pay per token ($$$) |
| Models | GPT-4o, Claude, Gemini, Llama | GPT models only |
| Setup | 1-click VS Code extension | API key management |
| Privacy | Local proxy (you control) | Cloud API |
This extension is designed for development, prototyping, and personal projects. For production deployments, consider:
That said, many developers use it for internal tools, dev/staging environments, and private projects without issues.