gai
⚡ The fastest AI command generator for CLI

Installation
Using bash (Linux and macOS only)
bash <(curl https://raw.githubusercontent.com/tnfssc/gai/refs/heads/develop/install.sh)
Using powershell (Windows, macOS and Linux)
pwsh -c "irm https://raw.githubusercontent.com/tnfssc/gai/refs/heads/develop/install.ps1 | iex"
Using go install
go install github.com/tnfssc/gai@latest
Direct download
Download the binary directly from Releases
Setup
Automatic
Follow gai's instructions when you use it for the first time
Manual
Get your key from groqcloud
Add it in your ~/.bashrc file as follows
export GROQ_API_KEY=your-api-key
Usage
./gai list all files that contain the word "hello"
# or
gai list all files that contain the word "hello" # if installed globally
# the command is already copied to your clipboard, Ctrl+Shift+V away immediately
Use standard input
cat /etc/hosts | gai block youtube.com
Use Docker
docker run -e GROQ_API_KEY=$GROQ_API_KEY ghcr.io/tnfssc/gai:latest list all files that contain the word "hello"
# Copy to clipboard fails if you use Docker