Skip to content

joaoreberti/chatgpt-cli

Repository files navigation

If you enjoy my work and want to support me, you can buy me a coffee!

Buy me a coffee

ChatGPT- Command Line Interface

Introduction

This project started as a way to get to know ChatGPT's API. As I worked on it I realized it would be great to be able to take advantage of the API without leaving the home -> the terminal that is.

To achieve a somewhat similar experience to the web based one, I used commander and inquirer to bootstrap a CLI programme.

Next steps would involve adding history, switching between threads and even searching for strings/keywords within locally saved conversations.

Setup

Currently all you need is: node installed chatGPT api key in .env (see .env.example),

Features

  • Save chats/threads,
  • Allow to switch between threads,
  • Allow to search for a string within all chats,
  • (...)