chatgpt-cli
is a quick way to run ChatGPT inside your terminal. The tool can also be used to automate prompts in ways that can't be done in the browser!
Please note that the ChatGPT API is paid and you need to set up billing in your account before you can use this tool. You can find more information about the API and pricing on OpenAI's pricing page. You also need to have NodeJS installed on your machine.
npm install -g chatgpt-api-cli
The first time you run the command, you will be prompted to enter your API key. You can create an API key in the API Keys section of your OpenAI account.
Running the tool is as simple as:
chatgpt
You can also pass in a prompt to the tool:
chatgpt "Hello, my name is"
Please use the issue tracker if you have any issues or feature requests.