# How to build an always-on AI agent with the OpenRouter Agent SDK

> Original title: How to Build Your Own Always-On AI Agent

- Source: OpenRouter Blog
- Published: 2026-10-31T00:00:00.000Z
- Bad Influence: https://badinfluence.news/items/g9hyehp98ljda8udkybc99h0l
- Original: https://openrouter.ai/blog/tutorials/build-always-on-ai-agent/

## Summary

OpenRouter's tutorial builds a TypeScript agent with @openrouter/agent 0.11.0 that checks Hacker News every 15 minutes and writes a digest. Each check cost $0.0003 to $0.0012 with Claude Haiku 5.5 in the authors' runs on October 13, 2026, and stopWhen limits cap each run at six steps and $0.05. A tool with requireApproval: true pauses the run until the call is approved or rejected.
