Skip to content

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

License

Notifications You must be signed in to change notification settings

TohidEq/py-chat-ai-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages