Skip to main content

A monitoring tool for LLM API calls

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Cylestio Monitor

A lightweight, drop-in security and performance monitoring SDK for AI agents, Multi-Component Programs (MCPs), and LLM API calls.

PyPI version CI Security Documentation

For Agent Developers

Why Cylestio Monitor?

Cylestio Monitor provides essential oversight for AI agents by intercepting MCP and LLM API calls, logging critical parameters, and detecting security threats. Our monitoring solution helps you:

  • Secure your AI systems by detecting and blocking dangerous prompts
  • Track performance metrics with detailed call duration and response time data
  • Meet compliance requirements with structured, audit-ready logging
  • Debug interactions with comprehensive event data

All with minimal configuration and zero code changes to your existing agents.

Installation

pip install cylestio-monitor

Quick Start

from cylestio_monitor import enable_monitoring
from anthropic import Anthropic

# Create your LLM client
client = Anthropic()

# Enable monitoring
enable_monitoring(
    agent_id="my_agent",
    llm_client=client
)

# Use your client as normal
response = client.messages.create(
    model="claude-3-sonnet-20240229",
    max_tokens=1000,
    messages=[{"role": "user", "content": "Hello, Claude!"}]
)

Key Features

  • Zero-configuration setup: Import and enable with just two lines of code
  • Automatic framework detection: Works with MCP and popular LLM clients
  • Security monitoring: Detects and blocks dangerous prompts
  • Performance tracking: Monitors call durations and response times
  • Structured logging: Events stored in SQLite with optional JSON output
  • Dashboard integration: View your monitoring data with our open source visualization dashboard

Visualization Dashboard

For an interactive visualization of your monitoring data, check out our separate Cylestio Dashboard repository. This open source dashboard provides real-time metrics, alert views, and detailed event analysis.

For Contributors

We welcome contributions to the Cylestio Monitor project! Whether you're fixing bugs, improving documentation, or adding new features, your help is appreciated.

Development Setup

  1. Ensure you have Python 3.11+ installed

  2. Clone the repository:

    git clone https://github.com/cylestio/cylestio-monitor.git
    cd cylestio-monitor
    
  3. Create and activate virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  4. Install dependencies:

    pip install -e ".[dev,test,security]"
    
  5. Install pre-commit hooks:

    pre-commit install
    pre-commit install --hook-type pre-push
    

Contribution Guidelines

  • Code Style: We use Black, isort, and ruff for code formatting
  • Testing: All new features and bug fixes must include tests
  • Documentation: Update relevant docs for any changes you make
  • Security: Follow security best practices in all code
  • Commit Messages: Use conventional commits format (type(scope): message)

See CONTRIBUTING.md for detailed contribution guidelines.

Documentation

For full documentation, visit cylestio.github.io/cylestio-monitor.

License

MIT

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

cylestio_monitor-0.1.2.tar.gz (137.8 kB view details)

Uploaded Source

Built Distribution

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

cylestio_monitor-0.1.2-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file cylestio_monitor-0.1.2.tar.gz.

File metadata

  • Download URL: cylestio_monitor-0.1.2.tar.gz
  • Upload date:
  • Size: 137.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for cylestio_monitor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f383aa47e416e3148141c2def2c773c0b609825f0c7a7c22db7baa6d56547de2
MD5 b5d785945336b8f142104cffbbf332f8
BLAKE2b-256 c8a54b5437bf7fc183d57aa31ca4a3f05fbc68590ca4cc58a99f46ca7c921267

See more details on using hashes here.

File details

Details for the file cylestio_monitor-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cylestio_monitor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b95c89b39ab1aae7d6d0a10170ce184cb5f6e54ab05c7711e568d7d72676aaa2
MD5 dce9e473a41126bd7c1ec09ba0077e87
BLAKE2b-256 43ba0a79ea45d22da0c869993854eccf36d7092e3afae1619f1f290aec121c98

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