top of page

Shell Genie | ChatGPT

Shell Genie is a new command line tool that can be used to ask how to perform various tasks, and it gives you the shell command you need. To generate the commands, it uses OpenAI's GPT-3 or Free Genie, a free-to-use backend provided by the Shell Genie developer.


Once Shell Genie shows a command, it will ask if you want to run it. Make sure you understand the command before doing that! You could use something like Explain Shell to understand what the command does. Also, it's probably best you only use this for queries/commands that can't break things on your computer. Not all commands will work as expected, so use this at your own risk! ⚠️



Install and use Shell Genie:

sudo apt install pipx
apt install python3.11-venv
python -m venv .venv

source .venv/bin/activate

pip install shell-genie

Shell Genie should now be installed in ~/.local. In case ~/.local/bin is not available in your PATH, add it.

pipx can do this automatically for you – run pipx ensurepath, then open a new terminal window to use the new PATH.


To use Shell Genie, you'll need to configure it.

shell-genie init

Enter the website platform.openai.com/account/api-keys and click the [ + Create new secret key ] button to generate the API.


Inform the generated API in the terminal and press enter to proceed

Answer y to confirm the version of the Linux system you are using and press enter


The configuration is successful!


Enter the command below followed by the --help parameter to get more details about the shell-genie tool:

shell-genie ask --help

Example:

shell-genie ask "apt update" --explain



81 views0 comments

Recent Posts

See All

Raspberry Pi-hole | Block ADS

Display ads are a huge annoyance that everyone could do without, but blocking them has always been harder to do on mobile devices than on desktops. Pi-hole solves this problem by turning your Raspberr

TAILS OS - Portable anonymity

Tails (The Amnesic Incognito Live System) is a computer operating system made with Linux and based on Debian. It's designed to be as anonymous as possible, preventing all manner of tracking and survei

BusyBox

BusyBox is a collection of Linux system utilities that are combined into a single executable. It is designed to be run on devices with limited resources such as routers, embedded systems, and other si

bottom of page