GitHunt
MI

mizazhaider-ceh/Ai-Terminal-X

๐Ÿ”ฅAI-Terminal-X is an AI-powered Linux terminal assistant๐Ÿ”ฅ that converts natural language commands into executable terminal commands using Googleโ€™s Gemini AI. It enhances productivity with safe execution checks, command suggestions, and real-time feedback.

โšก AI-Terminal-X ( AI-powered Terminal Assistant for Linux )

Logo

Developed by: Muhammad Izaz Haider

Your AI-powered personal terminal assistant for Linux (especially Kali Linux).

Order in plain English โ€” and watch real terminal magic happen instantly! ๐Ÿช„

๐Ÿ“š Introduction

AI-Terminal-X is a game-changing AI-Powered Terminal Assistant designed to revolutionize the way you interact with your Linux terminal. Whether you're a beginner, an ethical hacker, or a seasoned professional, AI-Terminal-X transforms your daily command-line operations, enhancing productivity and learning.

Watch Full Demo on LinkedIn

Blog Post

๐Ÿ”ฅ A Powerful Combination of

  • Linux Terminal (XFCE) โ€“ Reliable command execution
  • AI (Google's Gemini AI) โ€“ Intelligent command generation
  • Python โ€“ Seamless integration of components
  • Cybersecurity/Ethical Hacking โ€“ Focused on security tools and commands
  • Prompt Engineering โ€“ Natural language command input
  • Real-Time Execution โ€“ Instant command execution
  • Safety & Control โ€“ Safe, permission-based execution

๐Ÿ” What AI-Terminal-X Does

AI-Terminal-X is powered by Googleโ€™s Gemini AI , making it exceptionally intelligent and capable of understanding natural language. This tool is specifically built for Kali Linux , but it can work on any Linux-based terminal. With just a few simple commands, AI-Terminal-X can instantly generate accurate terminal commands, run them, and explain their functions โ€” all in seconds.

โœจ Key Features

โœ… AI-generated terminal commands (Kali/Linux optimized)

โœ… No execution without permission โ€” you control everything

โœ… Dual-window : AI conversation + command execution

โœ… Command logging for easy review and reuse

โœ… Simple text input โ†’ real, working output

โœ… Powered by Gemini 1.5 Flash โ€“ Fast, Accurate, Lightweight

โœ… Made for students, pros, researchers, & enthusiasts

โœ… Command Suggester โ€” Suggests related commands based on your input

โœ… Multi-layer risk check to ensure safe execution of commands

โœ… Customizable aliases for faster command execution

โœ… Interactive Mode โ€” Review, edit, or cancel commands before execution

โœ… Real-time feedback and explanations for commands

โœ… Smart back navigation between different modes

โœ… Command history to easily reuse previous inputs

โœ… Efficient learning mode โ€” Ask questions and get beginner-friendly explanations

โœ… Future-proof : Voice command integration coming soon

โœ… Secure API integration for smooth operation

โœ… User-friendly interface for seamless interaction

Logo

๐Ÿ”ฅ Built for

Logo

๐Ÿ”ฅ Work-Flow

Logo

๐Ÿ”ง Installation

1: ๐Ÿ”น Must Install Required Modules

pip install google-generativeai python-dotenv

2: ๐Ÿ”น Clone the Repository

git clone https://github.com/mizazhaider-ceh/Ai-Terminal-X.git

cd Ai-Terminal-X

3: ๐Ÿ”น Run the Setup script & ai-terminal-x script

In terminal:

chmod +x setup.py

python setup.py

After setup.py the run.sh file will automatically create so run below command and everytime you just need to type below command in terminal ..Okay..!

./run.sh or bash run.sh

3: ๐Ÿ”น Enter your Gemini API key ~ when prompted

Done!๐Ÿš€

๐Ÿ› ๏ธ Requirements

  • Python 3.8+
  • Gemini API Key (Get it here)

๐Ÿ”„ Update Notes for Ai-Terminal-X

๐Ÿš€ Latest Improvements

  • ๐Ÿž Bug Fixes: Major installation issues resolved โ€“ now easier and smoother to install and run.
  • ๐ŸŒ Multi-language Support: Now supports multiple languages for a broader user base.
  • โœจMore Enhanced Prompt
  • ๐Ÿ“ Text Input Upgrade: Fixed the text overlapping issue โ€“ now supports multi-line input seamlessly.
  • ๐Ÿ’ก Usability Enhancements: Improved interface for a more user-friendly experience.

๐Ÿ” Safety and Permissions

Before running any command, AI-Terminal-X checks if the command could potentially be harmful to your system. Here's how it works:

  1. Risk Check : The system checks whether the command might be dangerous.
  2. Permission Check : The tool will prompt you to confirm execution if needed, ensuring you approve the actions before anything is run.
  3. Security Safeguards : Built-in security mechanisms prevent harmful commands from being executed.

๐Ÿ› ๏ธ Troubleshooting

If you face issues while using AI-Terminal-X , try the following:

  1. "Command not found" error : Make sure your Gemini API key is set correctly in the .env file.
  2. API key-related errors : Double-check that you've copied your API key properly and that it's active.

For any other issues, feel free to open an issue in the GitHub repository.

๐Ÿ“š Example Usage

Input Generated Command
Show my public IP address curl ifconfig.me
List all files in the current directory ls
Go to the home directory cd ~
Check disk usage df -h
Display running processes ps aux
Open a file with Nano editor nano filename.txt

๐Ÿ‘จโ€๐Ÿ’ป Author

Muhammad Izaz Haider

๐ŸŒŸ Support the Project

If you like AI-Terminal-X , please โญ star the repo and share it with your friends!

Your support helps open-source thrive! ๐Ÿš€

๐Ÿš€ Let AI-Terminal-X Revolutionize Your Terminal Experience!

"Speak simple. Work smart."

"Let AI turn your thoughts into commands!" โœจ

mizazhaider-ceh/Ai-Terminal-X | GitHunt