Skip to main content

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.

llmtop Screenshot

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)

  1. Set your OpenAI API key:
    export OPENAI_API_KEY='your-api-key-here'
    
  2. Run with OpenAI:
    llmtop --use-openai
    

Ollama (Default)

  1. Install Ollama from ollama.ai
  2. Start the Ollama service
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmtop-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmtop-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

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

Hashes for llmtop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60dce2e477044c0cbf3170fe4a5cc9e2b3aa7ee9f8799fecbc800875cb44588b
MD5 2eb2f9ea20ac1dee15280c926552be54
BLAKE2b-256 6a2a0c4791b02c41a12099a1709af3b4af3ba9593e7e1a7034f60219ab5fba94

See more details on using hashes here.

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

Hashes for llmtop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c93c6bcfe64004aec7739e9ceea8650a204598c314d4dcdee7c654de26dcff0b
MD5 fcf0d180b57d91ae9adcbbf6555a7b92
BLAKE2b-256 3e215b26887d84794d3855f96f8eb7ce03bfcf7632d98dc2c174a33362bab886

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page