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.

GitHub Copilot can be used as a model provider for OpenClaw through its device-flow OAuth integration. Instead of paying per-token API fees, you leverage your existing GitHub Copilot subscription to access models like GPT-4o, GPT-4.1, Claude, and Gemini — with costs bundled into your monthly subscription. GitHub Copilot offers five tiers: Free ($0, 50 premium requests/month), Pro ($10/month, 300 premium requests), Pro+ ($39/month, 1,500 premium requests), Business ($19/user/month), and Enterprise ($39/user/month). Premium requests are consumed by chat, agent mode, code review, coding agent, and CLI features — with usage varying by model. Additional premium requests can be purchased at $0.04/request. The model catalog available through Copilot is extensive for a subscription service. The default model (GPT-5 mini) is included in standard (non-premium) usage, while premium models like GPT-4o, GPT-4.1, Claude models, and Gemini models consume premium requests at varying rates. Pro+ subscribers get access to the full model catalog with 1,500 premium requests monthly. For OpenClaw, GitHub Copilot as a provider is most useful for developers who already have a Copilot subscription and want to use it for agent workflows without separate API costs. The device-flow OAuth eliminates API key management entirely — you authenticate through your browser just like logging into GitHub. The Copilot Proxy VS Code extension can also be used to route requests. The key consideration is premium request budgeting. Agent mode in OpenClaw can consume premium requests quickly — each tool call or multi-turn conversation step uses requests. With only 300 premium requests on Pro or 1,500 on Pro+, heavy agentic use may exhaust your monthly allocation. For heavy users, the direct API (OpenAI, Anthropic) with per-token pricing often works out cheaper than buying additional premium requests at $0.04 each.

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-4o

Copilot 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