Uses OpenAI's GPT API to get a helpful assistant within your terminal. Genie can suggest code executions that will be directly run after confirmation from the user. Forget the command to mount a drive? Simply ask code-genie-cli to do it for you!
ezgif.com-gif-maker.3.online-video-cutter.com.mp4
This project now only has python related depenencies and should work on both Windows and Unix. However everything is tested on Unix so I may be wrong. Windows users will need to install manually as I haven't yet made a windows installation script.
Do keep in mind that you'll need your OpenAI API key for this software to work (https://platform.openai.com/). You'll need to input the key when run for the first time, the key is stored in your home directory under .code-genie-cli/openai_key.txt
.
- Clone project to local machine:
git clone [email protected]:Shardj/code-genie-cli.git
- Run
cd code-genie-cli/ && ./install.sh
and follow the steps
-
Clone the project to your local machine:
git clone [email protected]:Shardj/code-genie-cli.git
-
Install Python 3 and pip (Python package installer) if not already installed. On some versions of Linux you'll need pip3 and on others you'll want pipx.
-
Open a terminal (Unix) or command prompt (Windows),
cd
into the project directory, and runpip install -e .
, or of course using pip3 or pipx there instead. -
This will have installed dependencies and created a script named
code-genie-cli
in your Pythonbin/
directory, orscripts/
for Windows. -
Find the
bin/
by runningpython -m site --user-base
. Check to see if thebin/
is in yourPATH
environment variable. If not add this to your~/.bashrc
or~/.bash_profile
:export PATH="/path/to/your/python/bin:$PATH"
, and then restart your shell.
On Linux or macOS, open a terminal and simply run code-genie-cli
.