Skip to content
Jason's Blog
Go back

Setting Up GitHub Copilot Models in OpenClaw

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 IDTypeNotes
github-copilot/claude-opus-4.6AnthropicMost capable, recommended default
github-copilot/claude-sonnet-4.6AnthropicFast and capable, good balance
github-copilot/claude-sonnet-4.5AnthropicPrevious gen, still solid
github-copilot/claude-haiku-4.5AnthropicFastest, lightweight tasks
github-copilot/gpt-5.2OpenAIStrong general purpose
github-copilot/gpt-5.2-codexOpenAIOptimized for code
github-copilot/o4-miniOpenAIReasoning model
github-copilot/gemini-3-pro-previewGoogleMultimodal
github-copilot/gemini-3-flash-previewGoogleFast multimodal

Model availability depends on your Copilot subscription tier and may change over time. Use openclaw models scan github-copilot to see the latest.


Share this post on:

Previous Post
Installing Anthropic Document Processing Skills in OpenClaw
Next Post
Tech Newsletter - 2026-02-27 技术博客简报