Sunday, August 9, 2026

In Claude code, what is local routines and cloud routines

In Claude Code, the term Local Routines (often contrasted with Cloud Routines) refers to scheduled tasks or automated workflows configured to run directly on your local machine rather than on Anthropic's cloud infrastructure.



While standard Claude Code routines typically run server-side on Anthropic's cloud (allowing them to execute even when your laptop is closed), opting for Local execution creates a desktop-managed task tied specifically to your local environment.


Key Characteristics of Local Routines

Local Execution: Unlike cloud routines that clone your repository into a temporary remote container, a local routine executes directly using your machine's environment, local file paths, and locally installed tools.


Access to Local Tooling: They are ideal for tasks that require access to your local workspace, running development servers, local databases, or custom environment-specific tooling that isn't present in a generic cloud sandbox.


Desktop App Integration: They can be set up through the Claude Code Desktop app by selecting Local instead of Cloud when creating a new routine, which configures it as a native desktop scheduled task.


When to Use Local vs. Cloud Routines

Feature Cloud Routines Local Routines

Where it runs Anthropic's Cloud Infrastructure Your local machine

Laptop requirement Can run while laptop is closed Requires your machine to be on and active

Environment access Isolated container (requires setup scripts/connectors) Direct access to local files, CLI tools, and dev environments

Best used for Automated PR reviews, nightly dependency checks, webhook triggers Tasks tightly coupled to your local dev setup or local file state

No comments:

Post a Comment