agentops
Observability and DevTool Platform for AI Agents
What it is and what it does
AgentOps is an observability platform designed to instrument AI agent applications with minimal code overhead. It captures execution traces, LLM API calls, costs, and errors, then replays them in a web dashboard for debugging and analysis. The package provides decorators (@session, @agent, @operation, @task, @workflow) to mark code boundaries and automatically record inputs, outputs, and exceptions. It integrates natively with popular agent frameworks (CrewAI, AG2, LangGraph, Camel, Langchain, Cohere, OpenAI Agents SDK) and can be self-hosted on your own infrastructure.
The core use case is reducing the time to debug and optimize AI agents by providing step-by-step execution graphs, LLM spend tracking across foundation model providers, and session replay. It depends on OpenTelemetry for instrumentation, httpx and requests for HTTP communication, and pyyaml for configuration. The package supports Python 3.9 through 3.13 and has no known security vulnerabilities.
Use it for:
- Debug multi-step agent workflows by replaying execution traces and inspecting LLM calls step-by-step.
- Track and optimize LLM costs across different foundation model providers in production agent systems.
- Monitor CrewAI or AG2 agents with automatic telemetry by setting AGENTOPS_API_KEY and calling init().
- Instrument custom agent code with decorators to capture operation boundaries and exception handling.
- Self-host the AgentOps dashboard and API backend on your own cloud for air-gapped or compliance-sensitive deployments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AgentOps provides observability and monitoring for AI agents, capturing execution traces, LLM costs, and session replays with minimal code integration.
Yes. AgentOps is actively maintained, has no security vulnerabilities, and installs with low friction. The MIT license poses no restrictions. Install it if you are building or debugging AI agents and want production observability without writing custom instrumentation—the decorator-based API is lightweight and the framework integrations are well-established. Skip it only if you have no need for agent monitoring or prefer a fully offline debugging workflow.
Install
agentops on PyPI
pip
pip install agentopsuv
uv add agentopspoetry
poetry add agentopsInstalling agentops
Before you install
Low friction installation with a pure Python wheel. Actively maintained with recent releases; last commit 2026-06-25 and 5775 GitHub stars indicate ongoing development and community adoption.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install agentops
import agentops
agentops.init("<YOUR_API_KEY>")
# ... your agent code ...
agentops.end_session('Success')
Requires an API key from the AgentOps dashboard (https://app.agentops.ai/settings/projects) to send telemetry; local-only usage without an API key is not supported by the basic integration.
Verify before relying
- Whether the package can operate in offline mode or with a self-hosted backend without requiring the cloud API key
- Performance overhead of instrumentation on agent execution speed and latency
- Data retention and privacy policies for telemetry sent to AgentOps servers
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — aiohttp, httpx, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-instrumentation, opentelemetry-sdk, opentelemetry-semantic-conventions, ordered-set, packaging, psutil, pyyaml, requests, termcolor, wrapt |
| Maintenance | actively maintained — 350 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 299,803/month — #7,851 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agentops-0.4.21-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
clawmetryClawMetry provides a real-time observability…
permissive · top 15,000 on PyPI
mlflowMLflow is an open-source platform for managing…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents…
permissive · top 5,000 on PyPI
microsoft-agents-a365-observability-coreProvides OpenTelemetry-based telemetry,…
permissive · top 15,000 on PyPI
judgevalJudgeval is an SDK for tracing and evaluating…
permissive · top 15,000 on PyPI
openlitOpenLIT provides OpenTelemetry-native…
permissive · top 15,000 on PyPI
smolagentssmolagents lets you build and run AI agents…
unclear · top 15,000 on PyPI
opikOpik is an open-source LLM observability and…
permissive · top 5,000 on PyPI
tokencostCounts tokens and estimates USD costs for LLM…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-crewaiAdds OpenTelemetry tracing to crewAI agentic…
permissive · top 5,000 on PyPI