ChatGPT as a bash command

33 sec read

I recently discovered that ChatGPT’s web chat now uses the faster (but dumber) Turbo model, so I’ve been looking at ways to use the OpenAI API in my daily processes. I pretty much live with a command prompt open, so why not connect it to ChatGPT?

Ends up, it’s insanely easy. Just add this to your .bash_profile and make sure to swap in your OpenAI API token:

Now it’s this easy to ask ChatGPT:

Leave a Reply

Your email address will not be published. Required fields are marked *