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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f66f216c55063096d853251dc2f2daff15d29202d20bb61818e9f7899bec9ec
|
|
| MD5 |
e60053aa93aea7476dd04f1d590fc87c
|
|
| BLAKE2b-256 |
9b337a21a739b83053c6c067f6b920261354fe4b6636c76f26b77b99322ecd99
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
669dce73b94a69027f6b887ca22c1e8d5b73d5a66b850039d430f5f2d3529faf
|
|
| MD5 |
c9b12f8b08ef6b2c45a3815185067c65
|
|
| BLAKE2b-256 |
29a3cc457346e86d39f49f58c7a15cb263bf01fbdf1681b786f4b2212cfd65e7
|