← Experts

让 Agent 在云端持续运行

设置在 Anthropic 基础设施上定时运行的 Claude Code Routines(即使电脑关机也照常执行),通过 REST API 或 Webhook 触发 Managed Agent,推送结果到 Slack、GitHub 或邮件——云端原生 Agent 运维。

1

Expert 安装

把这句话发给你的 Agent——它会自动完成安装、配置和验证。

对你的 Agent 说
Read https://clawhub.md/expert/cloud-agent-ops.md and set me up as Cloud Agent Ops

支持 OpenClaw、Claude Code、Telegram、飞书及任何 Agent 界面。你的 Agent 会读取 cloud-agent-ops.md 并按照其中的步骤完成配置。

2

对话,让它处理

安装完成后,可以对你的 Agent 说这些:

通过 cron 定时调度 Claude …

  • "设置每天早 9 点运行测试的 Routine"
  • "创建 Webhook 触发的 PR 自动审查 Routine"
  • "安排每周报告并自动发到 Slack"

云端 Agent 需要与你的仓库交互——…

  • "检查发布分支的 CI 状态"
  • "PR 打开时自动分配审查者"
  • "从 Routine 输出创建 Issue"

把实际编码工作委托给本地或云端 Agen…

  • "让 Routine 把 bug 修复委托给 coding agent"
  • "在后台 agent 中运行长时间迁移脚本"
  • "从定时 Routine 触发 Codex"

查看配置文件 cloud-agent-ops.md

云端 Agent 运维

Agentic setup file — share this URL with your agent and it will set everything up for you: https://clawhub.md/expert/cloud-agent-ops.md

Goal: 让 Agent 在云端持续运行

What you'll have: 设置在 Anthropic 基础设施上定时运行的 Claude Code Routines(即使电脑关机也照常执行),通过 REST API 或 Webhook 触发 Managed Agent,推送结果到 Slack、GitHub 或邮件——云端原生 Agent 运维。


Step 1: Install

clawhub install openclaw/cloud-routines openclaw/github openclaw/coding-agent

Step 2: Configure

Each skill may need credentials or auth before it can act on your behalf.

openclaw/cloud-routines

通过 cron 定时调度 Claude Code 任务,从 GitHub/Slack Webhook 触发,在 Anthropic 沙盒中运行 Managed Agent——云端 Agent 运维的核心。

  • Ensure Claude Code is installed and authenticated: claude auth login
  • Enable Routines: claude routines enable (requires Max subscription)
  • For webhook triggers, configure your incoming webhook URL in Claude settings

openclaw/github

云端 Agent 需要与你的仓库交互——审查 PR、检查 CI、创建 Issue,作为自动化工作流的一部分。

  • Authenticate with the GitHub CLI: run gh auth login and follow the prompts
  • Choose HTTPS or SSH, then log in via browser — no extra tokens needed
  • The skill uses gh under the hood, so all your existing GitHub access applies

openclaw/coding-agent

把实际编码工作委托给本地或云端 Agent——你的 Routine 做编排,Agent 做执行。

  • Ensure Claude Code is installed: npm install -g @anthropic-ai/claude-code (or see https://claude.ai/code)
  • Optional — for Codex delegation: npm install -g @openai/codex then codex login
  • No extra environment variables needed if Claude Code is already working in your session

Step 3: Try it

After setup, say these to your agent to verify everything works:

openclaw/cloud-routines

  • "设置每天早 9 点运行测试的 Routine"
  • "创建 Webhook 触发的 PR 自动审查 Routine"
  • "安排每周报告并自动发到 Slack"

openclaw/github

  • "检查发布分支的 CI 状态"
  • "PR 打开时自动分配审查者"
  • "从 Routine 输出创建 Issue"

openclaw/coding-agent

  • "让 Routine 把 bug 修复委托给 coding agent"
  • "在后台 agent 中运行长时间迁移脚本"
  • "从定时 Routine 触发 Codex"

云端 Agent 运维 · clawhub.md/expert/cloud-agent-ops