Grok CLI Open source
Open-source terminal coding agent for xAI's Grok API with search, media generation and remote control
Grok CLI ecosystem
What Grok CLI can load, and the skills, subagents and MCP servers in this directory that work with it.
- – Agent Skills
- – Subagents
- – MCP
- – AGENTS.md
- – Plugins
- – Hooks
- – Rules
What is Grok CLI?
What it does
grok-cli is an open-source terminal coding agent built specifically around xAI's Grok API. Beyond the standard "read code, edit files, run commands" agent loop, it adds live X/web search, foreground and background sub-agent delegation, a built-in desktop-automation sub-agent, and remote control of a running session from Telegram.
What is inside
Foreground task and background delegate sub-agents, a /verify flow that builds/runs/tests an app in a sandbox with screenshot/video evidence, image and video generation tools, a computer sub-agent for macOS desktop automation (via agent-desktop), MCP server support, Agent Skills (.agents/skills/<name>/SKILL.md), lifecycle hooks, and an optional microVM sandbox (macOS 14+ Apple Silicon only) that isolates shell commands from the host.
Works with
xAI's Grok models (grok-4.3, grok-4.20 variants, etc.); MCP servers; Telegram for remote pairing; a companion tool for macOS accessibility automation.
How to install or connect
curl -fsSL https://raw.githubusercontent.com/superagent-ai/grok-cli/main/install.sh | bash
Alternative: bun add -g grok-dev.
Maintenance and safety
MIT licensed, built by superagent-ai with CI and clear docs. The main branch's most recent commit is from May 2026. Desktop automation and Telegram remote control meaningfully widen the attack surface: the README requires granting terminal-app Accessibility permissions on macOS and explicitly warns to treat Telegram bot tokens like a password. The sandbox only covers Apple Silicon, so other platforms run agent shell commands unsandboxed.
Who should use it
Developers already using Grok/xAI who want a hackable, fully open-source terminal agent with search, media generation and phone-based remote control, and who are comfortable managing the extra credentials (Grok API key, Telegram token) its extra features require. It's also a reasonable pick for anyone specifically wanting to kick off and check on long-running coding tasks from a phone via Telegram rather than staying tied to a laptop, or who wants live X/web search built into the agent loop instead of bolting on a separate MCP search server.
Source code: superagent-ai/grok-cli ★ 3.5k · +5 this week · MIT · updated 2026-07-06
Pros
- Fully open source (MIT) with a broad, well-documented feature set: sub-agents, MCP, lifecycle hooks, a microVM sandbox, and headless/CI-friendly modes
- Backed by a real org (superagent-ai) with CI, changelog and clear troubleshooting docs
Cons
- Main branch's tip commit is from May 2026, several months before this review, suggesting a slower recent cadence
- Desktop automation and Telegram remote control widen the attack surface; sandboxing is Apple-Silicon-only, so Linux/Intel Mac runs are unsandboxed
Grok CLI pricing
Open source. Prices change often, so confirm on the official pricing page. See every vibe coding app's pricing side by side.
Grok CLI alternatives
All alternatives →Claude Code Paid
Anthropic's agentic coding tool for the terminal, IDE, desktop and web
🔥 Claude Pro billed annually: $17/month instead of $20OpenAI Codex Freemium
OpenAI's coding agent for the terminal, IDE and cloud, included with ChatGPT plans
OpenCode Open source
Open-source terminal coding agent that works with any model provider
Amp Freemium
Frontier coding agent for the terminal and editor, from the makers of Sourcegraph
Orca Open source
An ADE for running fleets of coding agents in parallel worktrees, from desktop or mobile
Qwen Code Open source
Open-source AI coding agent from Alibaba's Qwen team, for terminal, IDE and desktop
Compare Grok CLI
Verdict
Grok CLI scores 7.0/10 in our terminal coding agents ranking. Fully open source (MIT) with a broad, well-documented feature set: sub-agents, MCP, lifecycle hooks, a microVM sandbox, and headless/CI-friendly modes.