MCPcopy Index your code
hub / github.com/JesusChapman/openai-cli-client

github.com/JesusChapman/openai-cli-client @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4 symbols 18 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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!

Core symbols most depended-on inside this repo

remember
called by 2
openai_chat.py
respond
called by 1
openai_chat.py

Shape

Method 3
Class 1

Languages

Python100%

Modules by API surface

openai_chat.py4 symbols

For agents

$ claude mcp add openai-cli-client \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact