Skip to main content

AI-powered CLI assistant using Gemini API

Project description

🚀 AI Assistant & Command Generator CLI

A powerful menu-driven Python Command Line Interface (CLI) designed to enhance developer productivity and streamline technical documentation.
It combines the intelligence of the Gemini API for analysis and code generation with a robust local 📚 Recipe Vault for storing essential shell commands.


✨ Key Features & Benefits

  • Zero-Setup Demo → Works on Windows, macOS, or Linux using simple environment variables.
  • 🧠 Intelligent Assistance → Real-time web search, code explanations, and file summarization.
  • 🛠️ Developer Productivity → Automates creation and explanation of complex Linux/CLI commands.

💡 AI Analysis & Generation Features

Feature Description
🗣 General Q&A (Web Search) Get up-to-date, grounded answers with Google Search integration.
💻 Explain Code Snippet Paste any code block and get a simple, clear explanation of its purpose.
💡 Code Generator (NEW!) Generate runnable scripts/functions (e.g., Python script for file hashing).
📝 Summarize Local File Summarizes text from TXT, MD, PDF, DOCX, XLSX, and Images.

📚 Command Recipe Vault (Persistence)

Action Description
🛠 Generate New Recipe (AI) Describe a command, and AI generates & saves it.
➕ Add Known Recipe (Manual) Save a command you already know with tags & names.
🔍 Search & View Recipe Find commands by name or tag, ready for instant copy/paste.
🧠 Explain Recipe (AI) Get detailed explanations of flags, pipes, and syntax.

🛠️ Project Setup (Windows/VS Code Optimized)

1️⃣ API Key Configuration (Crucial!)

You must obtain a Gemini API Key from Google AI Studio and set it as an environment variable named GEMINI_API_KEY.

💻 Setting the Environment Variable:
Run the command corresponding to your operating system before running the Python script.

Operating System Command
🪟 Windows PowerShell / VS Code powershell $env:GEMINI_API_KEY='YOUR_KEY_HERE'
🍎 macOS / 🐧 Linux (Bash/Zsh) bash export GEMINI_API_KEY='YOUR_KEY_HERE'

🔑 Replace YOUR_KEY_HERE with your actual API key. The quotes are important!


2️⃣ Install Dependencies

  • Install in editable mode

    pip install -e .

  • Launch the CLI

    ai-assistant


Gemini api is used in this

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

ai_assistant_cli-0.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

ai_assistant_cli-0.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_assistant_cli-0.2.0.tar.gz.

File metadata

  • Download URL: ai_assistant_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ai_assistant_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ef6a60d21f3ee348e11cb6ba186e1e7794ed7d7f085741dc820b3fbfb25c18a0
MD5 63b0dd6ae1681018c0208d2c9b608f00
BLAKE2b-256 7b67a40b9dd27f9bb8463fa94f482dfde388c0577289c496058c97e68d89b638

See more details on using hashes here.

File details

Details for the file ai_assistant_cli-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_assistant_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9198ef2b7232c214c872b9092e41814f434fbfd49edad8cc1ef4aee323cde912
MD5 a2d0ce040a79c51d7d4c4fd77097f0f8
BLAKE2b-256 df759e4e36008a67b284b2d89e661cdd318837d31f1dc50e4e38d4b0120a656e

See more details on using hashes here.

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