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.1.0.tar.gz (5.1 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.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_assistant_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7e3dbc9b4776bc0b7f2f08cce20e197a66836d5dfeff462aec31c987d184b578
MD5 ea19c1add257ca0e1c72dfb604a75b54
BLAKE2b-256 2391c2ceffb9307fad72f369ff198009f864ebbd3cda52e8246f31e6401aa4ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_assistant_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1298f711c032b8f7164108b36eca9bfb69a7530daa0862e73a1a271b20a3588
MD5 0b3dd7a88929be65890df6903f697eed
BLAKE2b-256 3dd218f7b1fdccbc9ccbbf25aab4857072a99a498162234e8a43384b2ba2fd75

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