AIHelp is a command-line tool that uses the GroqCloud API to interpret and execute natural language commands.
Install pipx (if not already installed):
sudo apt install pipx
pipx ensurepath
After running these commands, restart your terminal or run source ~/.bashrc
to update your PATH.
Clone this repository:
git clone https://github.com/mihir-s-05/aihelp.git
cd aihelp
Install AIHelp using pipx:
pipx install .
Test the Installation: Open a new terminal window and test the command:
aihelp --help
Set up your GroqCloud API key as an environment variable:
Open your shell configuration file (e.g., ~/.bashrc
, ~/.zshrc
):
nano ~/.bashrc
Add the following line at the end of the file:
export GROQ_API_KEY=your_api_key_here
Save the file and reload your shell configuration:
source ~/.bashrc
Use the tool with a natural language command:
aihelp "your natural language command here"
Specify a different Groq model for a single command:
aihelp "your natural language command here" -m model_name
Show the current default model:
aihelp --show-model
Set a new default model:
aihelp --set-model model_name
Reset to the original default model:
aihelp --reset-model
Default usage:
aihelp "copy data.txt from /home/user/documents to /home/user/backup"
With a specific model (one-time use):
aihelp "copy data.txt from /home/user/documents to /home/user/backup" -m llama-3.1-8b-instant
Set a new default model:
aihelp --set-model llama-3.1-8b-instant
Show current default model:
aihelp --show-model
Reset to original default model:
aihelp --reset-model
--set-model
or temporarily using the -m
flag.~/.aihelp_config.json
.To uninstall AIHelp, use the following command:
pipx uninstall aihelp
This project is licensed under the MIT License. See the LICENSE
file for details.
Contributions are welcome! Please open an issue or submit a pull request with your improvements.