lunary
Python SDK for Lunary, the open-source platform where GenAI teams manage and improve LLM chatbots.
Decision gist · record as of 2026-08-14
Yes, if you are building production AI applications and need centralized monitoring of LLM interactions. The low install friction, active maintenance, and support for multiple LLM providers make it a practical choice. However, resolve the unclear license status before use in commercial or compliance-sensitive contexts, and verify that the data-collection model aligns with your privacy and security requirements.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and a Lunary project ID obtained by registering at lunary.ai.
- Low install friction with a pure-Python wheel and stable maintenance status.
- The package has 10 runtime dependencies including widely-used libraries like aiohttp, requests, and pydantic, all of which are standard in the Python ecosystem.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before adopting this in a commercial or copyleft-sensitive project, verify the actual license terms directly with the project repository.
last release 2026-04-08 (128 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 160,369 downloads/mo, #10,663 on PyPI
Alternatives
Verify before relying
pip install lunary
import lunary
lunary.monitor(client)
# Subsequent LLM calls are now monitored and logged- Which LLM providers are supported beyond those shown in the description excerpt.
- What data is sent to Lunary's servers and whether it includes prompt/response content or only metadata.
- Performance overhead of monitoring on production LLM calls, especially with streaming.
- Whether the package works equally with all supported providers or has known limitations.
What it is and what it does
Lunary is a monitoring and analytics SDK for Python applications built around large language models and AI agents. It acts as middleware that intercepts calls to LLM providers and custom agent frameworks, capturing interaction data and sending it to the Lunary platform for analysis and debugging. The SDK is designed to work with any LLM model and supports both standard and streaming interactions.
The package integrates into existing code through a simple monitor() call on a client object, after which it transparently logs all subsequent LLM interactions. It depends on common libraries like aiohttp, requests, pydantic, and langchain-community, making it straightforward to add to projects already using those tools. The SDK requires Python 3.10 or later and a Lunary account to send data to.
Use it for
- Monitor and debug LLM application behavior by capturing all model calls and responses in a centralized dashboard.
- Track performance metrics and usage patterns across multiple LLM providers in a single interface.
- Integrate observability into langchain-community-based agents to log and analyze multi-step reasoning.
- Collect analytics on AI chatbot interactions to identify failure modes and improve prompt engineering.
- Stream LLM responses while simultaneously logging them for later analysis and audit trails.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building production AI applications and need centralized monitoring of LLM interactions.
The low install friction, active maintenance, and support for multiple LLM providers make it a practical choice. However, resolve the unclear license status before use in commercial or compliance-sensitive contexts, and verify that the data-collection model aligns with your privacy and security requirements.
Install
lunary on PyPI
Before you install
Low install friction with a pure-Python wheel and stable maintenance status. The package has 10 runtime dependencies including widely-used libraries like aiohttp, requests, and pydantic, all of which are standard in the Python ecosystem.
Requires Python 3.10 or later and a Lunary project ID obtained by registering at lunary.ai.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before adopting this in a commercial or copyleft-sensitive project, verify the actual license terms directly with the project repository.
Quickstart
pip install lunary
import lunary
lunary.monitor(client)
# Subsequent LLM calls are now monitored and logged
Verify before relying
- Which LLM providers are supported beyond those shown in the description excerpt.
- What data is sent to Lunary's servers and whether it includes prompt/response content or only metadata.
- Performance overhead of monitoring on production LLM calls, especially with streaming.
- Whether the package works equally with all supported providers or has known limitations.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release <4.0.0,>=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagesaiohttpchevronjsonpicklelangchain-communitypackagingpydanticpyhumpsrequestssetuptoolstenacity |
| Maintenance | Actively maintained 128 days since the last release |
| First released | |
| Downloads | 160,369 / month, #10,663 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: lunary-1.4.41-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llm monitoring sdk”
- lunaryLunary is a Python SDK that monitors and logs interactions with LLM…
- langwatchLangWatch is a Python SDK for instrumenting and monitoring LLM…
- langfuseLangfuse is a Python SDK for observability, tracing, and evaluation…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also langchain · langchain-community · promptlayer · uipath-langchain-client · litellm-enterprise · agentops · litellm · llama-index-llms-google-genai · langchain-cli · mlflow-tracing