GitHub Copilot
Use your GitHub Copilot subscription as a model provider via device-flow OAuth. Access GPT-4o, GPT-4.1, Claude, and Gemini models through your existing plan. Free tier includes 50 premium requests/month; Pro ($10/mo) offers 300; Pro+ ($39/mo) offers 1,500.
Tags: github, copilot, subscription, oauth, coding, microsoft, premium-requests, multi-model
Use Cases
- Leveraging existing Copilot subscription for OpenClaw agent workflows without additional API costs
- Budget-friendly access to GPT-4o and GPT-4.1 through a flat monthly subscription
- Development and testing where predictable monthly costs are preferred over per-token billing
- Teams on GitHub Copilot Business/Enterprise who want unified AI billing
- Light OpenClaw usage alongside IDE Copilot features within the same subscription
- Students and educators with free GitHub Copilot access
Tips
- If you already pay for Copilot Pro ($10/mo), using it as an OpenClaw provider is a great way to get additional value from your subscription.
- Reserve premium requests for complex tasks. Use free providers (Synthetic, Z.AI Flash) for heartbeats and simple cron jobs.
- Pro+ at $39/mo with 1,500 requests is often cheaper than direct API for moderate agent use (1,500 × $0.04 = $60 equivalent).
- Track your premium request usage in GitHub settings to avoid running out mid-month.
- GPT-4o through Copilot is 'free' (included in subscription) compared to $2.50/$10 per MTok on direct OpenAI API.
- Consider the Copilot Proxy VS Code extension for easier integration without manual OAuth setup.
Known Issues & Gotchas
- Premium requests are shared across ALL Copilot features — IDE completions, chat, agent mode, code review, and CLI. Using OpenClaw competes with your IDE usage.
- Different models consume premium requests at different rates. Frontier models may use 2-10x more premium requests per interaction.
- Free tier (50 premium requests/month) is very limited for agent workflows. A single complex OpenClaw session can consume 20-50 requests.
- OAuth device-flow requires browser access for initial authentication. Can't be done fully headless.
- Premium request allocation resets monthly. Unused requests don't roll over.
- Additional premium requests cost $0.04 each — which can add up fast for heavy agent use. Compare with direct API pricing.
- Model availability varies by plan tier. Free and Pro may not have access to all models that Pro+ offers.
- The Copilot proxy approach may not support all API features (embeddings, image generation, etc.) — it's primarily for chat completions.
Alternatives
- OpenAI API (direct)
- OpenCode Zen
- Claude Max API Proxy
- Qwen Portal (free tier)
Community Feedback
Copilot Free with 50 premium requests is great for trying it out, but for serious coding agent work you'll blow through that in a day. Pro at $10/mo with 300 requests is the sweet spot.
— Reddit r/github
Using Copilot as an API provider is clever but you're sharing premium requests with IDE completions, chat, and agent mode. It's not an unlimited API replacement.
— Hacker News
Copilot Pro+ at $39/mo with 1,500 premium requests sounds generous until you realize Claude Code can burn through 50+ requests in a single complex session. Direct API is better for heavy agent use.
— Reddit r/ClaudeCode
Frequently Asked Questions
How many premium requests do I get with GitHub Copilot?
Free: 50/month. Pro ($10/mo): 300/month. Pro+ ($39/mo): 1,500/month. Premium requests are used by chat, agent mode, code review, and CLI. Additional requests can be purchased at $0.04 each.
Can I use GitHub Copilot as an API with OpenClaw?
Yes. OpenClaw supports GitHub Copilot as a provider through device-flow OAuth. You authenticate through your browser and then use Copilot-hosted models like GPT-4o and GPT-4.1 in your agent workflows.
Is GitHub Copilot cheaper than using the OpenAI API directly?
For light-to-moderate use, yes. Pro at $10/mo with 300 requests covers basic agent workflows cheaper than per-token API pricing. For heavy agent use (50+ requests/day), direct API pricing is usually more cost-effective.
Do premium requests roll over if unused?
No. Unused premium requests expire at the end of each monthly billing cycle. There's no rollover or accumulation across months.
Which models are available on GitHub Copilot Free?
The Free tier includes GPT-5 mini for standard interactions and limited premium model access with 50 premium requests/month. Pro and Pro+ unlock the full model catalog including GPT-4o, GPT-4.1, and premium models from Anthropic and Google.
Configuration Examples
Basic Copilot setup
providers:
github-copilot:
# Device-flow OAuth — no API key needed
model: github-copilot/gpt-4oCopilot as secondary provider
providers:
anthropic:
apiKey: sk-ant-xxxxx
model: anthropic/claude-sonnet-4-6
github-copilot:
model: github-copilot/gpt-4.1
# Use subscription credits: /model github-copilot/gpt-4.1