Skip to content

DevMohammad-SA/cli-cohere-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Terminal AI Assistant – Powered by Cohere

A fast, simple, and dev-friendly CLI chatbot powered by Cohere's API. Built for developers, sysadmins, and IT pros who love their terminal.


🚀 Features

  • 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

📦 Requirements

pip install cohere python-dotenv

⚙️ Setup

  1. Clone the repo:
git clone https://github.com/DevMohammad-SA/cli-cohere-chatbot.git
cd cli-cohere-chatbot
  1. Create a .env file:
API_KEY=your_cohere_api_key_here
  1. Run it:
python cohere_chat.py

💬 Usage

🧠 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>`

👨‍💻 Developer

Made with ❤️ by Mohammad Albuainain
X: @DevMohammad_SA


🛡️ License

MIT License. Use it, fork it, mod it.


📌 Notes

  • This is a minimalist wrapper and a fun side project. Not production-hardened.
  • You can tweak the system_message or add more logic to filter/format replies.

Pull requests are welcome. Drop a star if you liked it 🌟

About

A minimal, terminal-based AI assistant powered by Cohere. Built for developers, sysadmins, and power users who prefer the command line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages