7.7 Routines:Claude Code 自动化任务
7.7.1 三种触发模式
Scheduled Routine(定时触发)
API Routine(HTTP 触发)
export ROUTINE_FIRE_URL="https://api.anthropic.com/v1/claude_code/routines/trig_.../fire"
export ROUTINE_TOKEN="<per-routine-token>"
curl -X POST "$ROUTINE_FIRE_URL" \
-H "Authorization: Bearer $ROUTINE_TOKEN" \
-H "anthropic-beta: experimental-cc-routine-2026-04-01" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"text":"High Error Rate in payment-api. Dashboard: https://..."}'Webhook Routine(GitHub 事件触发)
7.7.2 执行限额
7.7.3 常见使用模式
模式
触发方式
描述
7.7.4 最佳实践
7.7.5 本地 /goal//loop vs 云端 /schedule
最后更新于
