https://github.com/jaypei/chatgpt-cli
A ChatGPT CLI tool based on the OpenAI API, for hardcore terminal users.
https://github.com/jaypei/chatgpt-cli
chatgpt cli openai
Last synced: 10 months ago
JSON representation
A ChatGPT CLI tool based on the OpenAI API, for hardcore terminal users.
- Host: GitHub
- URL: https://github.com/jaypei/chatgpt-cli
- Owner: jaypei
- License: mit
- Created: 2023-03-05T14:33:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T15:42:39.000Z (over 3 years ago)
- Last Synced: 2025-04-13T15:08:15.655Z (about 1 year ago)
- Topics: chatgpt, cli, openai
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatgpt-cli
A ChatGPT CLI tool based on the OpenAI API, for hardcore terminal users.
[](https://github.com/jaypei/chatgpt-cli/actions/workflows/check.yml)
## Demo
[](https://asciinema.org/a/568562?autoplay=1)
## Usage
You need to first open [HERE](https://beta.openai.com/account/api-keys) to get a valid API Key.
```sh
# Install
pip install git+https://github.com/jaypei/chatgpt-cli
# Ask directly without keeping any context.
chatgpt-cli ask
# Start a chat session, so that we can have a conversation with context.
chatgpt-cli chat
# Have fun!
```