A fast, simple, and dev-friendly CLI chatbot powered by Cohere's API. Built for developers, sysadmins, and IT pros who love their terminal.
- Interactive CLI-based chat interface
- Context-aware threading using Cohere Chat
- Simple
.env-based API key management - Customizable system prompt & developer credits
- Smooth and snappy UX with a dev-friendly tone
- Python 3.8+
- Cohere API key
pip installthe following:
pip install cohere python-dotenv- Clone the repo:
git clone https://github.com/DevMohammad-SA/cli-cohere-chatbot.git
cd cli-cohere-chatbot- Create a
.envfile:
API_KEY=your_cohere_api_key_here- Run it:
python cohere_chat.py🧠 Welcome to your Terminal AI Assistant!
Type your prompts below and get instant answers powered by Cohere.
💡 Pro tips:
- Type '.quit' anytime to exit
- Designed for developers, sysadmins, and curious tinkerers
────────────────────────────────────────────
🗨️ Chat Prompt > How do I restart systemd services?
🤖 Response:
You can restart a service using: `sudo systemctl restart <service-name>`Made with ❤️ by Mohammad Albuainain
X: @DevMohammad_SA
MIT License. Use it, fork it, mod it.
- This is a minimalist wrapper and a fun side project. Not production-hardened.
- You can tweak the
system_messageor add more logic to filter/format replies.
Pull requests are welcome. Drop a star if you liked it 🌟