xAI (Grok) with OpenClaw
Configure xAI Grok models — API key
Configure xAI Grok models — API key
xAI (Grok) models are supported in OpenClaw. Grok emphasizes real-time knowledge and research-oriented use cases. Configure via API key from the xAI console. Model IDs and availability may change—check OpenClaw docs and x.ai for current options.
Create an API key at console.x.ai (or xAI's developer portal). Store in ~/.openclaw/credentials or via openclaw secrets. OAuth is not typically used for xAI with OpenClaw.
{
"agent": {
"model": "xai/grok-2"
}
}
Model IDs depend on xAI's current catalog. See Configuration guide and OpenClaw provider docs for the latest.