GitXplorerGitXplorer
Y

openai-cli-client

public
40 stars
8 forks
0 issues

Commits

List of commits on branch main.
Unverified
cd224ff33fd9f4ed3cb61aa75c73535a17d06e1c

Prompt for token in case configuration file does not exist

YYisus7u7 committed 2 years ago
Verified
900be30dbba42fabd1fd65aa243112d495b93432

Update README.md

YYisus7u7 committed 2 years ago
Verified
1730168a33e58dec5bc7e5f23f9410ed14fcf327

Update README.md

YYisus7u7 committed 2 years ago
Verified
8cdab0e497da5e312a0203fcf8609811dd155abb

Update README.md

YYisus7u7 committed 2 years ago
Verified
043b11c949812411bc6bc787868b731aa6241498

Update README.md

YYisus7u7 committed 2 years ago
Verified
503ba43a83677e032d895da55c21fad8edcad544

Update README.md

YYisus7u7 committed 2 years ago

README

The README file for this repository.

openai-cli-client: A best OpenAI terminal client, writen in python

Supported systems

  • GNU/Linux
  • Unix systems (Like MacOS or BSD)
  • Android

Preview

image

Features

  • Remember messages
  • Interactive chat
  • Syntactic highlighting (basic)

Installation

In Linux OS:

Needs:

  • python-openai
  • python-pygments
  • python-pyxdg

Note: install on Manjaro or Archlinux using AUR helper, example:

paru -S python-openai python-pygments python-pyxdg

On another distro use pip for install dependencies:

pip install --local openai pygments pyxdg

and run in the project dir:

sudo make install

In Android (Termux)

pkg install python clang build-essential python-pip git
pip install openai pygments pyxdg
git clone --depth 1 https://github.com/Yisus7u7/openai-cli-client; cd openai-cli-client; mkdir ~/.config
make PREFIX=$PREFIX OPTDIR=$PREFIX/opt all

Run chat

use openai-cli-client command for open chat

OpenAI Token

You need OpenAI token for works

Add your token by editing ~/.config/openai_client.conf If the file does not exist, the first time you run the program will be created.

example

[openai]
token = YOU_TOKEN_HERE

Contribute

  • You can help by sending changes and improvements to the repository
  • Share
  • Leave your star :3

Thank you for using!