ai_suggest
is a command line utility that provides command suggestions based on user queries. Through our API https://suggest.includes-ai.com/includes_suggest, this project allows users to request suggestions Linux commands from their terminal quickly and easily.
- Suggests commands based on user queries.
- Easy installation via an
install.sh
script.
- Python 3.6 or higher
- Python
requests
module
Clone the GitHub repository or download the client.py
, install.sh
, and requirements.txt
files manually.
git clone https://github.com/Mister-iks/ai_suggest_deployment.git
cd ai_suggest_deployment
NB: The API key included in the client.py
file is intentionally left accessible to allow public testing. In a real-world scenario, each user should have their own API key. For the final version, the API key will be moved to a .env
file for security reasons.
The install.sh
script installs the required Python packages, copies the client.py
script to the /usr/local/bin
directory, and creates an executable. Ensure that the shebang line in client.py
matches your Python interpreter location (usually #!/usr/bin/env python3
).
sudo ./install.sh
- Shebang Line: Make sure that the shebang line at the top of the
client.py
file points to the correct Python interpreter. If it is different from#!/usr/bin/env python3
, adjust it accordingly. Theinstall.sh
script assumes that the shebang line is correct.
After installation, you can use ai_suggest
from any directory in your terminal.
To get a command suggestion, use:
ai_suggest "list files in the current directory"
Contributions are welcome! If you want to contribute to the project, please submit pull requests or report issues via the GitHub repository.
Thank you for using ai_suggest
!
If you have any questions or suggestions, feel free to open an issue on GitHub or contact me on Linkedin.