Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.34 KB

README.md

File metadata and controls

65 lines (40 loc) · 1.34 KB

Chat with AI in Terminal

  • Chat with AI models in terminal (openrouter.ai api)

demo image 1

demo image 2

before Usage(install dependencies)

You need to install these before running the app:

pip install rich dotenv keyboard requests

Usage

Step.0 Go to anywhere you like to clone project

  • git clone https://github.com/TohidEq/py-chat-ai-cli && cd py-chat-ai-cli

Step.1 Create API_KEY

Go to openrouter.ai and create a new API_KEY and copy it to your clipboard.

Step.2 Create .env file

Create a .env file in py-chat-ai-cli folder and put your API_KEY in it. like this:

API_KEY="sk-or-v1-f4b*****************************************************e8d92499"

Step.3 Make app excutable

Run chmod +x ./chat-ai.py in terminal.

Step.4 Run app

Type this to run app:

sudo ./chat-ai.py

Type this to run app Without Markdown Styles:

sudo ./chat-ai.py markdown=off

Got Error?

  • try install dependencies with sudo:
sudo pip install rich dotenv keyboard requests