BabinCLI: A powerful, interactive terminal assistant powered by Gemini 2.5 Flash & Groq with weather integration.
Project description
🤖 BabinCLI
AI-powered terminal assistant with Gemini 2.5 Flash & Groq
📦 Install · ⚡ Quick Start · 📖 Full Guide · 🧠 Logic · 🌐 Portal
✨ Features
| Feature | Description | |
|---|---|---|
| 🔄 | Multi-Provider | Gemini + Groq with automatic fallback |
| 🔑 | Multi-Key Rotation | Comma-separated Gemini keys = multiplied quota |
| 🌤️ | Live Weather | Real-time weather data injected into responses |
| 📅 | Date-Aware | AI always knows today's date and time |
| ⌨️ | Shortcuts | babin a, babin c, babin lm, -p, -m |
| 🔀 | Mid-Chat Switch | Type switch to change models on-the-fly |
| 💬 | Interactive Chat | Continuous conversation with memory |
| 🎨 | Rich Output | Beautiful markdown formatting in terminal |
📦 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 — no manual setup needed. 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
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
⚡ Quick Start
babin c # 💬 Start chat (Gemini 2.5 Flash)
babin a "What is Python?" # ❓ Quick question
babin -p groq c # 🔄 Chat with Groq
babin lm # 📃 List available models
🔀 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.x && git push origin v1.3.x(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 → Your Project → Settings → Publishing
- Add Trusted Publisher with:
- Owner:
your-github-username - Repository:
your-repository-name - Workflow:
publish.yml(or your workflow filename) - Environment: (leave blank)
- Owner:
- Save → GitHub Actions can now publish without API tokens
For Manual Publishing:
- Create PyPI account at https://pypi.org/account/register/
- Generate API token at https://pypi.org/manage/account/token/
- Use token as password with username
__token__
⚠️ Important: PyPI does not auto-sync with GitHub pushes. You must create a Release to trigger publishing.
📖 Detailed Guide: See INSTRUCTIONS.md for comprehensive publishing instructions.
📄 License
MIT License © 2026 Babin Bid
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.2.tar.gz.
File metadata
- Download URL: babincli-1.3.2.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4ef7015e1f620343947ddb0d0e12b22b7f0c57438a3618ca015e5e5e6cf220
|
|
| MD5 |
b3d556dbffdef2bd92d72175e1bb8575
|
|
| BLAKE2b-256 |
317ba6fb7eacd6e10760ad3690ebe49d55bb440c598a7f17efe88b48b26480b8
|
Provenance
The following attestation bundles were made for babincli-1.3.2.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.2.tar.gz -
Subject digest:
0b4ef7015e1f620343947ddb0d0e12b22b7f0c57438a3618ca015e5e5e6cf220 - Sigstore transparency entry: 949731652
- Sigstore integration time:
-
Permalink:
KGFCH2/BabinCLI@a7fd088887b6105bce698a84118432e9065e9e68 -
Branch / Tag:
refs/tags/v1.3.2 - Owner: https://github.com/KGFCH2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a7fd088887b6105bce698a84118432e9065e9e68 -
Trigger Event:
push
-
Statement type:
File details
Details for the file babincli-1.3.2-py3-none-any.whl.
File metadata
- Download URL: babincli-1.3.2-py3-none-any.whl
- Upload date:
- Size: 19.1 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 |
11e52ea88403bd7b5ba1fc6da5c79b27047dbfe676b54ed12107c1ad2a1fdfee
|
|
| MD5 |
098c1ede54640746d36c717cdaa80f34
|
|
| BLAKE2b-256 |
05949067e2e734421aac3b8a9f33f01887d3f3aea9d37439fd3750d32b13c293
|
Provenance
The following attestation bundles were made for babincli-1.3.2-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.2-py3-none-any.whl -
Subject digest:
11e52ea88403bd7b5ba1fc6da5c79b27047dbfe676b54ed12107c1ad2a1fdfee - Sigstore transparency entry: 949731711
- Sigstore integration time:
-
Permalink:
KGFCH2/BabinCLI@a7fd088887b6105bce698a84118432e9065e9e68 -
Branch / Tag:
refs/tags/v1.3.2 - Owner: https://github.com/KGFCH2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a7fd088887b6105bce698a84118432e9065e9e68 -
Trigger Event:
push
-
Statement type: