AI-Powered Command-Line Assistant
Project description
ShellMind: AI-Powered Command-Line Assistant 🧠💻
ShellMind is an AI-powered command-line tool designed to translate natural language queries into executable shell commands for various operating systems, including Linux distributions (Ubuntu, CentOS, Debian) and macOS.
✨ Features
- Natural Language Processing: Understands plain English commands.
- Cross-Platform: Designed to work on Linux (Ubuntu, CentOS, Debian) and macOS.
- AI Integration: Leverages AI (initially OpenAI) to generate shell commands.
- Configurable: API keys and execution modes (confirm before run, or run automatically) can be configured.
- Safe Execution: Includes a confirmation step before executing potentially system-altering commands.
🛠️📦 Setup and Installation
-
Prerequisites:
- Python 3.x installed.
- An API key for an AI provider (e.g., OpenAI,DeepSeek,Grok).
-
Installation:
You can install the project using one of the following two methods:
Method 1: Using a Virtual Environment (Recommended)
- Clone the repository (once available on a version control system like Git).
git clone https://github.com/aliasadi313/ShellMind
- Navigate to the project directory.
cd shellmind
- Create a virtual environment (recommended):
python3 -m venv .venv source .venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
Method 2: Editable Install
- Clone the repository (once available on a version control system like Git).
git clone https://github.com/aliasadi313/ShellMind
- Navigate to the project directory.
cd shellmind
- then run
pip install -e .
-
Configuration: ShellMind uses a configuration file (
config.yamlin a directory like~/.config/shellmind/) to store settings. Upon first run, it might create a default one. You will need to set your AI provider's API key. This can be done via CLI commands provided by ShellMind once it's more fully developed, or by manually editing the configuration file.Example (conceptual) CLI commands for configuration:
# shellmind config set api_key YOUR_AI_API_KEY # shellmind config set base_url YOUR_BASE_URL # shellmind config set execution_mode confirm or 'auto'
🚀 Usage
Once installed and configured, you would run ShellMind from your terminal:
# Example: To list files in the current directory
shellmind query "list all files here"
# Example: To install a package (e.g., htop) on a Debian-based system
shellmind "install htop"
The tool would then translate your query into the appropriate shell command (e.g., ls -l or sudo apt install htop), ask for confirmation (if in confirm mode), and then execute it.
🤝 Contributing
We welcome and appreciate contributions from the community! Whether you're fixing bugs, adding new features, improving documentation, or just sharing ideas—your input makes this project better.
🌟 Show Your Support
If you find this project useful, consider giving it a ⭐ on GitHub and sharing it with others. Every bit helps grow the community!
Disclaimer
This is a conceptual project. Executing AI-generated commands directly on a system can be risky. Always review commands generated by any AI tool before execution, especially those requiring administrative privileges (e.g., using sudo). The developers of this conceptual tool are not responsible for any damage caused by its use or misuse.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shellmindpy-0.0.1.tar.gz.
File metadata
- Download URL: shellmindpy-0.0.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5220205592867f39ed00eeccdcac1e7cd0898ad79f2e1b7255fb1e98d15ceac8
|
|
| MD5 |
027b57a74e085085e8feff3d4f4b219b
|
|
| BLAKE2b-256 |
e10e49af8d587a9e2197683bfef26ba57731053127bd53863b1f6e9d26783d7e
|
File details
Details for the file shellmindpy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: shellmindpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad720badce9d5e90a64b3352859ef71fc40f9c947e80cbb456fa28a3d22333e4
|
|
| MD5 |
622b8951dc069893864ecf6aa0123882
|
|
| BLAKE2b-256 |
2a390e5ab78ec8399bef9e0ddd18c3d6c81eb26ef6d5046fea2c79a7cd0be11e
|