Query and display available GitHub Copilot AI models with their capabilities, context limits, and features. Use when: "what models are available", "show copilot models", "list github models", "check model capabilities", "switch models". Examples: - user: "What models can I use with GitHub Copilot?" → fetch and display available models - user: "Show me models with vision support" → filter models by capability - user: "Which model has the largest context window?" → compare model specifications - user: "List all GPT-5 models" → filter by model family
Overall
score
89%
Does it follow best practices?
Validation for skill structure
Query available GitHub Copilot AI models directly from the API to see what models you actually have access to (not just what OpenCode knows about).
Use the provided script to fetch your available models:
# From project root
.opencode/skills/github-copilot-models/scripts/fetch-models.sh
# With JSON output for parsing
.opencode/skills/github-copilot-models/scripts/fetch-models.sh --json
# Filter by category
.opencode/skills/github-copilot-models/scripts/fetch-models.sh --category powerful
# Show only picker-enabled models
.opencode/skills/github-copilot-models/scripts/fetch-models.sh --picker-only| --json | Raw JSON output | fetch-models.sh --json |
| --picker-only | Only show featured models | fetch-models.sh --picker-only |
| --category <cat> | Filter by category | fetch-models.sh --category versatile |
| --family <name> | Filter by model family | fetch-models.sh --family claude |
| --vendor <name> | Filter by vendor | fetch-models.sh --vendor Anthropic |
| --vision | Only models with vision | fetch-models.sh --vision |
| --help | Show all options | fetch-models.sh --help |
# Get auth token from OpenCode config
AUTH_TOKEN=$(jq -r '.["github-copilot"].access' ~/.local/share/opencode/auth.json)
# Query GitHub Copilot API
curl -s -H "Authorization: Bearer $AUTH_TOKEN" \
"https://api.githubcopilot.com/models" | jq .The script automatically reads your OpenCode authentication from:
~/.local/share/opencode/auth.jsonIf authentication fails:
# Re-authenticate with GitHub Copilot
opencode auth add github-copilot
# Verify authentication
opencode auth listAfter finding your desired model, specify it per-command or set a default:
# Per-command (recommended for testing)
opencode run --model gpt-5.2-codex "Refactor this code"
# Set project default in .opencode/opencode.json
{
"defaultModel": "gpt-5.2-codex"
}Validation: Test the model is active and responding correctly:
opencode run "Echo back: model working" && echo "✓ Model active"# Find models with 200K+ context
./scripts/fetch-models.sh --json | jq '.data[] | select(.capabilities.limits.max_context_window_tokens > 200000) | {id, context: .capabilities.limits.max_context_window_tokens}'# Show vision-capable models
./scripts/fetch-models.sh --vision# Filter by vendor
./scripts/fetch-models.sh --vendor Anthropic# Extract just the IDs
./scripts/fetch-models.sh --json | jq -r '.data[].id'Use this skill when you need to:
When choosing a model after querying:
"enabled" models are usable; ignore "disabled" or restricted modelspowerful for complex tasks, versatile for general use, fast for quick iterationsPer-command (recommended for testing):
Project default (use after validation):
.opencode/opencode.json only after confirming model stability--model flag on every command"defaultModel": "gpt-5.2-codex" in config without checking if you have access../scripts/fetch-models.sh --json | jq '.data[].id' first, verify model in output, then configure.opencode models output without cross-checking API.fetch-models.sh script to query GitHub Copilot API directly for current availability."disabled" or "preview" state may reject requests even if listed..policy.state field."policy.state": "enabled" models only: jq '.data[] | select(.policy.state == "enabled")'..capabilities.limits.max_context_window_tokens explicitly in API response.Common issues:
opencode models github-copilot to target the correct provider.opencode auth add github-copilot.policy.state ("enabled" required) and the preview flag in the API response; preview models may have restricted availability depending on your subscription.Install with Tessl CLI
npx tessl i pantheon-ai/github-copilot-models@0.2.0