OpenRouter publishes TypeScript tutorial for an always-on Hacker News agent
Overview
OpenRouter publishes a tutorial on its blog for building an always-on AI agent with the OpenRouter Agent SDK in TypeScript.
The agent checks Hacker News for chosen topics, writes a digest of worthwhile stories, and remembers what it has already seen across restarts. OpenRouter says each check cost between $0.0003 and $0.0012 in its runs on October 13, 2026, using Claude Haiku 5.5.
The tutorial uses @openrouter/agent 0.11.0 and a stopWhen limit that caps each run at six steps and $0.05. A tool marked requireApproval: true pauses the run until the call is approved or rejected.
Written by AI from the articles below · updated Oct 30, 8:51 PM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
- OpenRouter BlogOfficialHow to build an always-on AI agent with the OpenRouter Agent SDK
AIOpenRouter'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.
Heat Trend
Not enough continuous observations to show a trend yet.