HeadsUpAI

xAI enables Grok subscription portability for OpenCode agentic workflows

xAI enabled subscription portability for OpenCode, an open-source coding agent available as a terminal tool or desktop app. Users with X Premium or SuperGrok accounts can now authenticate via OAuth to power the platform. This follows a similar move to enable Grok subscription portability for Hermes Agent.
Model
Grok Build
Required subscription
X Premium or SuperGrok
Authentication
OAuth sign-in
Platform
OpenCode (CLI or Desktop)
Pricing
Included in subscription

This integration provides direct access to Grok Build, the high-speed model xAI designed for codebase intelligence. By allowing subscribers to bring their own account to open-source tools, xAI is challenging traditional API billing. It mirrors how Vercel brings Grok Build 0.1 to its gateway for custom agentic workflows.

You can start today by installing the OpenCode CLI and selecting xAI Grok OAuth during onboarding. This setup enables autonomous multi-file editing and repository-wide reasoning powered by your existing subscription. The integration is available now, with xAI promising more open-source agent connections in the coming weeks.

xAI
xAI
@xai
X

You can now use your @grok or X Premium subscription in @opencode. Use the model powering Grok Build for high speed and codebase intelligence. https://t.co/8D2F9jYoIQ https://t.co/kX170e84IL

17retweets92likes
View on X

Still wondering? A few quick answers below.

The OpenCode integration allows users to connect their existing xAI subscriptions directly to the OpenCode platform. OpenCode is an open-source AI coding agent that can autonomously write and debug code through a terminal interface or a desktop application. By signing in via OAuth, subscribers can use Grok models to power their development workflows.

Users with an active X Premium or SuperGrok subscription are eligible for this integration. Instead of paying for separate API access or per-token usage fees, these subscribers can use their existing accounts to provide the underlying intelligence for the OpenCode agent. This makes high-performance AI coding more accessible for individual developers and prosumers.

The integration uses Grok Build, which is the same specialized model that powers xAI's own terminal-based coding tools. Grok Build is optimized for high-speed performance and codebase intelligence, meaning it is specifically trained to understand complex programming logic, navigate large repositories, and perform multi-step engineering tasks autonomously within the OpenCode environment.

To set up the integration, you first install OpenCode via the terminal and run the guided onboarding process. When the system prompts you to choose a model provider, you select the xAI Grok OAuth option. After signing into your xAI account, the agent is ready to begin coding using your existing subscription benefits.

Yes, the integration is currently available for users to set up and use. xAI launched this capability on May 21, 2026, as part of a broader effort to make Grok models portable across different open-source tools. The company has also indicated that more integrations with other open-source agents are expected to launch in the near future.

Share this update