PyOD 3: Agentic Anomaly Detection Library

A comprehensive Python library for anomaly detection across tabular, time series, graph, text, image, and audio data, with 60+ detectors and agentic workflows.

Source repo
yzhao062/pyod
Stars
★ 10k
Last updated
11d ago v3.6.9
FARS reviewed
Nov 08, 2026 +2 new
License
BSD-2-Clause
Primary language
Python

At a glance

How it runs
Library / SDKCLIMCP server
Works with
Universal · cross-platformCodex · Claude CodeOpenAI API (Partial support)
Cost
Free, no paid service needed
Setup effort
Medium · a few setup steps
You'll need
PythonpipShell / CLINetwork accessLocal filesystemMCP Server
Typical use
Data scientists use the classic API to quickly detect outliers in tabular data with minimal code.
Not a fit if
  • Teams wanting zero-config use without installing skills or MCP
  • Use cases needing out-of-sample prediction from graph detectors
  • Users needing stateful MCP investigate/iterate tools, deferred for now
Website
pyod.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-22latest release v3.6.9 (2026-11-22)+1.7 ★/day over 7 days

What does this agent do, and when should you use it?

PyOD is the most comprehensive and widely-used Python library for anomaly detection, with over 46 million downloads since its inception in 2017. PyOD 3 introduces ADEngine (lifecycle orchestration core) and the od-expert skill, enabling agents to drive anomaly detection investigations through natural conversation. The library includes 61 detectors covering tabular, time series, graph, text, image, and audio data, with benchmark-backed routing from ADBench, TSB-AD, BOND, and NLP-ADBench. The classic fit/predict API remains fully backward-compatible, while new MCP server and CLI tools provide agent integration paths.

PyOD 3 offers three layers of use: Classic API (manual detector selection), ADEngine (automatic detector selection, comparison, and assessment), and Agentic Investigation (natural language-driven). The library includes 61 detectors across tabular, time series, graph, text, image, and audio data, with a unified API. ADEngine orchestrates the full lifecycle from raw data to explained anomalies and next-step guidance. The od-expert skill integrates with Claude Code and Codex, converting natural language requests into ADEngine workflows. The MCP server (python -m pyod.mcp_server) exposes ten stateless tools spanning knowledge queries (list_detectors, explain_detector, compare_detectors, get_benchmarks), planning (profile_data, plan_detection, build_detector), and detection (run_detection, analyze_results, explain_findings). Additionally, the pyod CLI (pyod info, pyod install skill, pyod mcp serve) supports installation and diagnostics.

  1. Data scientists use the classic API to quickly detect outliers in tabular data with minimal code.
  2. Machine learning engineers use ADEngine to auto-select the best detector and benchmark performance.
  3. DevOps engineers integrate anomaly detection into monitoring pipelines via CLI or MCP.
  4. AI agents (e.g., Claude Code, Codex) use the od-expert skill for data quality checks and troubleshooting.
  5. Researchers reproduce benchmark experiments using PyOD's 61 detectors.
  6. Business analysts use MCP tools to analyze business data anomalies.

How do you install or deploy this agent?

Install the core library via pip: pip install pyod. Then choose the activation path for your agent stack: 1) Claude Code or Codex: run pyod install skill (user-global) or pyod install skill --project (project-local); 2) MCP-compatible systems: install pyod[mcp] and run pyod mcp serve; 3) Pure Python: no extra steps.

How do you use this agent?

Example with Isolation Forest:

from pyod.models.iforest import IForest
clf = IForest()
clf.fit(X_train)
y_train_scores = clf.decision_scores_
y_test_scores = clf.decision_function(X_test)

For agentic path, run pyod info to see version and activation status.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Not found in source — apply before daily use
  • sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.

What are this agent's strengths and limitations?

Pros
  • Multi-modal: supports tabular, time series, graph, text, image, and audio data with a single API.
  • Agent-ready: od-expert skill and MCP server enable natural language-driven investigations.
  • Widely adopted: 46M+ downloads, benchmark-backed, enterprise deployments (e.g., Walmart, Databricks).
Limitations
  • Some advanced features (e.g., stateful MCP tools) are deferred to future releases.
  • Installation and activation involve multiple steps and dependencies on agent runtimes.
  • Graph detectors are typically transductive, not supporting out-of-sample prediction.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
PyOD 3: Agentic Anomaly Detection Library This agent 58 · Major gaps Library / SDKFree ★ 10k 11d ago Python Codex · Claude Code
OpenChatBI — Conversational BI Agent 66 · Some gaps Library / SDKFree + model costs ★ 676 29d ago Python OpenAI API · Claude API
Nixtla TimeGPT-1 50 · Major gaps Library / SDKFree + model costs ★ 4.1k 1d ago Jupyter Notebook —
Yuxi – Self-Hosted Multi-Tenant Knowledge Agent Platform 85 · Good Self-hosted serviceFree + model costs ★ 7.8k today Python OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
58/ 100 5-point scale 2.9 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 2 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 8/14
Adaptability 14/18
Convention 14/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

The evidence shows that SKILL.md defaults to autonomous detection with minimal intervention and gives escalation triggers for uncertainty. CLI skill installation writes to a user or project skills directory, and MCP exposes detection tools. The README lists activation paths and tools, but the supplied code does not establish whether data is sent to external services, how it is retained, or how sensitive data is protected. It also shows no per-operation confirmation, granular permissions, or rollback mechanism, so these criteria receive only partial credit. Core dependencies and optional extras are listed, and SECURITY.md provides a vulnerability reporting path; however, there is no evidence here of dependency auditing or pinned versions. Paper and algorithm citations support attribution; publisher identity remains unknown.

Reliability8 / 14 · 2.9/5

The README, package metadata, and SKILL.md broadly agree on PyOD 3, ADEngine, and the agent workflow, but the README claims audio coverage while the skill's six-modality description omits audio. The README says 61 detectors, while the modality counts in SKILL.md create ambiguity about that total. Dependencies are divided into core and optional extras, with installation guidance and further documentation links. The CLI reports the state of ADEngine, the classic API, and MCP availability; broad exception handling may hide specific failure details. Execution correctness and test reproducibility were not assessed.

Adaptability14 / 18 · 3.9/5

The skill targets non-experts, names modalities and user intents, and provides a decision tree based on data type and size. It documents boundaries such as no automatic scaling, no contamination estimation, and currently stateless MCP tools, with escalation triggers for uncertain cases. Environment guidance covers Claude Code, Codex project installation, MCP, and pure Python. Some adaptation rules still depend on domain knowledge from the user, and the README and skill do not describe modality coverage consistently.

Convention14 / 18 · 3.9/5

The README organizes the classic API, ADEngine, and agent workflow into layers, with a contents section, algorithm tables, examples, and installation guidance. The project metadata, LICENSE, and SECURITY.md provide package information, BSD-2-Clause terms, and a security reporting path. Version and changelog entry points exist, but the changelog contents are not included in the supplied evidence. The README links to an FAQ and full installation guide without supplying their contents. Names and aliases are generally recognizable, though the supplied documents differ slightly on audio/multimodal coverage and detector counts. An author and security reporting process are named, but publisher identity and division of maintenance responsibility are not verified.

Effectiveness7 / 13 · 2.7/5

The product offers the traditional fit/predict API, ADEngine lifecycle orchestration, and agent/MCP knowledge and detection tools. Examples show the intended layered entry points, which could reduce detector selection and workflow work. The README and skill describe result analysis, explanation, and reporting, but this packet cannot establish downstream output completeness or realized marginal benefit. Core installation is relatively small, while graph, deep learning, embedding, and MCP capabilities require optional dependencies. Costs and benefits are not quantified, so cost-benefit receives a low score.

Verifiability5 / 8 · 3.1/5

The README cites algorithm papers, benchmark projects, examples, and documentation; the skill, CLI, pyproject, and security policy corroborate product entry points and installation paths across files. There are small inconsistencies in counts and modality coverage, and benchmark and adoption claims are largely repository assertions without independent confirmation in this packet. The README places feature descriptions, benchmark claims, and impact statements together without consistently distinguishing their evidence strength; this review does not treat those claims as executed verification.

Risks and how to mitigate them
  • Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • The skill defaults to autonomous execution. Before supplying sensitive or regulated data, confirm the caller's data handling and external service policies; the supplied material does not describe data flow or retention.
  • Check the installed version's actual modality and detector coverage, and install optional extras as needed for graph, embedding, audio, and MCP use. The supplied documents do not state counts and modality coverage consistently.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 7e1330e10ac5 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pyod.svg)](https://followagents.com/en/agents/pyod)
<a href="https://followagents.com/en/agents/pyod"><img src="https://followagents.com/badge/pyod.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v3.6.9
    Release notes excerpt
    PyOD 3.6.9 A maintenance release with fixes to HBOS, predict_proba and weighted PCA, plus a Core Team section in the README. Default PCA scores change on rank-deficient data (constant, duplicated or collinear columns) and on float32 input; see Score Changes and Behavior Notes. No new detector or dependency is introduced. Score Changes …
    View on GitHub ↗
  2. v3.6.8
    Release notes excerpt
    PyOD 3.6.8 A maintenance release with scoring, estimator-contract and input-validation fixes. Default scores change for LODA, DevNet and fast ABOD; see Score Changes. No new detector or dependency is introduced. Score Changes - LODA: scoring now looks up the interior histogram edges. It previously searched the first n_bins - 1 edges, so on cardio, pima and shuttle 89 to 100 percent of bin lookups read the wrong density. Mean ROC AUC over seeds 0 to 4 rises from 0.85 to 0.92 on cardio, 0.60 to 0.66 on pima, and 0.33 to 0.99 on shuttle. [#777](https://github.com/yzhao062/pyod/pull/ …
    View on GitHub ↗
  3. v3.6.7
    Release notes excerpt
    PyOD 3.6.7 A maintenance release with input-validation and estimator-contract fixes, plus a new contribution process. No new detector or dependency is introduced. Bug Fixes - ABOD: cast non-float numeric input (integer lists and DataFrames, bool, float16) to float64 before the Numba angle kernel, which previously raised a TypingError. Scores for float32 and float64 input are unchanged. [#766](https://github.com/yzhao062/pyod/pull/766); the crash was reported earlier in #290 and #450. …
    View on GitHub ↗

FAQ

What changes for existing users of the classic API?
The classic fit/predict API is fully backward-compatible; existing code runs without modification.
What are the installation steps for the od-expert skill?
First install the core library, then run pyod install skill (for Claude Code user-global) or pyod install skill --project (for Codex project-local).
Does the MCP server support stateful investigations?
Currently, only stateless tools are provided; stateful investigate/iterate tools are deferred.
Does PyOD support text and image anomaly detection?
Yes, via EmbeddingOD with foundation model encoders, supporting text, image, and audio data.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts