An AI-powered CLI tool that helps you find and execute the right terminal commands based on natural language queries. GromitAI uses OpenAI's GPT models to understand your intent and generate appropriate Linux commands, with the option to execute them directly.
- 🧠 AI-Powered Command Generation: Uses OpenAI's GPT models to understand natural language queries
- 🔍 Smart Command Discovery: Finds the right terminal commands for your specific needs
- ⚡️ Interactive Execution: Asks for confirmation before running commands
- 🎯 Linux Environment Focus: Optimized for Linux/Unix command line operations
- 🔧 Configurable: Customizable AI models and system prompts (in future)
Under active development.
- Go 1.24.5 or higher
- OpenAI API key
go install github.com/gromitai/gromit
- Clone the repository:
git clone https://github.com/gromitai/gromit.git
cd gromit- Build the project:
go build -o gromit- Make it executable and move to your PATH:
chmod +x gromit
sudo mv gromit /usr/local/bin/Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key-here"
export ANTHROPIC_API_KEY="your-api-key-here"
export GEMINI_API_KEY="your-api-key-here"Simply describe what you want to do, and GromitAI will find the appropriate command:
gromit "list all files in the current directory"GromitAI will:
- Generate the appropriate command
- Show you what it's going to run
- Ask for confirmation
- Execute the command if you approve
# System information
gromit "show me disk usage for all mounted filesystems"gromit [options] "your query here"--agent: AI agent to use (default: "openai")--model: AI model to use (default: "gpt-4o")--systemPrompt: Custom system prompt for the AI agent
# Use a different model
gromit --model gpt-4 "find all files modified today"
# Custom system prompt
gromit --systemPrompt "You are a security expert" "check for suspicious network connections"This project is licensed under the MIT License - see the LICENSE file for details.