Setting Up GitHub Copilot Models in OpenClaw
Once GitHub Copilot is authenticated in OpenClaw (openclaw models login github-copilot), you can configure which models to use and how they’re prioritized.
Scan Available Models
First, discover what’s available through your Copilot subscription:
openclaw models scan github-copilot
Configure Models in openclaw.json
Edit agents.defaults in your openclaw.json:
{
"agents": {
"defaults": {
"model": {
"primary": "github-copilot/claude-opus-4.6",
"fallbacks": [
"github-copilot/claude-sonnet-4.6",
"github-copilot/claude-sonnet-4.5",
"github-copilot/claude-haiku-4.5",
"github-copilot/gpt-5.2"
]
},
"models": {
"github-copilot/claude-opus-4.6": {},
"github-copilot/claude-sonnet-4.6": {},
"github-copilot/claude-sonnet-4.5": {},
"github-copilot/claude-haiku-4.5": {},
"github-copilot/gpt-5.2": {},
"github-copilot/gpt-5.2-codex": {},
"github-copilot/o4-mini": {},
"github-copilot/gemini-3-pro-preview": {},
"github-copilot/gemini-3-flash-preview": {}
}
}
}
}
Model Aliases (Optional)
Set aliases for quick model switching in chat:
{
"models": {
"github-copilot/claude-opus-4.6": { "alias": "opus" },
"github-copilot/claude-sonnet-4.6": { "alias": "sonnet46" },
"github-copilot/gpt-5.2": { "alias": "gpt52" }
}
}
Then switch models with /model opus or /model sonnet46.
Restart
openclaw gateway restart
Verify
openclaw status
Or use /status in chat to see the current model.
Available Models (as of March 2026)
| Model ID | Type | Notes |
|---|---|---|
github-copilot/claude-opus-4.6 | Anthropic | Most capable, recommended default |
github-copilot/claude-sonnet-4.6 | Anthropic | Fast and capable, good balance |
github-copilot/claude-sonnet-4.5 | Anthropic | Previous gen, still solid |
github-copilot/claude-haiku-4.5 | Anthropic | Fastest, lightweight tasks |
github-copilot/gpt-5.2 | OpenAI | Strong general purpose |
github-copilot/gpt-5.2-codex | OpenAI | Optimized for code |
github-copilot/o4-mini | OpenAI | Reasoning model |
github-copilot/gemini-3-pro-preview | Multimodal | |
github-copilot/gemini-3-flash-preview | Fast multimodal |
Model availability depends on your Copilot subscription tier and may change over time. Use
openclaw models scan github-copilotto see the latest.