Skip to content

$ cat how-to-build-your-own-always-on-ai-agent.md

How to Build Your Own Always-On AI Agent

Walks through building a scheduled AI agent in TypeScript with the OpenRouter Agent SDK that monitors Hacker News and keeps memory of past items across restarts. It also shows how to cap each run at five cents and require approval before the agent posts anything.

OpenRouter31 Oct 2026 · 1 min read · summary
Read on openrouter.ai ↗
An always-on AI agent wakes up on a schedule, checks something with tools, and reports or acts without you asking. This tutorial builds one in TypeScript with the OpenRouter Agent SDK that watches Hacker News, remembers what it has seen across restarts, stops any run at five cents, and waits for your approval before it posts.

source

This is a summary of an article first published by OpenRouter. The full piece is on their site.

Open original