ChatGPT Windows Command Line

Sleep
1 min readFeb 4, 2023

--

Today I am going to show you how to install and run ChatGPT on your windows command prompt. The following is a step by step guide to installing and running this.

  1. Navigate your way over to this link to download the latest version of node js on your Windows operating system.
  2. After installing node.js on your system go to this link right here and generate yourself an api key for chatgpt.
  3. Once installed and api key is created open command prompt and type the following command npm install chatgpt.
  4. After it is installed type in your command prompt [ ai auth “<apikey>” ]
  5. Now you can use chatgpt in the command prompt by typing ai ask “anything goes here” once you authenticate yourself with the api key.
  6. Here is the npm package https://www.npmjs.com/package/chatgpt and this is the github repo for the package for npm runkit https://github.com/transitive-bullshit/chatgpt-api.
    Enjoy your new ChatGPT on your Windows CMD it should look something like this https://i.imgur.com/pf1meUb.jpg

--

--

Responses (1)