Put Claude Code on autopilot. Define routines that run on a schedule, trigger on API calls, or react to GitHub events from Anthropic-managed cloud infrastructure.
Routines are in research preview. Behavior, limits, and the API surface may change.
A routine is a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors , packaged once and run automatically. Routines execute on Anthropic-managed cloud infrastructure, so they keep working when your laptop is closed.
Each routine can have one or more triggers attached to it:
Scheduled : run on a recurring cadence like hourly, nightly, or weekly
: run on a recurring cadence like hourly, nightly, or weekly API : trigger on demand by sending an HTTP POST to a per-routine endpoint with a bearer token
: trigger on demand by sending an HTTP POST to a per-routine endpoint with a bearer token GitHub: run automatically in response to repository events such as pull requests, pushes, issues, or workflow runs
A single routine can combine triggers. For example, a PR review routine can run nightly, trigger from a deploy script, and also react to every new PR.
/schedule . Routines are available on Pro, Max, Team, and Enterprise plans with Claude Code on the web enabled. Create and manage them at claude.ai/code/routines , or from the CLI with
This page covers creating a routine, configuring each trigger type, managing runs, and how usage limits apply.
... continue reading