Try “Claude Code skills”, “MCP servers for Cursor” or “Codex” · Esc to close

Grok CLI Open source

Open-source terminal coding agent for xAI's Grok API with search, media generation and remote control

Terminal coding agents · Open source · github.com

7.0editor score
Visit Grok CLI ↗

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.

grok xai terminal-agent open-source mcp telegram-remote-control

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 →

OpenAI Codex Freemium

OpenAI's coding agent for the terminal, IDE and cloud, included with ChatGPT plans

★ 128k · +1.2k this week

9.1 Visit ↗

OpenCode Open source

Open-source terminal coding agent that works with any model provider

★ 211k · +1.4k this week

8.4 Visit ↗

Amp Freemium

Frontier coding agent for the terminal and editor, from the makers of Sourcegraph

Free plan, paid from $20/mo

8.2 Visit ↗

Orca Open source

An ADE for running fleets of coding agents in parallel worktrees, from desktop or mobile

★ 84k · +5.3k this week

8.0 Visit ↗

Qwen Code Open source

Open-source AI coding agent from Alibaba's Qwen team, for terminal, IDE and desktop

★ 28k · +140 this week

8.0 Visit ↗

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.

Try Grok CLI ↗ All terminal coding agents

Popular searches