A local AI chatbot powered by Ollama that can tell you about your system. Everything runs locally on your machine - no data is sent to the cloud.
- π¬ Chat with a local LLM (Llama 3.2)
- π» Get real-time system information:
- CPU usage and specs
- Memory (RAM) usage
- Disk space and partitions
- Network interfaces and stats
- Running processes
- Battery status (laptops)
- System uptime
- π 100% local - your data never leaves your machine
- π¨ Beautiful terminal UI with Rich
- Python 3.10+
- Ollama installed and running
-
Install Ollama (if not already installed):
brew install ollama
-
Start Ollama service:
brew services start ollama
-
Clone this repository:
git clone https://github.com/Focus-Key-Exe/my-machine-bot.git cd my-machine-bot -
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
Run the chatbot:
python chat.pyOn first run, it will automatically download the Llama 3.2 model (~2GB).
- "How much RAM am I using?"
- "What's my CPU usage right now?"
- "Show me my disk space"
- "What processes are using the most memory?"
- "What's my IP address?"
- "How long has my computer been running?"
- "Tell me about my system"
You can use a different Ollama model by editing the MODEL variable in chat.py:
MODEL = "llama3.2" # Change to any model you havePopular alternatives:
mistral- Fast and capablellama3.2:1b- Smaller/faster variantcodellama- Better for code-related questions
my-machine-bot/
βββ chat.py # Main chatbot application
βββ system_tools.py # System monitoring functions
βββ requirements.txt # Python dependencies
βββ .gitignore
βββ README.md
You can add new system tools by:
- Creating a new function in
system_tools.py - Adding it to the
TOOLSdictionary - The bot will automatically be able to use it!
MIT License - feel free to use and modify as you like!
Contributions welcome! Feel free to open issues or pull requests.