gai

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 15 Imported by: 0

README

gai

⚡ The fastest AI command generator for CLI

Release

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL