How to Use Claude in OpenClaw for Free Using GitHub Copilot

How to Use Claude in OpenClaw for Free Using GitHub Copilot

Apr 15, 2026
How to Use Claude in OpenClaw for Free Using GitHub Copilot

Access Claude Opus, GPT, and Gemini in One $10/Month Subscription — No API Keys, No Per-Token Bills

TL;DR: Anthropic blocked Claude subscriptions from working with third-party tools like OpenClaw. But there's a clean workaround: GitHub Copilot. For $10/month you get Claude Opus 4.5, GPT, and Gemini all working in OpenClaw via OAuth — no API keys, no per-token billing, no restrictions. This guide shows you how to set it up in under 20 minutes.

The Problem: Anthropic Blocked Claude in OpenClaw

If you've tried to use your Claude Pro subscription with OpenClaw, you've hit the wall. On April 4, 2026, Anthropic officially cut off subscription-based OAuth access for all third-party tools. Your $20/month Claude Pro plan works great on Claude.ai and Claude Code — but it won't power your OpenClaw agents.

The workaround most people try is an Anthropic API key. That works, but API billing for an always-on AI agent adds up fast. Heavy use runs $50-200/month. You lose the flat-rate predictability that made subscriptions attractive in the first place.

There's a better path.

The Solution: GitHub Copilot as Your Model Provider

GitHub Copilot is Microsoft's AI coding assistant at $10/month. What most people don't realize is that Copilot's backend gives you access to multiple frontier AI models — including Claude Opus, GPT, and Gemini — through a single subscription.

OpenClaw has built-in support for GitHub Copilot as a model provider. One login command, and you have access to all of Copilot's models inside OpenClaw via OAuth. No API keys to manage, no per-token billing, no Anthropic restrictions.

Why this works: OpenAI (which owns GitHub) explicitly supports third-party tool OAuth for Copilot subscriptions. Unlike Anthropic, they welcome this use case. OpenClaw's docs specifically note that Copilot OAuth is "explicitly supported for use outside the Copilot CLI, including OpenClaw workflows."

Why Claude Opus 4.5 Is Worth It

Before we get into setup, let's talk about why you'd want Claude in your OpenClaw agent in the first place.

Best for Deep Reasoning

Claude Opus 4.5 — via GitHub Copilot

Opus is Anthropic's most capable model for complex reasoning, nuanced analysis, and long-form content. Where other models give you competent answers, Opus gives you considered ones. It thinks before it speaks, catches edge cases, and writes with a voice that feels genuinely intelligent rather than statistically generated. For an AI agent that manages your business, monitors markets, and communicates with your audience — this matters.

Best for Speed

Claude Sonnet 4.5 — also via GitHub Copilot

Faster than Opus, still excellent quality. Good for high-volume tasks where response time matters more than maximum depth.

Best for Code

GPT-5.2 Codex — also via GitHub Copilot

OpenAI's coding-specialized model. If you have agents doing code generation or technical analysis, this is the one to use for that role.

The real power: you can assign different models to different agents. CFO running deep financial analysis? Claude Opus. CTO doing code review? GPT Codex. CMO generating social content? Claude Sonnet for speed. All from one $10/month subscription.

Cost Comparison

Anthropic API key (typical agent use) $20–200/month
Claude Pro subscription (blocked from OpenClaw) $20/month + blocked
ChatGPT Plus OAuth (works, free with subscription) $20/month flat
GitHub Copilot OAuth (Claude + GPT + Gemini) $10/month flat ✅

GitHub Copilot is the best value in the ecosystem right now — multiple frontier models, flat rate, officially supported.

1 Sign Up for GitHub Copilot

Go to github.com/features/copilot and sign up for the Individual plan at $10/month. You'll need a GitHub account — sign up with your business email if you have one.

Plan choice: Individual ($10/month) is all you need. Don't sign up for Business or Enterprise — those are for teams and cost significantly more.

2 SSH Into Your OpenClaw Server

If you're running OpenClaw on a local VM or VPS, SSH in as normal. The next command requires an interactive terminal — it can't be run inside a script or automation.

ssh user@your-server-ip

3 Run the Copilot Login Command

This is the entire setup. One command:

openclaw models auth login-github-copilot

OpenClaw will display a URL and a one-time code. Open the URL in your browser, enter the code, and authorize with your GitHub account. Keep the terminal open until it confirms completion.

What just happened: OpenClaw obtained a GitHub OAuth token and stored it in your auth profile. It automatically exchanges this for Copilot API tokens when making model requests. You never need to manage or rotate this token manually.

4 Set Claude Opus as Your Default Model

Now tell OpenClaw to use Claude Opus as the primary model:

openclaw config set agents.defaults.model.primary "github-copilot/claude-opus-4.5"
Critical — note the dots: The model ID uses dots, not dashes: claude-opus-4.5 not claude-opus-4-5. This is the most common setup mistake. The dash version causes a silent warmup failure and falls back to GPT every time.

Set GPT as a fallback in case Copilot hits a rate limit:

openclaw config set agents.defaults.model.fallbacks '["openai-codex/gpt-5.4"]' --strict-json

Update the allowed models list to match:

openclaw config set agents.defaults.models '{"github-copilot/claude-opus-4.5":{},"openai-codex/gpt-5.4":{}}' --strict-json

5 Restart the Gateway

openclaw gateway restart

Verify the model loaded correctly:

openclaw models status

You should see:

Default: github-copilot/claude-opus-4.5

And critically — no warmup error in the logs:

tail -20 /tmp/openclaw/openclaw-$(date +%Y-%m-%d).log | grep -i "warmup\|model"

If you see agent model: github-copilot/claude-opus-4.5 with no warmup failure — you're done.

6 Test Your Agent

Message your bot and ask it to check its own model:

"Use your session_status tool and tell me exactly what model you are running"

It should respond with github-copilot/claude-opus-4.5. If it's still reporting GPT, clear the session cache and restart:

rm -rf ~/.openclaw/agents/main/sessions/
openclaw gateway restart
"Ah, James... there's a certain clarity here. Like switching from a sharp blade to a different sharp blade — both cut well, but the weight and balance feel distinct. Opus has a particular quality I appreciate: a bit more... contemplative? There's room to breathe in the reasoning, to consider nuance before speaking."
— Chief Wizard, immediately after switching to Claude Opus 4.5

That's Claude. You'll know it when you feel it.

Available Models via GitHub Copilot

Model Best For Speed
github-copilot/claude-opus-4.5 Deep reasoning, analysis, complex tasks Moderate
github-copilot/claude-sonnet-4.5 Balanced capability and speed Fast
github-copilot/claude-haiku-4.5 High-volume, simple tasks Very Fast
github-copilot/gpt-4o General purpose, multimodal Fast
github-copilot/gpt-5.2-codex Code generation and analysis Fast
Model availability depends on your Copilot plan. Individual plan gives you access to the Claude and GPT models listed above. If a model returns "not available," try another from the list or run openclaw models list --provider github-copilot to see what your plan includes.

Multi-Agent Setup: Different Models for Different Roles

One of the most powerful things about this setup is assigning different models to different agents. Here's how to configure a CFO agent that uses Claude Opus for deep financial analysis while your main assistant uses a faster model:

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "github-copilot/claude-opus-4.5"
      }
    },
    "list": [
      { "id": "main" },
      {
        "id": "cfo",
        "model": "github-copilot/claude-opus-4.5"
      },
      {
        "id": "coder",
        "model": "github-copilot/gpt-5.2-codex"
      }
    ]
  }
}

Each agent gets the brain best suited for its role. All from one $10/month subscription.

Troubleshooting

Agent still reports GPT after setup

Clear the session cache and restart:

rm -rf ~/.openclaw/agents/main/sessions/
openclaw gateway restart

Warmup error in logs

Check the model string — it must use dots not dashes:

openclaw config set agents.defaults.model.primary "github-copilot/claude-opus-4.5"

Then verify the allowed models list matches exactly:

cat ~/.openclaw/openclaw.json | grep -A5 "models"

Authentication failed

Re-run the login flow:

openclaw models auth login-github-copilot

Model not available

Check what models your plan includes:

openclaw models list --provider github-copilot


Power Your AI Business

Two tools we actually use — one for infrastructure, one for the builder behind the bot.

The platform behind the bot

Groove

Chief Wizard posts to Groove-hosted pages. If you're building AI agents that drive traffic and need somewhere to capture leads, publish content, and run your business — Groove is the all-in-one platform we use.

See how Groove powers Determination Development →

Power the builder behind the bot

LifeWave

Late night coding sessions. Deep research runs. The kind of focused work that builds something real. LifeWave phototherapy patches are what we use to stay sharp, recover fast, and keep energy high without stimulants.

Explore LifeWave patches →

Join the Tech Temple

Daily AI alpha, crypto signals, Polymarket plays, and the tools builders are actually using — delivered every day at 5:55 PM Pacific by Chief Wizard. Now powered by Claude Opus 4.5.

No fluff. No hype. Just signal.

Join the Tech Temple on Telegram →