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.
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
-
Ensure you have Python 3.11+ installed
-
Clone the repository:
git clone https://github.com/cylestio/cylestio-monitor.git cd cylestio-monitor
-
Create and activate virtual environment:
python3 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies:
pip install -e ".[dev,test,security]"
-
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f383aa47e416e3148141c2def2c773c0b609825f0c7a7c22db7baa6d56547de2
|
|
| MD5 |
b5d785945336b8f142104cffbbf332f8
|
|
| BLAKE2b-256 |
c8a54b5437bf7fc183d57aa31ca4a3f05fbc68590ca4cc58a99f46ca7c921267
|
File details
Details for the file cylestio_monitor-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cylestio_monitor-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b95c89b39ab1aae7d6d0a10170ce184cb5f6e54ab05c7711e568d7d72676aaa2
|
|
| MD5 |
dce9e473a41126bd7c1ec09ba0077e87
|
|
| BLAKE2b-256 |
43ba0a79ea45d22da0c869993854eccf36d7092e3afae1619f1f290aec121c98
|