# Grok CLI

> Use this tool when you need to integrate Grok AI's capabilities into your AI workflows, providing a bridge for simple queries, multi-turn conversations, and code generation with customizable settings and reliable output handling. It solves problems of accessing X.AI's models through a command-line interface, supporting both structured and unstructured responses. The Grok CLI tool takes in prompts, model selections, and configuration options, outputting JSON-parsed or raw responses for debugging and workflow integration.

Canonical page: https://skillsregistry.net/skills/basissetventures-grok-cli  
JSON: https://api.skillsregistry.net/v1/skills/basissetventures-grok-cli

## Description

Provides a bridge to Grok AI through the official Grok CLI, offering three specialized tools for different interaction patterns: simple prompt-response queries, multi-turn conversations with message history, and code generation with language hints and context. Built by Basis Set Ventures using a CLI wrapper approach that leverages the official Grok CLI in headless mode, with JSON parsing and fallback to raw output for debugging. Supports configurable timeouts, optional model selection, and handles both structured and unstructured responses, making it useful for integrating Grok's capabilities into AI workflows that need reliable access to X.AI's models.

## Trust

- **Trust score (0–1):** 0.96
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/basissetventures-grok-cli)
- **Repository:** <https://github.com/basissetventures/grok-cli-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "basissetventures-grok-cli"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/basissetventures-grok-cli` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/basissetventures-grok-cli/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
