Claude Code Routines
Key point
Adds schedule, API, and GitHub trigger routines to Claude Code.
Details
Claude Code's Routines is a research preview feature—a stored configuration that bundles a prompt + repository + connectors to run automatically in the cloud.
It runs on Anthropic-managed cloud infrastructure, so it keeps working even after you close your laptop, and a single routine can have multiple triggers attached.
- Schedule: recurring runs like hourly, daily, weekdays, weekly
- API: instant execution via HTTP POST with a bearer token
- GitHub: reacts to repository events such as pull request, push, issue, workflow run
Example use cases include automating repetitive tasks like backlog grooming, alert triage, custom code review, deployment verification, fixing docs drift, and SDK porting.
Routines can be created on the web, in the CLI, or in the Desktop app. You create them via the web form or /schedule, and in the Desktop app you must select New remote task for a routine—New local task is a separate, local scheduled task.
During execution, there is no permission-mode picker or approval prompt, and what a routine can access is determined by the following:
- The selected repositories and branch push settings
- The cloud environment's network access, environment variables, and setup script
- The connectors included
Also, a routine belongs to a personal claude.ai account and is not shared with the team, and it acts with the permissions of connected accounts such as GitHub/Slack/Linear. Commits, PRs, and messages it creates are recorded under that connected account.
Details per trigger type are also documented.
- The Schedule trigger is entered in the local timezone, and the actual start may be delayed by a few minutes.
- The minimum run interval is 1 hour, and finer-grained cron settings are configured via
/schedule update. - The API trigger uses a dedicated endpoint and token generated after saving, and calling it returns a new session URL.
- The GitHub trigger can combine filters and event conditions.
On the pricing and operations side, routines consume the account's daily run allowance, and they can be used with Claude Code on the web turned on across the Pro / Max / Team / Enterprise plans.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.