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.0.tar.gz (18.1 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.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: humanlayer_ai-0.2.0.tar.gz
  • Upload date:
  • Size: 18.1 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.0.tar.gz
Algorithm Hash digest
SHA256 379c5eb3eb7310b80d0a4a1ef564c8073770414c1569a4e3b43293688bfe77c0
MD5 3d9ecac762c8d3c0f07603c421e5b51c
BLAKE2b-256 602647d26b931f734a6a52666e005a3e0f42925493f734db369a8c21fa37f522

See more details on using hashes here.

File details

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

File metadata

  • Download URL: humanlayer_ai-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7b988acda512bb200560dd20710bc13ca85ef39a35d678a7306d8a1426fb62
MD5 c6a06468b5bb3480e8e79435465e558f
BLAKE2b-256 4ee4342b2452f6c956693daf3339d4c0b45a942fe47434b0609f3838ee9b71cf

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