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.
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;
Shell Native Power
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.
Contextual Intelligence
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 coderLinux Sysadmin
Diagnostic wizard for systemd, iptables, nginx logs, kernel panics, and bash one-liners.
gemini --persona sysadminPhysics & Math Tutor
Step-by-step calculus, orbital dynamics derivations, and quantum equations.
gemini --persona mathSecurity Auditor
Inspects code for OWASP Top 10 vulnerabilities, shell injections, and buffer overflows.
gemini --persona secOne Command Setup
Ready in 5 Seconds
No compilation required. Download the executable bash script directly.
# 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