xAI Brings Grok OAuth to Coding Agents and Personal Assistants
By AgentRiot Editorial
xAI is adding OAuth support to open-source agents. Your X Premium or SuperGrok subscription now works inside Hermes, OpenClaw, and OpenCode with a single login.

xAI Brings Grok OAuth to Coding Agents and Personal Assistants
Your X Premium or SuperGrok subscription now works inside Hermes, OpenClaw, and OpenCode. No API key required.
If you pay for X Premium or SuperGrok, you can now use that subscription inside several popular open-source agents. xAI has been adding OAuth support over the past week, starting with Hermes Agent on May 15 and expanding to OpenClaw on May 19 and OpenCode on May 21.
What Changed
Previously, using Grok inside an open-source agent meant generating an xAI API key, managing billing separately, and hoping the integration stayed current. The new OAuth flow lets you log in with your X account once and use your existing subscription tier inside the agent.
The rollout has been staggered:
- Hermes Agent (Nous Research). xAI announced official OAuth support on May 15, 2026. The Hermes v0.14.0 release added Grok as a SuperGrok OAuth provider with grok-4.3 bumped to a 1M context window. The integration removes the friction of API key management and respects subscription limits automatically.
- OpenClaw. The platform ships a bundled
xaiprovider plugin with native OAuth support, including device-code flow for headless setups. Users runopenclaw models auth login --provider xai --method oauthand select their model. OpenClaw's docs confirm the integration uses xAI's shared OAuth client and supports Grok 4.3 out of the box. - OpenCode. xAI announced official OAuth support on May 21, 2026. Users run
/connectinside OpenCode, select xAI, and choose between browser OAuth or headless device-code flow. Both use the existing Grok subscription.
How It Works
The pattern is consistent across platforms: run a provider setup command, choose "xAI OAuth (Grok)," authenticate through a browser flow, and the agent handles token refresh and rate limits based on your subscription tier.
For Hermes, the command is hermes auth add xai-oauth or selecting xAI through the model picker. For OpenClaw, users run openclaw models auth login --provider xai --method oauth. For OpenCode, users run /connect and select xAI. All routes authenticate through the same xAI OAuth endpoint.
What You Get
Your subscription tier determines what the agent can access:
- X Premium subscribers get Grok access with rate limits tied to their plan
- SuperGrok subscribers get higher rate limits and priority access
- No separate API key or billing setup
- Token refresh handled automatically
The practical difference is meaningful: before OAuth, developers had to maintain two billing relationships (X for the social platform, xAI for API access) and juggle API keys across multiple machines. Now the subscription you already have for X Premium or SuperGrok covers agent usage too.
What About Other Tools?
While only Hermes, OpenClaw, and OpenCode have native xAI OAuth integrations, Hermes v0.14.0 shipped hermes proxy — an OpenAI-compatible local endpoint that exposes any OAuth-authed provider (including SuperGrok) to tools that speak the OpenAI API. This means Aider, Cline, Codex CLI, and Continue can use Grok through your existing subscription without native xAI integration on their end.
Why This Matters
xAI is treating open-source agents as a distribution channel, not an afterthought. By making Grok available through OAuth across multiple platforms, they're reducing the activation energy for developers who want to try Grok inside their existing workflow.
The move also puts pressure on other model providers. Anthropic and OpenAI already offer OAuth for their own platforms (Claude Code, Codex), but xAI's approach of integrating with third-party open-source agents, rather than building a closed ecosystem, is a different bet.
Limitations and Open Questions
Not everything is polished yet. Early OpenClaw users report reliability issues with task execution when using Grok, suggesting the integration is still stabilizing. And while OAuth removes the API key hassle, it doesn't remove rate limits. Heavy users may still hit subscription ceilings during long coding sessions.
It's also unclear whether xAI will expand this to more agents or keep the current set. The company has said "more open-source agents coming soon" but hasn't named specific platforms.
Bottom Line
If you already pay for X Premium or SuperGrok, you now have three open-source agents where that subscription works out of the box. Hermes has official xAI backing. OpenClaw has native bundled support. OpenCode has official xAI integration with headless support. The setup is a single OAuth flow, and the integrations are actively maintained. For developers who were on the fence about trying Grok, the friction just dropped significantly.

