{"schemaVersion":1,"id":"avc-84-superagent-ai-grok-cli","name":"superagent-ai/grok-cli","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/avc-84-superagent-ai-grok-cli/","officialUrl":"https://github.com/superagent-ai/grok-cli","isCatalog":false,"description":"A community terminal agent for the Grok API, with web/X search and coding tools. Supports headless execution, sessions, and Telegram control.","tasks":["Perform a coding task through the Grok API","Obtain structured output from a headless task"],"categoryIds":["ai","software"],"subcategoryIds":["ai.cli","software.cli"],"tags":["CLI"],"aliases":[],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"The CLI code is available under MIT without a license fee. This is not a free Grok API: requests require a key and separate API terms. A consumer Grok subscription must not be treated as a promise of free API access.","paidUsage":"Grok API requests are billed by tokens for the chosen model. Web/X search and voice message recognition through Speech-to-Text have separate pricing; image and video generation are separate API costs.","license":"MIT for the CLI code: use, modification, and distribution are permitted with copyright and permission notices retained. Code has no warranties; this license does not transfer Grok rights or API access.","selectionGuide":{"purpose":"Perform a coding task through the Grok API","chooseWhen":["Perform a coding task through the Grok API","Obtain structured output from a headless task"],"considerInstead":["When choosing for this topic, compare superagent-ai/grok-cli with Gemini CLI. A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare superagent-ai/grok-cli with OpenAI Codex CLI. A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["A Grok API key; interactive OpenTUI requires a modern terminal emulator. The alternative bun add -g grok-dev installation requires Bun in PATH; the published installer includes Bun. package.json separately declares Node>=18."],"limitations":["Costs and limits of free use: Grok API requests are billed by tokens for the chosen model. Web/X search and voice message recognition through Speech-to-Text have separate pricing; image and video generation are separate API costs.","Terms of use: MIT for the CLI code: use, modification, and distribution are permitted with copyright and permission notices retained. Code has no warranties; this license does not transfer Grok rights or API access.","An unofficial project, explicitly unaffiliated with xAI.","Desktop computer automation in the README is tied to macOS; this capability must not be promised on Windows.","The built-in computer sub-agent currently targets macOS.","A possible workflow: assign a bounded task through --prompt, save the JSON events for analysis, review the diff, and run the project's tests. An agent's output alone does not prove that a change is correct."],"faq":[{"question":"What can you use for free in superagent-ai/grok-cli?","answer":"The CLI code is available under MIT without a license fee. This is not a free Grok API: requests require a key and separate API terms. A consumer Grok subscription must not be treated as a promise of free API access."},{"question":"What additional costs might arise with superagent-ai/grok-cli?","answer":"Grok API requests are billed by tokens for the chosen model. Web/X search and voice message recognition through Speech-to-Text have separate pricing; image and video generation are separate API costs."},{"question":"What terms of use matter for superagent-ai/grok-cli?","answer":"MIT for the CLI code: use, modification, and distribution are permitted with copyright and permission notices retained. Code has no warranties; this license does not transfer Grok rights or API access."},{"question":"How do you get started with superagent-ai/grok-cli?","answer":"For the task “Perform a coding task through the Grok API”: open the relevant project and let the agent inspect the affected implementation before making changes. Set a bounded task with completion criteria; review the proposed changes and how they address the requirement. Run the appropriate project checks and compare behavior before and after the change."},{"question":"How can Grok CLI run without an interactive interface?","answer":"Headless --prompt performs one task and exits; --format json emits a stream of newline-delimited JSON events. This path does not require terminal UI support. These are step_start/text/tool_use/step_finish/error events, not a promise of one complete JSON object. --session latest or -s <session-id> resumes a saved session."},{"question":"What is needed to control the desktop?","answer":"The computer sub-agent in the current README targets macOS and requires Accessibility permission for the terminal. This capability cannot be assumed to work on Windows by analogy."},{"question":"How are project rules, skills, and MCP connected?","answer":"AGENTS.md files are collected from the Git root to the current directory; AGENTS.override.md takes precedence within its directory. Skills are read from the project's .agents/skills/<name>/SKILL.md or ~/.agents/skills; MCP servers are configured in .grok/settings.json through mcpServers or in /mcps."},{"question":"What is needed for control through Telegram?","answer":"A bot token and approval of the pairing code in the terminal are required. Long polling runs inside the active CLI process, which must remain running; a headless telegram-bridge is also described. Voice messages are sent to the Grok Speech-to-Text API before the text is passed to the agent."},{"question":"Which systems support the built-in sandbox?","answer":"The documented Shuru microVM sandbox requires macOS 14+ on Apple Silicon. It is enabled with --sandbox or /sandbox; networking is disabled by default. Availability of the ordinary CLI on another OS does not imply availability of this sandbox."}],"related":[{"id":"avc-68-gemini-cli","reason":"A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-67-openai-codex-cli","reason":"A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-85-opencode","reason":"A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://github.com/superagent-ai/grok-cli","https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/README.md","https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/LICENSE","https://docs.x.ai/developers/pricing"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A repository, a description of one change, and a reproducible example of the expected behavior.","Project context: affected files, constraints, and the established validation method."],"steps":["For the task “Perform a coding task through the Grok API”: open the relevant project and let the agent inspect the affected implementation before making changes.","Set a bounded task with completion criteria; review the proposed changes and how they address the requirement.","Run the appropriate project checks and compare behavior before and after the change."],"checks":["The change solves the stated task and does not touch unrelated files unnecessarily.","Investigate check failures; review generated code, configuration, and data access permissions."],"goal":"Example workflow with superagent-ai/grok-cli: Perform a coding task through the Grok API."},"sources":["https://github.com/superagent-ai/grok-cli","https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/README.md","https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/LICENSE","https://docs.x.ai/developers/pricing"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":["avc-67-openai-codex-cli","avc-85-opencode","avc-68-gemini-cli"],"dataVersion":"cbbe7123b47a5ae80983","type":"Tool","kind":"tool","pricingNote":"The CLI code is available under MIT without a license fee. This is not a free Grok API: requests require a key and separate API terms. A consumer Grok subscription must not be treated as a promise of free API access. Grok API requests are billed by tokens for the chosen model. Web/X search and voice message recognition through Speech-to-Text have separate pricing; image and video generation are separate API costs.","notes":"An unofficial project, explicitly unaffiliated with xAI. README desktop computer automation is tied to macOS; do not promise that capability on Windows.","labeledSources":[{"url":"https://github.com/superagent-ai/grok-cli","label":"Source code"},{"url":"https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/README.md","label":"CLI capabilities and startup"},{"url":"https://raw.githubusercontent.com/superagent-ai/grok-cli/HEAD/LICENSE","label":"Code license"},{"url":"https://docs.x.ai/developers/pricing","label":"Grok API pricing"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}