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
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 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.
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.
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.
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
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.
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.
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"
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
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 |
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 →
