https://github.com/barthr/commandpilot
Commandpilot is an assistant which uses ChatGPT to aid in constructing commands for bash
https://github.com/barthr/commandpilot
Last synced: about 2 months ago
JSON representation
Commandpilot is an assistant which uses ChatGPT to aid in constructing commands for bash
- Host: GitHub
- URL: https://github.com/barthr/commandpilot
- Owner: barthr
- Created: 2023-03-12T10:44:51.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T11:04:59.000Z (about 3 years ago)
- Last Synced: 2025-11-17T10:02:45.706Z (4 months ago)
- Language: Shell
- Size: 50.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cli-apps-in-a-csv - Commandpilot - An assistant which uses ChatGPT to aid in constructing commands for bash. (<a name="copilot"></a>Co-pilot)
- awesome-cli-apps - Commandpilot - An assistant which uses ChatGPT to aid in constructing commands for bash. (<a name="copilot"></a>Co-pilot)
README
## Commandpilot
**NOTE: This is a experimental script and can contain bugs or issues, no command is executed without the users consent**
> Assistant to help with those pesky commands on how to do things. For example, how do you rsync files with progress from one computer to another
### Requirements:
- `OPENAI_API_KEY` environment variable
- Installation of jq (https://stedolan.github.io/jq/)
- Installation of gum (https://github.com/charmbracelet/gum)
### Installation
```bash
COMMAND_PILOT_PATH=~/.local/bin/commandpilot # or any path in your $PATH you would like, I like to use ~/.local/bin for my own "scripts" and "binaries"
# Download the script
wget https://raw.githubusercontent.com/barthr/commandpilot/master/command-pilot.sh -O $COMMAND_PILOT_PATH
# Set the correct permissions
chmod +x $COMMAND_PILOT_PATH
```
Run it!
```bash
➜ commandpilot
> What command would you like help with?
```