This Rust project creates a binary executable that allows you to prompt ChatGPT from your terminal.
chatgpt-cli Your prompt goes here
This script requires an OpenAI API key to function, located in ~/.openai-key
.
- Create a new API key for your OpenAI account at platform.openai.com
- Create a file in your home direcory called
.openai-key
and paste your API key into this file. - You're ready!