Skip to main content

This is a CLI chatGPT for Linux with beautiful highlighting

Project description

ChatGPT CLI

ChatGPT CLI is a Python-based command-line interface for interacting with ChatGPT using the OpenAI API.

Features

  • 🌐 Multilingual support (English, Russian, Polish)
  • 💾 Save and load conversation history
  • ⚡ Quick-access commands (e.g. q, n, e, r)
  • 🖋️ Formatted output using rich

Installation

  1. Clone the repository
git clone https://github.com/nafanius/ChatGptCLI.git
cd chatgptcli
pip install .
# or
poetry install
  1. Set up your OpenAI API key
export GPT_API_KEY=sk_your_key

Usage

Launch the CLI with:

naf_chatgpt_cli

Available Commands

Command Description
q Quit the application
n Start a new topic
0 Reset prefix (exit translation mode)
00 Reset prefix and start a new topic
e Translate input to English
p Translate input to Polish
r Translate input to Russian
rv Translate to Russian and explain usage with examples in English
s Save conversation history to history.json
l Load conversation history from history.json
c Clear the screen
h Show help message

Dependencies

  • openai
  • rich
  • readline (usually included in Unix-based systems)

License

MIT License

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

naf_chatgpt_cli-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

naf_chatgpt_cli-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file naf_chatgpt_cli-0.1.1.tar.gz.

File metadata

  • Download URL: naf_chatgpt_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.8.0-85-generic

File hashes

Hashes for naf_chatgpt_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e4b4f5cd782898fde035d796aba1c7fd59f8942cd2ca70cccc73d21b7f3a19c
MD5 a04dc2e23fdfa45b0539f67aac46b352
BLAKE2b-256 9ff18e7c7a9dae3d906f909693fb7ead0d7f6b009caf0759fb1e6029e85c71f3

See more details on using hashes here.

File details

Details for the file naf_chatgpt_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: naf_chatgpt_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.8.0-85-generic

File hashes

Hashes for naf_chatgpt_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d3630b2c0528cf42b9e39fa1b0727410c2a62771293c714054594c5a6fec529
MD5 12a21d00136e656644ae98ab79de833b
BLAKE2b-256 5d5b6bdeb347f39425192cbdc71e0d7e84607fe54d39788a884e7f9e33821cf0

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