⚡ The fastest AI command generator for CLI
bash <(curl https://raw.githubusercontent.com/tnfssc/gai/refs/heads/develop/install.sh)pwsh -c "irm https://raw.githubusercontent.com/tnfssc/gai/refs/heads/develop/install.ps1 | iex"go install github.com/tnfssc/gai@latestDownload the binary directly from Releases
Follow gai's instructions when you use it for the first time
Get your key from groqcloud
Add it in your ~/.bashrc file as follows
export GROQ_API_KEY=your-api-key./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 immediatelyUse standard input
cat /etc/hosts | gai block youtube.comUse 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