https://github.com/kevcui/chatgpt-cli
💬 Chat with Chatgpt in terminal
https://github.com/kevcui/chatgpt-cli
chatgpt chatgpt-app chatgpt-cli cli command-line command-line-tool playwright playwright-javascript
Last synced: 2 months ago
JSON representation
💬 Chat with Chatgpt in terminal
- Host: GitHub
- URL: https://github.com/kevcui/chatgpt-cli
- Owner: KevCui
- Created: 2024-05-19T19:51:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T19:08:50.000Z (4 months ago)
- Last Synced: 2025-05-06T23:18:30.198Z (2 months ago)
- Topics: chatgpt, chatgpt-app, chatgpt-cli, cli, command-line, command-line-tool, playwright, playwright-javascript
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatgpt-cli
> Chat with [Chatgpt](https://chatgpt.com/) in terminal
# Table of Contents
- [Dependency](#dependency)
- [Installation](#installation)
- [How to use](#how-to-use)
- [Want an alternative?](#want-an-alternative)
- [Note](#note)## Dependency
- [playwright-extra](https://www.npmjs.com/package/playwright-extra)
- [playwright-extra-plugin-stealth](https://www.npmjs.com/package/puppeteer-extra-plugin-stealth)## Installation
```bash
npm i playwright-extra puppeteer-extra-plugin-stealth
npx playwright install chromium
```## How to use
- Basic usage:
```bash
$ ./chatgpt.js "enter any text here"
```- Turn on web search feature:
```bash
$ ./chatgpt.js "enter any text here" true
```- Run in headless mode
```bash
$ xvfb-run ./chatgpt.js "enter any text here"
```## Want an alternative?
Check out [copilot-cli](https://github.com/KevCui/copilot-cli) and [DuckAI-cli](https://github.com/KevCui/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.
---