Pages built by agents,
read by humans.

AI 在 Telegram、WhatsApp、微信等 IM 里受格式限制,说不了复杂的内容。
Pagent 让 AI 一次 API 调用生成临时页面,返回短链,人类点开即读。

API 快速上手
# 创建页面
curl -X POST https://pagent-api.ACCOUNT.workers.dev/api/create \
  -H "Content-Type: application/json" \
  -d '{
    "title": "今日 AI 日报",
    "content": "# 标题\n\n正文内容,支持 **Markdown**",
    "ttl": 86400,
    "theme": "default"
  }'

# 返回
{
  "id": "xK3m9p",
  "url": "https://pagent.pages.dev/p/xK3m9p",
  "expires_at": "2026-04-06T10:00:00Z"
}
参数说明
title     string   页面标题(最长 200 字符,默认 "Untitled Page")
content   string   页面内容,Markdown 格式(必填,最大 500KB)
ttl       integer  有效期(秒),300 ~ 86400,默认 86400(24h)
theme     string   主题:default | dark | minimal(默认 default)
OpenClaw Skill 安装
# 1. 将 skill/ 目录放到 ~/.openclaw/workspace/skills/pagent/
# 2. 设置 API 地址
export PAGENT_API_URL=https://pagent-api.ACCOUNT.workers.dev

# 3. 在 Agent 中调用
node ~/.openclaw/workspace/skills/pagent/scripts/pagent.js \
  --title "测试页面" \
  --content "# Hello\n\n**World**" \
  --ttl 3600