Works suprisingly well!
pip install openai && export OPENAI_API_KEY=yourkey
python3 chatgpt-terminal.py "make a dir test"