Skip to main content

No project description provided

Project description

Simple-ChatGPT-CLI

I believe many others have implemented more sophisticated ChatGPT CLI tools. But this is a super simple one without fancy features that I created with Python for my use case. My motivation was that using OpenAI API could be much cheaper than subscribing to ChatGPT Plus, and is claimed to be more privacy friendly by some legal experts.

I'm not planning to add fancy features unless I start to feel some feature would be a big plus to my productivity in my use case. But everyone is welcome to use this basic version or fork it to add their features.

Installation

pip install simple-chatgpt-cli

Usage

You can run the program with

chatgpt

You must either set/save the key following the CLI prompts (recommended) or set an environment variable OPENAI_API_KEY.

screenshot

Tips

  • Use #multiline to enter multiline mode. This is useful when you want to enter messages with line breaks.

  • Use #startover to start a new conversation whenever you switch to a new topic and the bot doesn't need the previous context anymore. This helps reduce your OpenAI bill. The program will remind you of this if you come back to an idle conversation after more than 5 minutes.

Development

This project was initialized by my Python project boilerplate. So you will need all the prerequisites of that project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_chatgpt_cli-0.1.8.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_chatgpt_cli-0.1.8-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_chatgpt_cli-0.1.8.tar.gz.

File metadata

  • Download URL: simple_chatgpt_cli-0.1.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for simple_chatgpt_cli-0.1.8.tar.gz
Algorithm Hash digest
SHA256 6196533d992de1bc4d7acec7b4da00abff74ff0b75529fe82d544fc29af01615
MD5 2a8e5a137f24ccf6fe1135393f6466d3
BLAKE2b-256 6f2f7050c47926f364ed0fdeea2a496ec9944ccc6711436824efe277db0e1120

See more details on using hashes here.

File details

Details for the file simple_chatgpt_cli-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: simple_chatgpt_cli-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for simple_chatgpt_cli-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9bf696970dccd53348962fd1d0b8f007cd489e60e4fcf74a9c9b523af4485a5a
MD5 70f56f49336ebd77b50535a93c923c98
BLAKE2b-256 f4e80d8b94c18c1246d65fff9516bd829c38a5a76eb468dae8842213281d4a2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page