Skip to main content

ANCHOR SDK

Monitor and self-correct your AI agents in 2 lines of code.

Install

pip install anchor-sdk

Quick start

import anchor_sdk as anchor

anchor.init(
    url="https://api.anchormonitor.com",
    agent_id="my-agent",
    task="Describe what your agent does",
    sdk_key="sk-...",          # from your ANCHOR dashboard
)

# Your existing agent code — unchanged.
# ANCHOR auto-monitors every OpenAI / Anthropic / LangChain call.

Get your SDK key at anchormonitor.com.

What it does

  • Detects drift — vocabulary, semantic, latency, refusal, tool-call, and input distribution
  • Self-corrects — injects a correction system message before the next LLM call
  • Escalates — emails + Slack + PagerDuty when correction fails after 3 attempts
  • Zero code changes — patches OpenAI, Anthropic, and LangChain automatically

Manual usage

# If you prefer explicit control:
result = anchor.watch("The agent's latest response text")
if result["correction_required"]:
    print(result["correction_prompt"])  # inject this as a system message

Metadata

Release files for anchor-sdk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anchor-sdk 0.2.0
File Size Uploaded Provenance Actions
anchor_sdk-0.2.0.tar.gz 9.6 kB Without provenance Details for anchor_sdk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anchor-sdk 0.2.0
File Interpreter ABI Platform Actions
anchor_sdk-0.2.0-py3-none-any.whl Python 3 none any Details for anchor_sdk-0.2.0-py3-none-any.whl

Total release size: 18.9 kB

Release files / anchor_sdk-0.2.0.tar.gz

Download URL anchor_sdk-0.2.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
886f5262a33ec67755aec5ddc7ec1b2ee2386208b85b497d8de3fa72939bbfc3
BLAKE2b-256 checksum
How to use checksums
f7358f1fc098c317bca74dd10234e95c51850318672a5935a0aebb16a71b0bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / anchor_sdk-0.2.0-py3-none-any.whl

Download URL anchor_sdk-0.2.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
409c3ca8f82b0da99ac522c5390e3b0c8503b6ce83b9756c80feabfc771fdfdf
BLAKE2b-256 checksum
How to use checksums
50a0de600304cc7e8df71dc5e405773f00a25c2762ede76ff86822a9e04eb732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for anchor-sdk 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page