- Chat with AI models in terminal (openrouter.ai api)
You need to install these before running the app:
pip install rich dotenv keyboard requests
git clone https://github.com/TohidEq/py-chat-ai-cli && cd py-chat-ai-cli
Go to openrouter.ai and create a new API_KEY
and copy it to your clipboard.
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"
Run chmod +x ./chat-ai.py
in terminal.
Type this to run app:
sudo ./chat-ai.py
Type this to run app Without Markdown Styles:
sudo ./chat-ai.py markdown=off
- try install dependencies with sudo:
sudo pip install rich dotenv keyboard requests