https://github.com/rishabkumar7/python-chatgpt-cli
A simple wrapper for ChatGPT, allows to use ChatGPT in your CLI.
https://github.com/rishabkumar7/python-chatgpt-cli
chatgpt chatgpt-api cli cli-app python python3
Last synced: 7 months ago
JSON representation
A simple wrapper for ChatGPT, allows to use ChatGPT in your CLI.
- Host: GitHub
- URL: https://github.com/rishabkumar7/python-chatgpt-cli
- Owner: rishabkumar7
- License: mit
- Created: 2023-01-13T19:50:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T19:13:54.000Z (almost 3 years ago)
- Last Synced: 2025-05-02T16:54:58.795Z (10 months ago)
- Topics: chatgpt, chatgpt-api, cli, cli-app, python, python3
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# chatgpt_cli
A simple wrapper for ChatGPT, allows to use [OPENAI ChatGPT](https://openai.com/blog/chatgpt/) in your CLI.
### Requirements
This package requires `python 3`. And a human to use it.
### Installing
To install this CLI tool you can run the below command
``` python
pip install -i https://test.pypi.org/simple/ python-chatgpt-cli
```
The above commands would install the package globally and `chatgpt_cli` will be available on your system.
### How to use
Make sure to get an API key for OpenAI, you can get that from - [https://openai.com/api](https://openai.com/api/)
Set an environment variable `OPENAI_API_KEY = `
You are good to use the `chatgpt_cli` command:
``` bash
chatgpt_cli
Ask ChatGPT 🤖
Who is Ronaldo?
Ronaldo is a Portuguese professional soccer player who currently plays for the Italian Serie A club Juventus.
He is widely considered one of the greatest soccer players of all time. Ronaldo has won five Ballon dOr awards,
the most for a European player, and is the first player to win four European Golden Shoes. He has also won 29
trophies in his career, including five league titles, four UEFA Champions League titles, and one UEFA European
Championship.
```
### Feedback
Please feel free to leave feedback in issues/PRs.
### LICENSE
Licensed under [MIT License](/LICENSE).