OpenRouter Agent SDK adds human-in-the-loop tools
OpenRouter has updated its Agent SDK to simplify compliance with upcoming AI safety regulations like the EU AI Act and Colorado's ADMT law. The update introduces structured hooks like onToolCalled and requireApproval to automate human-in-the-loop workflows, allowing agents to pause execution, persist state, and gather human reviews.
Providing first-class SDK primitives for human-in-the-loop (HITL) oversight is a brilliant way to turn compliance requirements into developer conveniences.
- –Swapping models easily with OpenRouter's API combined with regulatory guardrails makes this SDK highly practical for enterprise agent deployment.
- –Gating consequential actions like payments or PII access is becoming standard engineering best practice, not just a regulatory chore.
- –While state persistence and timeout escalation logic still need to be handled by the host application, these built-in hooks lower the development friction significantly.
DISCOVERED
53d ago
2026-06-09
PUBLISHED
53d ago
2026-06-09
RELEVANCE
AUTHOR
OpenRouter