grok-cli  by superagent-ai

AI agent for terminal file operations and bash commands

created 2 weeks ago

New!

1,314 stars

Top 31.1% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a command-line interface (CLI) for interacting with Grok AI, enabling users to perform file operations, execute shell commands, and leverage AI-powered assistance directly within their terminal. It targets developers and power users seeking to integrate advanced AI capabilities into their workflows for tasks like code generation, file management, and scripting automation.

How It Works

The Grok CLI acts as a conversational AI agent, processing natural language prompts to interact with the user's file system and shell environment. It intelligently selects and utilizes underlying tools, including a text editor and bash integration, to fulfill requests. The architecture supports extensibility through Model Context Protocol (MCP) servers, allowing integration with external services like Linear and GitHub for enhanced functionality.

Quick Start & Requirements

  • Install: npm install -g @vibe-kit/grok-cli
  • Prerequisites: Node.js 16+, Grok API key from X.AI.
  • Setup: Configure API key via environment variable (GROK_API_KEY), .env file, command-line flag, or user settings file (~/.grok/user-settings.json).
  • Docs: README

Highlighted Details

  • Supports interactive and headless modes for scripting and automation.
  • Allows custom instructions via .grok/GROK.md for tailored AI behavior.
  • Extensible with MCP tools for integrating external services (e.g., Linear, GitHub).
  • Offers model selection (Grok, Gemini, Claude) and custom base URL configuration.

Maintenance & Community

The project is licensed under the MIT license, permitting commercial use and integration with closed-source projects.

Licensing & Compatibility

MIT License. Compatible with commercial and closed-source applications.

Limitations & Caveats

The CLI relies on an external Grok API key, and its functionality is dependent on the availability and performance of the Grok AI service. Specific MCP tool integrations may require additional setup or dependencies.

Health Check
Last commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
27
Issues (30d)
33
Star History
1,343 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), John Resig John Resig(Author of jQuery; Chief Software Architect at Khan Academy), and
12 more.

opencode by sst

7.8%
16k
CLI tool for AI-assisted coding in the terminal
created 3 months ago
updated 1 day ago
Starred by Addy Osmani Addy Osmani(Engineering Leader on Google Chrome), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

goose by block

2.4%
18k
Open-source AI agent for automating complex engineering tasks
created 11 months ago
updated 1 day ago
Feedback? Help us improve.