Skip to main content

BabinCLI: A powerful assistant powered by NVIDIA, GitHub Models, Gemini & Groq.

Project description

🤖 BabinCLI

PyPI version Python 3.9+ License: MIT

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 (v1.3.6)
Web Search Automatic DuckDuckGo search for live info (v1.3.6)
File Context Inject file content into AI prompt with -f (v1.3.6)
Persistent History Conversations saved automatically (v1.3.6)
Animation Premium live typewriter generation (v1.3.6)
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 babin isn't recognized, run python -m babin_cli setup-path and 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,key3 to 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:

  1. 🏷️ Bump version in pyproject.toml and babin_cli/__init__.py
  2. 💾 Commit changes: git commit -m "Update message" (Updates GitHub only)
  3. 🚀 Push Tag: git tag v1.3.6 && git push origin v1.3.6 (Updates PyPI automatically)

⚠️ Note: A regular git push will 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:

  1. Go to pypi.org → Project Settings → Publishing
  2. Add Trusted Publisher with:
    • Owner: KGFCH2
    • Repository: BabinCLI
    • Workflow: publish.yml
    • Environment: pypi
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

babincli-1.3.6.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

babincli-1.3.6-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file babincli-1.3.6.tar.gz.

File metadata

  • Download URL: babincli-1.3.6.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for babincli-1.3.6.tar.gz
Algorithm Hash digest
SHA256 0ce335fca7c3088ef5ba59700b6b84e2f7859e718935d4040b4aa5bce5692004
MD5 d88a3f32c86e6aa28b156a1f799d2b14
BLAKE2b-256 491187f67b254059c9c4e1a55fceeb3362717e57d34d0b1302a8ffb76ddcc8bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for babincli-1.3.6.tar.gz:

Publisher: publish.yml on KGFCH2/BabinCLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file babincli-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: babincli-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for babincli-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 447f42cac7dfb83a7a2c97fc61d4555707b1f3597ad39ef2c19a1223280f41ec
MD5 ea5adc2e7f49c3f4799ebe49b2d5c574
BLAKE2b-256 108366b0ad5efa14edfd305c4c2d53c79b37235aaf80bcf0321a60580887b2cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for babincli-1.3.6-py3-none-any.whl:

Publisher: publish.yml on KGFCH2/BabinCLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page