hey-chatgpt-cli
hey-chatgpt-cli copied to clipboard
Hey is a powerful chatbot for the command line CLI that uses ChatGPT to generate commands based on natural language input
Hey - ChatGPT CLI assistant for the terminal
Hey is a powerful chatbot for the command line that uses ChatGPT to generate commands based on natural language input.
Features 🚀
- 💬 Run ChatGPT via CLI
- ❓ Question to command
- 🎬 Response streaming
- 🔄 Lets you run multiple commands (always asks before and shows you the command)
- 📤 Optionally send output of command back to chatgpt for explanation
- ⚠ Tags it as dangerous if needed
- ⬆️ Lets you go arrow up for command history
- 🔍 Cmd+r to search through command history
- 💬 Chat mode, just acts more like a normal chat gpt session
- 🌈 Syntax highlighting of code
Command mode
This uses a prompt with your os and shell included. It can send commands for you to run (or skip). It will show when a command is concidered dangerous, the default will be to skip the command.
https://user-images.githubusercontent.com/168357/224721506-abbb4887-1d17-497c-9148-c9e592e60f22.mp4
Examples
hey can you convert all the files in downloads/HEIC with .HEIC files to jpeg and make them square 512x512
hey an you create a password with 20 chars
I have a files video.mp4 in my downloads folder, can you convert it to a mkv format 1080p
Can you convert this mp4 to gif for me: /Users/x/Desktop/video.mp4. Make it as small as po ssible while keep the colors intact. Also the max frame count is 500. Make the resolution at width 1280
Help
Lang mode:
The lang mode can help with programming questions in specific language.
https://user-images.githubusercontent.com/168357/224721527-0718dea4-a332-4417-bb71-ccaf14616ad4.mp4
With syntax highlighting!
Chat
In chat mode you have a quite normal chatgpt experience in your command line, with the option to save parts to a file.
https://user-images.githubusercontent.com/168357/224721549-52e45014-b7d1-4ee7-a368-d120baedb2ca.mp4
Installation
To install Hey via pipx (you might need to install pipx first https://pypa.github.io/pipx/), you can use the following command:
pipx install hey-gpt
Once Hey is installed, you can run it from anywhere on your system by typing hey in your terminal.
Requirements
- Python
- Pipx
Usage
hey
To use Hey, simply type in your question or command and Hey will start a chat session and generate commands. It always asks to confirm before execution.
(More will follow...)
hey (command)
This will immediatly question chat gpt with your question and show a response. The sessions will remain active until you type bye or exit.
License
This project is licensed under the MIT License - see the LICENSE file for details.