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.
Metadata
Release files for ShellMindPy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shellmindpy-0.0.1.tar.gz | 10.5 kB | Without provenance | Details for shellmindpy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shellmindpy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for shellmindpy-0.0.1-py3-none-any.whl |
Total release size: 21.7 kB
Release files / shellmindpy-0.0.1.tar.gz
| Download URL | shellmindpy-0.0.1.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5220205592867f39ed00eeccdcac1e7cd0898ad79f2e1b7255fb1e98d15ceac8
|
|
BLAKE2b-256 checksum How to use checksums |
e10e49af8d587a9e2197683bfef26ba57731053127bd53863b1f6e9d26783d7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / shellmindpy-0.0.1-py3-none-any.whl
| Download URL | shellmindpy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad720badce9d5e90a64b3352859ef71fc40f9c947e80cbb456fa28a3d22333e4
|
|
BLAKE2b-256 checksum How to use checksums |
2a390e5ab78ec8399bef9e0ddd18c3d6c81eb26ef6d5046fea2c79a7cd0be11e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for ShellMindPy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.