100% Pure Bash · Zero Runtimes (No Node/Python) · Real-Time Streaming SSE

Gemini AI
Direct in Your Shell

Gemini CLI is an ultra-fast, zero-dependency terminal AI companion written entirely in Bash. Chat in interactive REPL, pipe command logs, debug stack traces, and stream completions with pure ANSI colors.

0.8 MB RAM Footprint
0 sec Startup Overhead
Unix Pipes Stdin Automation
bash -c ./gemini.sh --stream
ayush@strangeinfinity:~$ cat server.log | gemini "summarize errors"
[✦ Gemini 1.5 Flash Streaming]
Found 1 Critical Socket Timeout on Port 8080:
• Worker process #4 disconnected unexpectedly.
• Recommended fix: Increase keep-alive timeout in nginx.conf:
keepalive_timeout 65s;
ayush@strangeinfinity:~$
SSE Stream: Active gemini-1.5-flash

Engineered for Terminal Hackers

No massive node_modules. No Python virtualenv activation needed. Just pure shell power.

100% Pure Bash & Curl

Built using POSIX compatible shell scripting and jq. Runs natively on Linux, macOS, Raspberry Pi, and WSL.

Real-Time Typewriter Streaming

Server-Sent Events (SSE) stream tokens directly into your terminal character-by-character with zero perceptible delay.

Unix Pipes & Redirection

Seamlessly pipe git diff, cat logs, or curl outputs directly into Gemini for instant diagnoses.

Multi-Turn Session Memory

Maintains contextual chat history across turns, saved securely under ~/.gemini_cli/sessions/.

Custom System Personas

Switch between persona presets like Linux Sysadmin, Senior Python Architect, or Bug Bounty Hunter with a single flag.

Encrypted Local Key Vault

Securely stores your Google Gemini API Key with owner-only (chmod 600) file permissions on your local machine.

Built-In Personas

Instantly configure system prompts suited for your workflow.

Senior Coder

Emits concise, refactored code without filler text. Flags edge-cases and memory leaks.

gemini --persona coder

Linux Sysadmin

Diagnostic wizard for systemd, iptables, nginx logs, kernel panics, and bash one-liners.

gemini --persona sysadmin

Physics & Math Tutor

Step-by-step calculus, orbital dynamics derivations, and quantum equations.

gemini --persona math

Security Auditor

Inspects code for OWASP Top 10 vulnerabilities, shell injections, and buffer overflows.

gemini --persona sec

Ready in 5 Seconds

No compilation required. Download the executable bash script directly.

Quick Install Script Requires Bash & JQ
# 1. Clone or download Gemini CLI
git clone https://github.com/dev-hints/Gemini_cli.git
cd Gemini_cli
chmod +x gemini.sh

# 2. Set your Google Gemini API Key
export GEMINI_API_KEY="your_api_key_here"

# 3. Launch interactive REPL
./gemini.sh