Skip to main content

Zero-code AI agent monitoring with Human-in-the-Loop for LangChain, LangGraph, CrewAI, AutoGen, and any agentic framework

Project description

HumanLayer

Zero-code AI agent monitoring with Human-in-the-Loop (HITL) for any agentic framework.

PyPI version Python 3.10+ License: MIT

Install

pip install humanlayer-ai

Quick Start — 3 lines

import humanlayer

humanlayer.init(
    api_key="adr_your_key_here",
    project_id="my-agent",
)

# That's it. All LangChain/LangGraph events are now captured automatically.

Human-in-the-Loop

tools = humanlayer.wrap_tools(
    tools,
    approval_required=[
        "send_email",
        "book_meeting",
        "create_github_issue",
    ]
)

# Agent pauses before these tools.
# Approve or reject from the HumanLayer dashboard.

Works with any agentic framework

  • LangChain — auto-instrumented via callback handler
  • LangGraph — persistent session tracking
  • CrewAI — wrap tools with HITL gates
  • AutoGen — intercept agent actions
  • Any framework using Python functions as tools

Dashboard

After calling humanlayer.init(), visit your dashboard to:

  • See every LLM call, tool use, and agent decision
  • Approve or reject tool calls before they execute
  • Review the full agent journey for each HITL decision point
  • Manage API keys, projects, and team members

Backend

Health check: GET https://hitl-agent-v1.preview.emergentagent.com/api/health

Environment Variables

Variable Description Default
HUMANLAYER_API_KEY Your API key (adr_...)
HUMANLAYER_PROJECT_ID Project identifier
HUMANLAYER_API_BASE_URL Backend URL https://hitl-agent-v1.preview.emergentagent.com
HUMANLAYER_DEBUG Enable debug logging false

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

humanlayer_ai-0.2.1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

humanlayer_ai-0.2.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file humanlayer_ai-0.2.1.tar.gz.

File metadata

  • Download URL: humanlayer_ai-0.2.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for humanlayer_ai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0f66f216c55063096d853251dc2f2daff15d29202d20bb61818e9f7899bec9ec
MD5 e60053aa93aea7476dd04f1d590fc87c
BLAKE2b-256 9b337a21a739b83053c6c067f6b920261354fe4b6636c76f26b77b99322ecd99

See more details on using hashes here.

File details

Details for the file humanlayer_ai-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: humanlayer_ai-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for humanlayer_ai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 669dce73b94a69027f6b887ca22c1e8d5b73d5a66b850039d430f5f2d3529faf
MD5 c9b12f8b08ef6b2c45a3815185067c65
BLAKE2b-256 29a3cc457346e86d39f49f58c7a15cb263bf01fbdf1681b786f4b2212cfd65e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page