Directory · Coding agents
Grok CLI
Open-source terminal coding agent for developers using xAI's Grok API, with X and web search, sub-agents, and headless mode.
★ 3,520 stars · last updated 2026-07-06 · Free, open source · View on GitHub
Best for
- Developers who want a Claude Code style terminal agent backed by Grok models
- Headless runs in scripts and CI with JSON event output or the lower-cost Batch API
- Driving a running agent remotely from Telegram
- Scheduled recurring prompts via a background daemon
Install
curl -fsSL https://raw.githubusercontent.com/superagent-ai/grok-cli/main/install.sh | bash
bun add -g grok-dev
Our take
Community-built TypeScript/Bun project, MIT licensed and actively maintained, not affiliated with xAI; it requires a Grok API key. Beyond the usual agent loop it supports MCP servers, Agent Skills, custom sub-agents, saved sessions, image/video generation tools, and a macOS-only computer-use sub-agent via agent-desktop. The interactive OpenTUI interface works most reliably in the recommended terminals (WezTerm, Alacritty, Ghostty, Kitty).
Similar coding agents
- Open Interpreter: Terminal coding agent forked from OpenAI Codex, tuned to emulate provider harnesses for low-cost open models like Kimi K3 and GLM.
- AI Agents in Depth (深入理解 AI Agent): Open-source book by Bojie Li on AI agent design and engineering, with 10 chapters and 109 companion experiments in Python.
- Codewhale: Open-source Rust terminal coding agent that works with 40+ model providers or local models, with approvals, receipts and undo.
- Reasonix: Open-source coding agent for terminal, desktop, browser and editor that reads code, edits files and runs commands with any OpenAI-compatible model.
- DSH Go: Unofficial Android client for DeepSeek Harness that runs the agent on-device or remotely controls DSH on your computer.
- Qwen Code: Open-source terminal coding agent with IDE, desktop, web, and chat interfaces, supporting Qwen, OpenAI, Anthropic, Gemini, and local models.