New in the OpenRouter Agent SDK: human-in-the-loop tools. Auto-resolve routine tool calls. Pause high-stakes ones for review. Return a value to keep the agent running. Return null to surface the call to your app for human input. https://t.co/wyGXZu5yaH
OpenRouter Agent SDK Adds Human-in-the-Loop Tools to Pause High-Stakes AI Tasks
· Updated
As developers move toward production-grade agentic engineering, managing non-deterministic behavior is the primary hurdle. While some platforms are matching OpenAI's automated review modes, OpenRouter's approach gives developers granular control. This mirrors a broader shift toward hardening tools for professional environments seen in Anthropic's Claude Code stability improvements.
Implement these controls by updating the @openrouter/agent package and defining tools with the new HITL hooks. Use onResponseReceived to validate or add metadata before the human's input reaches the model. This ensures that human-supplied data is normalized and policy-compliant before the agent resumes its autonomous loop.
Still wondering? A few quick answers below.




