Skip to content

KevCui/chatgpt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

chatgpt-cli

Chat with Chatgpt in terminal

Table of Contents

Dependency

Installation

npm i playwright-extra puppeteer-extra-plugin-stealth
npx playwright install chromium

How to use

  • Basic usage:
$ ./chatgpt.js "enter any text here"
  • Turn on web search feature:
$ ./chatgpt.js "enter any text here" true
  • Run in headless mode
$ xvfb-run ./chatgpt.js "enter any text here"

Want an alternative?

Check out copilot-cli and DuckAI-cli

Note

This script is designed to process one question and answer at a time, delivering in plain text format. It is optimized for command-line use, enabling users to rapidly retrieve answers directly in the terminal, without having to engage in a conversation with Chatgpt.


Buy Me A Coffee