LLM-powered system monitoring with real-time performance insights
Project description
llmtop
llmtop is an intelligent system monitoring tool that combines real-time system metrics with LLM-powered insights. It provides a dynamic terminal interface showing system performance metrics enhanced with AI-driven analysis.
Note: This project is currently in beta testing. Features and interfaces may change.
Features
- Real-time system metrics monitoring (CPU, Memory, Disk, Network)
- Process monitoring with resource usage
- AI-powered system analysis using either OpenAI or Ollama
- Smart alerting system for resource thresholds
- Dynamic terminal UI with auto-updating metrics
Installation
Install directly from PyPI:
pip install llmtop
LLM Backend Options
llmtop supports two LLM backends for system analysis:
OpenAI (GPT-4)
- Set your OpenAI API key:
export OPENAI_API_KEY='your-api-key-here'
- Run with OpenAI:
llmtop --use-openai
Ollama (Default)
- Install Ollama from ollama.ai
- Start the Ollama service
- Run llmtop:
llmtop
Command Line Options
llmtop [OPTIONS]
Options:
--update-frequency INTEGER Update frequency in seconds (default: 5)
--use-openai Use OpenAI instead of local model
--history-length INTEGER Number of historical data points to keep (default: 60)
--help Show this message and exit
Usage Tips
- The tool defaults to using Ollama for analysis, which is free but requires local installation
- OpenAI mode provides more detailed analysis but requires an API key and has associated costs
- Adjust update frequency based on your system's performance and monitoring needs
Known Issues
- Experimental support for Windows systems
- Update frequency might need adjustment on slower systems
- Some process names may be truncated in the display
Contributing
This project is in beta, and we welcome contributions! Please feel free to:
- Report bugs
- Suggest features
- Submit pull requests
License
MIT License - see LICENSE file for details.
Acknowledgments
Built using:
- Rich for terminal UI
- OpenAI/Ollama for LLM integration
- psutil for system metrics
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llmtop-0.1.0.tar.gz.
File metadata
- Download URL: llmtop-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60dce2e477044c0cbf3170fe4a5cc9e2b3aa7ee9f8799fecbc800875cb44588b
|
|
| MD5 |
2eb2f9ea20ac1dee15280c926552be54
|
|
| BLAKE2b-256 |
6a2a0c4791b02c41a12099a1709af3b4af3ba9593e7e1a7034f60219ab5fba94
|
File details
Details for the file llmtop-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llmtop-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c93c6bcfe64004aec7739e9ceea8650a204598c314d4dcdee7c654de26dcff0b
|
|
| MD5 |
fcf0d180b57d91ae9adcbbf6555a7b92
|
|
| BLAKE2b-256 |
3e215b26887d84794d3855f96f8eb7ce03bfcf7632d98dc2c174a33362bab886
|