BabinCLI: A powerful assistant powered by NVIDIA, GitHub Models, Gemini & Groq.
Project description
🤖 BabinCLI
My AI-powered terminal assistant built with Gemini 2.5 Flash, Groq, NVIDIA, and GitHub
📦 Install 📦 · ⚡ Quick Start ⚡ · 📖 Full Guide 📖 · 🧠 Logic 🧠 · 🌐 Portal 🌐
✨ Features
This CLI tool is my personal assistant, and I've packed it with features I use every day:
| Feature | Description |
|---|---|
| Multi-Provider | Gemini, Groq, NVIDIA, & GitHub |
| Streaming Output | Typewriter response generation |
| Web Search | Automatic DuckDuckGo search for live info |
| File Context | Inject file content into AI prompt with -f |
| Persistent History | Conversations saved automatically |
| Animation | Premium live typewriter generation |
| Multi-Key Rotation | Comma-separated Gemini keys for multiplied quota |
| Live Weather | Real-time weather data injected into responses |
| Mid-Chat Switch | Change models on-the-fly without restarting |
| Shortcuts | Quick commands like babin a, babin c, babin h |
| Global Options | Use -p, -m, -f anywhere in the command |
📦 Installation
pip install babincli
Or install from GitHub:
pip install git+https://github.com/KGFCH2/BabinCLI.git
Windows: BabinCLI auto-fixes PATH on first run. If
babinisn't recognized, runpython -m babin_cli setup-pathand open a new terminal.
⚙️ Quick Setup
Copy .env.example to .env and add your API keys:
GEMINI_API_KEY=your_key_here
GROQ_API_KEY=your_key_here
NVIDIA_API_KEY=your_key_here
GITHUB_TOKEN=your_key_here
OPENWEATHERMAP_API_KEY=your_key_here # optional
WEATHERAPI_KEY=your_key_here # optional
🔑 Multi-key: Use
GEMINI_API_KEY=key1,key2,key3to multiply your daily quota!
Get free keys: Google AI Studio · Groq Console · NVIDIA · GitHub
⚡ Quick Start
babin c # Start chat (Groq - llama-3.3-70b)
babin -p github c # Chat with GPT-5 Nano
babin -p gemini c # Chat with Gemini (Global flag)
babin a "What is Python?" # Quick question
babin -f main.py a "Explain" # Analyze file (Global flag)
babin h # View history (After session ends)
babin -p gemini c # Chat with Gemini (Global flag)
babin lm # List available models
🕒 Chat History Note
All sessions are saved in ~/.babincli_history/. To see your latest session in history, you must exit the current chat (type exit or quit). History is written to disk only after the session is terminated.
Switch Models Mid-Chat
Type switch during any chat session to see a numbered menu of available models and switch instantly — no restart needed!
📖 Full Documentation
See INSTRUCTIONS.md for the complete guide including:
- Detailed configuration for all platforms
- All commands with examples
- Multi-key rotation explained
- Auto-fallback behavior
- Local development & testing
- Troubleshooting
🌐 Portal
Visit KGFCH2.github.io/BabinCLI for the interactive documentation portal with code examples and AI helper.
📤 Publishing to PyPI
🤖 Automated Publishing (GitHub Actions)
This project uses GitHub Actions for automatic PyPI publishing:
- 🏷️ Bump version in
pyproject.tomlandbabin_cli/__init__.py - 💾 Commit changes:
git commit -m "Update message"(Updates GitHub only) - 🚀 Push Tag:
git tag v1.3.7 && git push origin v1.3.7(Updates PyPI automatically)
⚠️ Note: A regular
git pushwill not update PyPI. You must push a version tag to trigger the automation.
📦 Manual Publishing
For manual publishing or testing:
# 1. Install build tools
pip install build twine
# 2. Build the package
python -m build
# 3. Upload to PyPI
python -m twine upload dist/*
⚙️ First-Time Setup
For GitHub Actions:
- Go to pypi.org → Project Settings → Publishing
- Add Trusted Publisher with:
- Owner:
KGFCH2 - Repository:
BabinCLI - Workflow:
publish.yml - Environment:
pypi
- Owner:
- Save → GitHub Actions can now publish without tokens.
🔑 Manual Publishing Account: Create account at pypi.org & generate API token.
📖 Detailed Guide: See INSTRUCTIONS.md for comprehensive publishing instructions.
📄 License
MIT License © 2026 Babin Bid
Personal project hand-crafted with 💖 by Babin Bid.
⭐ Support
If you find this useful, please give it a star on GitHub! It helps me keep building.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file babincli-1.3.7.tar.gz.
File metadata
- Download URL: babincli-1.3.7.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c56c850a3f9c5e4d9a5e71c1cbcb38c70759b716cf22d3d7eaec986937e9c25
|
|
| MD5 |
2f888386484b72cdcaf747ce6887a33d
|
|
| BLAKE2b-256 |
143960303c02299b6ec4b9ab3e88d85d85e3b8b4757718b817ef46955a931cd9
|
Provenance
The following attestation bundles were made for babincli-1.3.7.tar.gz:
Publisher:
publish.yml on KGFCH2/BabinCLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
babincli-1.3.7.tar.gz -
Subject digest:
5c56c850a3f9c5e4d9a5e71c1cbcb38c70759b716cf22d3d7eaec986937e9c25 - Sigstore transparency entry: 953630042
- Sigstore integration time:
-
Permalink:
KGFCH2/BabinCLI@543b6588fbc925e6da448d2b7c7b82440aa3f46c -
Branch / Tag:
refs/tags/v1.3.7 - Owner: https://github.com/KGFCH2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@543b6588fbc925e6da448d2b7c7b82440aa3f46c -
Trigger Event:
push
-
Statement type:
File details
Details for the file babincli-1.3.7-py3-none-any.whl.
File metadata
- Download URL: babincli-1.3.7-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
142a633c63ff1936fa771b80ab4679fed703855b7ad689efc01859d37a1d5b8a
|
|
| MD5 |
da00a915ba7abf2b4bc1eebf75cd5b05
|
|
| BLAKE2b-256 |
46f7a145373ab9b1dd4048fddf88c864bdbdd48cfb71f5d48b6c29bcf33c37fd
|
Provenance
The following attestation bundles were made for babincli-1.3.7-py3-none-any.whl:
Publisher:
publish.yml on KGFCH2/BabinCLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
babincli-1.3.7-py3-none-any.whl -
Subject digest:
142a633c63ff1936fa771b80ab4679fed703855b7ad689efc01859d37a1d5b8a - Sigstore transparency entry: 953630044
- Sigstore integration time:
-
Permalink:
KGFCH2/BabinCLI@543b6588fbc925e6da448d2b7c7b82440aa3f46c -
Branch / Tag:
refs/tags/v1.3.7 - Owner: https://github.com/KGFCH2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@543b6588fbc925e6da448d2b7c7b82440aa3f46c -
Trigger Event:
push
-
Statement type: