GitHub Copilot + OpenCompress
Use Copilot BYOK to route requests through OpenCompress. Same models, same experience, 40-60% cheaper.
Works with OpenAI, Anthropic, Google, and OpenRouter keys.
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P), run "Chat: Manage Language Models", then click "Add Models" and select "OpenAI Compatible".
Note: BYOK is available on Copilot Pro, Business, and Enterprise plans. Works in Agent, Ask, Edit, and Plan modes.
Enter the endpoint URL and your API key. OpenAI (sk-proj-...), Anthropic (sk-ant-...), Google (AIza...), or OpenRouter (sk-or-...) keys all work — we auto-detect the provider.
https://www.opencompress.ai/api/v1Note: Anthropic / Google keys work too — we translate the API format automatically.
Select a model in the Copilot chat panel and start coding. All requests are compressed automatically. Same models, same experience, 40-60% lower token cost. Free tier: 5 req/min.
Note: Check response headers for X-OpenCompress-Tokens-Saved to see compression in action.
Test from the terminal to confirm compression is working:
curl https://www.opencompress.ai/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'Free tier has no stats and 5 req/min. Sign up for a usage dashboard, 120 req/min, and $10 free credit.
Go to Dashboard →FAQ
Common questions about GitHub Copilot + OpenCompress.
Does this work with Copilot Free?
BYOK requires Copilot Pro, Business, or Enterprise. Copilot Free uses GitHub's built-in models which cannot be redirected.
Which modes support BYOK?
Agent, Ask, Edit, and Plan modes all support BYOK models. You can switch between built-in and BYOK models in the chat panel.
Do you store my API key?
No. Your key is forwarded directly to the upstream provider in memory and never persisted.
Can I use multiple providers?
Yes — add multiple OpenAI Compatible providers in the Language Models settings, each pointing to OpenCompress with different keys. Or use an OpenRouter key for all models through one key.
Start Saving
Every Copilot request gets cheaper. One configuration change, zero code modifications.