Skip to content

Instantly share code, notes, and snippets.

@laiso
Last active March 6, 2026 05:01
Show Gist options
  • Select an option

  • Save laiso/6028e30c7f4988c7bbee1c1e3fc09629 to your computer and use it in GitHub Desktop.

Select an option

Save laiso/6028e30c7f4988c7bbee1c1e3fc09629 to your computer and use it in GitHub Desktop.
Grok 4.20 Exp Beta on OpenCode https://console.x.ai/
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"xai": {
"npm": "@ai-sdk/xai",
"name": "xAI Grok",
"options": {
"apiKey": "xai-YOUR_API_KEY",
"baseURL": "https://api.x.ai/v1"
},
"models": {
"grok-4.20-multi-agent-experimental-beta-0304": {
"name": "Grok 4.20 Multi-Agent Exp Beta 0304",
"maxTokens": 2000000,
"supports": ["tools", "json", "streaming", "multi-agent"]
},
"grok-4.20-experimental-beta-0304-reasoning": {
"name": "Grok 4.20 Exp Beta 0304 - Reasoning",
"maxTokens": 2000000,
"supports": ["tools", "json", "reasoning"]
},
"grok-4.20-experimental-beta-0304-non-reasoning": {
"name": "Grok 4.20 Exp Beta 0304 - Non-Reasoning",
"maxTokens": 2000000,
"supports": ["tools", "json"]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment