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.
์์ฐ์ฑ ๋ฐ ์๋ํ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originalโก AI-Terminal-X ( AI-powered Terminal Assistant for Linux )

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
โ Interactive Mode - Review, copy, or cancel commands before execution
โ Real-time feedback and explanations for commands
โ Smart back navigation between different modes
โ
Command logging: every executed command is saved to ai_cmd_x_history.log for review
โ 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

๐ฅ Work-Flow

๐ง Installation
1: ๐น Install Required Modules
pip install -r requirements.txt
(or run python setup.py, which creates a virtual environment and installs them there)
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+
tmux,xfce4-terminal(and optionallyxclipfor copy-to-clipboard) on Linux- Gemini API Key (Get it here)
๐งช Running the Tests
pip install pytest
python -m pytest tests/ -v
๐ Update Notes for Ai-Terminal-X
๐ Latest Improvements
- ๐ Bug Fixes: setup script no longer depends on
pv,run.shwarns clearly if the venv is missing, and typos in helper messages fixed.- ๐ง Newer AI model: now uses
gemini-2.0-flashfor command generation and risk checks.- ๐งช Tests added: the suggestion parser and the explain-request detection are now covered by pytest.
- ๐งน Cleaner internals: dead code removed from the tmux sender, and the script is now safely importable (
if __name__ == "__main__"guard).- ๐ Multi-language Support: understands requests in many languages and always explains in English.
๐ 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:
- Risk Check : The system checks whether the command might be dangerous.
- Permission Check : The tool will prompt you to confirm execution if needed, ensuring you approve the actions before anything is run.
- 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:
- "Command not found" error : Make sure your Gemini API key is set correctly in the
.envfile. - 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!" โจ
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ