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:

How to use Cloudflare Tunnels to Connect To Your…

NOTE: I no longer use Cloudflare Tunnels for my RDS connection. They have great potential, but are the Cloudflare docs/tools/logging/etc need to mature before...
Josh
7 min read

Leave a Reply

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