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
OpenRouter introduced human-in-the-loop controls to its Agent SDK, allowing developers to build agents that pause for review on sensitive actions. The update includes hooks to auto-resolve routine tasks while surfacing high-stakes decisions to a human interface. This standardizes how autonomous agents ask for help without losing conversation state.
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.
Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →



