A lightweight terminal tool to query Google AI Studio straight from shell.
No subscriptions needed — just grab a free API key from Google AI Studio.
Supports:
- Quick Q&A from terminal
- Code-only mode (
-c) - Pretty markdown output with glow (optional, but recommended)
curl -s https://raw.githubusercontent.com/MushroomWasp/ai-term/refs/heads/main/install.sh | bashNote that I made the alias just
aifor fast access
ai "Your question here"
ai -c "Your question here" # code-only modeIf you run it with no arguments or -h, it shows help.
ai "Explain SQL injection in simple terms"Output (with glow): nicely formatted markdown.
- Requires:
curl,jq - Optional:
glowfor beautiful output - Set your
API_KEYinsidescript.shbefore using - Get your free API key here → Google AI Studio
