xAI Plugs Grok Build Into OpenCode's 7.5 Million Developer Network for Free
xAI lets SuperGrok and X Premium subscribers use Grok Build inside OpenCode, the most-starred open-source coding agent, with no API key required
Takeaways
- Free for existing subscribers: SuperGrok and X Premium users can now use Grok Build inside OpenCode with no extra cost or API key.
- OpenCode is massive: The most-starred open-source coding agent on GitHub with 172K+ stars and 7.5M monthly developers.
- Grok Build is the model: xAI's terminal coding agent with 8 parallel sub-agents, 256K context, and 70.8% SWE-Bench Verified score.
- Two-minute setup: Install OpenCode, run
/connect, pick xAI, and authenticate via OAuth -- browser or headless for remote/VPS. - Subscription tiers: X Premium ($8/mo) and SuperGrok ($30/mo) both qualify; more open-source integrations are coming soon.
- Strategic play: xAI gains distribution to millions of developers without asking them to switch tools, competing directly with Claude Code and Codex CLI.
xAI just handed its existing subscribers a free upgrade they probably weren't expecting. SuperGrok and X Premium subscribers can now use Grok directly inside OpenCode, a terminal-based coding agent, without needing a separate API key. If you're already paying for either subscription, you can now get AI coding assistance in OpenCode at no extra cost.
The most popular open-source coding agent just got a new model
OpenCode isn't a niche tool. It's the most-starred open-source coding agent on GitHub at over 172,000 stars (MIT license), with 75+ model providers and a client-server terminal UI. With over 900 contributors and more than 13,000 commits, OpenCode is used by over 7.5 million developers every month. That's the distribution network xAI just plugged into.
The model doing the work here is Grok Build -- the same model that powers xAI's own terminal-based coding agent. Grok Build ships with up to 8 parallel sub-agents, a 256K context window, and scored 70.8% on SWE-Bench Verified. For context, Opus 4.7 sits at 87.6% and GPT-5.5 at 88.7% on the same benchmark -- so Grok Build is competitive but not yet leading the pack on raw scores.
Getting started takes about two minutes
Install OpenCode, run /connect inside the tool, and pick xAI. Two sign-in flows are supported: a browser OAuth for standard setups, and a headless code-and-URL flow for SSH or remote hosts. That second option matters for anyone running agents on a VPS or inside a CI pipeline.
curl -fsSL https://opencode.ai/install | bash
opencode
# then inside OpenCode:
/connectxAI says more open-source agents and integrations are coming soon. The OpenCode integration follows earlier launches of Grok inside Hermes and OpenClaw, suggesting a deliberate pattern of distribution through third-party open-source tooling rather than building a walled garden.
The pricing math that makes this interesting
The real hook here is the subscription arbitrage. Grok's paid plans run from X Premium at $8/month, SuperGrok Lite at $10/month, SuperGrok at $30/month, X Premium+ at $40/month, and SuperGrok Heavy at $300/month. Full standalone Grok Build access launched at roughly 15x the cost of Claude Code or Codex CLI bundled subscriptions. But if you're already paying for X Premium or SuperGrok for other reasons, you're now getting a capable coding agent thrown in -- no extra billing, no API credential management.
This is the key unlock: the move effectively turns any existing SuperGrok or X Premium subscription into a fully functional AI coding assistant, with zero extra cost and no API key required.
Why xAI is doing this now
Context matters here. Grok Build launched in early beta on May 14, 2026 as xAI's first agentic coding CLI -- a terminal-native coding agent in the same family as Claude Code and OpenAI's Codex CLI. Across roughly two weeks, xAI shipped a coding agent, a skills system, and a connectors layer -- the three pieces every serious AI-developer platform now has. This is xAI making a deliberate move from model to stack.
Rather than building its own proprietary coding environment from scratch, xAI is piggybacking on OpenCode's massive developer community to distribute Grok Build. By making Grok a first-class citizen inside OpenCode, xAI gets distribution to 7.5 million developers without needing to convince them to switch tools. That's a smart go-to-market move in a crowded space.
The competitive landscape it's entering
The terminal coding agent market is getting crowded fast. OpenCode competes with tools like Cursor, Claude Code, and GitHub Copilot. On the model side, Anthropic's Claude Code arrived in early 2025, and OpenAI's Codex CLI followed weeks later. xAI is the late entrant, but it's not coming empty-handed.
What Grok Build brings that competitors don't ship out of the box:
- Git-worktree isolation for parallel sub-agents -- a feature neither Claude Code nor Codex CLI ships natively.
- Native integration with X gives Grok live access to X posts, discussions, and developer conversations as a native tool call -- not an add-on.
- Hierarchical planning with a dedicated plan mode, native parallel sub-agents, support for the Agent Client Protocol (ACP), and compatibility with Anthropic skills and existing MCP servers.
The OpenCode integration also fits a broader pattern in the ecosystem. OpenCode's core selling point is provider neutrality: it works with OpenAI, Google, OpenRouter, dozens of others, and local models through Ollama and any OpenAI-compatible endpoint. Adding Grok Build as a first-class option -- with subscription-based auth rather than raw API keys -- is a meaningful step up from just being another entry in a provider list.
Who wins, who should pay attention
The clearest winners are existing Grok and X Premium subscribers who do any coding. They get a capable, multi-agent coding tool inside the most popular open-source terminal agent on GitHub, at no additional cost. For xAI, the win is distribution: reaching developers where they already work, rather than asking them to adopt a new tool from scratch.
The more interesting second-order effect is what this does to OpenCode's model mix. OpenCode already surpassed Claude Code on GitHub stars and lets users plug in any model from 75+ providers, including local models at zero API cost. Adding a subscription-auth path for Grok -- alongside existing subscription-auth for other providers -- makes OpenCode increasingly the neutral terminal layer that any lab can distribute through. That's a powerful position for a MIT-licensed open-source project to be in.
For Elon Musk, who had publicly acknowledged xAI's lag on coding, Grok Build is also a positioning move on the most profitable ground of 2026: enterprise spending on coding agents. The OpenCode integration is one more step in that direction -- and xAI has explicitly signaled that more open-source integrations are on the way.