---
title: "How to Build Your Own Always-On AI Agent (TypeScript)"
url: "https://xlrocket.men/how-to-build-your-own-always-on-ai-agent-typescript"
markdown_url: "https://xlrocket.men/how-to-build-your-own-always-on-ai-agent-typescript.md"
format: "link"
published: "2026-11-01T12:20:47.000Z"
link_url: "https://openrouter.ai/blog/tutorials/build-always-on-ai-agent/"
site: "火箭君 MEN"
---

# [How to Build Your Own Always-On AI Agent (TypeScript)](https://openrouter.ai/blog/tutorials/build-always-on-ai-agent/)

译：OpenRouter 教程：常驻 Agent = 限额 + 人工审批闸

- 可批准模板：`maxCost`/`stepCount` 锁单次账单；对外发帖工具 `requireApproval`
- `seen.json` 当长期记忆——抄流程，别抄「无闸全自动」
- 个人/小团队先把门闩写进代码再谈常驻
