TubeReads

Claude Code Finally Gave Us Scheduled Automations

After months of running automations tethered to open laptops, Claude Code has shipped web-based routines that run on Anthropic's infrastructure — but the migration isn't plug-and-play. Early adopters are discovering that API keys don't transfer automatically, network permissions default to restrictive settings, and stateless execution breaks cookie-dependent workflows. The promise is clear: set-and-forget automations that survive restarts and run hourly without local hardware. The question is whether the new constraints — GitHub-only file access, 15-run daily caps, and one-shot prompt design — make these routines genuinely more powerful than the desktop tasks they replace.

Nate Herk | AI AutomationTech1 People mentioned4 Glossary terms
Video length: 16:28·Published Apr 14, 2026·Video language: English
5–6 min read·3,968 spoken wordssummarized to 1,068 words (4x)·

1

Key Takeaways

1

Routines run on Anthropic's cloud infrastructure and persist without an open laptop, but require a linked GitHub repository and store API keys in cloud environment variables rather than local .env files.

2

Network access defaults to «trusted» mode (vetted domains only); many integrations like ClickUp require switching to «full» access, which introduces theoretical risk of data exfiltration if malicious content is read during a run.

3

Each routine execution is stateless — the GitHub clone is destroyed after each run — so workflows relying on local cookies, session persistence, or browser automation will break unless redesigned around API endpoints.

4

Daily run limits are tight: 5 on Pro, 15 on Max, 25 on Team/Enterprise, with a minimum interval of one hour, making high-frequency or resource-intensive automations impractical.

5

Prompts must be specific enough for one-shot execution; vague instructions that work in interactive chat will fail in autonomous routines, requiring upfront testing with the «run now» feature.

In a Nutshell

Claude Code's web-based routines deliver the first truly autonomous scheduling for AI agents, but success depends on mastering environment variables, network permissions, and stateless execution — desktop automations won't migrate without deliberate redesign.


2

What Are Routines and How Do They Work?

Routines are scheduled, API-triggered, or event-driven prompts running on Anthropic's cloud.

Claude Code routines represent a fundamental shift from desktop-bound automations to cloud-native execution. A routine is essentially a pre-configured prompt that can fire on a schedule, via API call, or in response to GitHub events like new pull requests or pushes. Unlike desktop scheduled tasks, routines run on Anthropic's web infrastructure, meaning your laptop can stay closed and the automation will still execute.

Each routine run clones your linked GitHub repository, reads your claw.md context file, executes the prompt, and then destroys the ephemeral environment. If the automation modifies code or performs a review, Claude creates a new branch in your repo; otherwise, the session history is saved but the runtime is discarded. This stateless architecture is powerful but introduces constraints: local files outside the repo are invisible, cookies don't persist, and every run starts fresh.

You can create routines from three interfaces: the desktop app's scheduled tasks panel, the web interface at claudeai/code, or directly in the terminal. All three methods require a GitHub repository as the source of truth and support the same set of triggers, connectors, and cloud environment configurations.


3

The API Key Problem: Environment Variables vs .env Files

Secrets in .gitignore won't transfer; use cloud environment variables instead.

⚠️

The API Key Problem: Environment Variables vs .env Files

The most common migration failure is forgetting that .env files are git-ignored and won't be cloned into the cloud runtime. API keys must be manually entered into the cloud environment's «Environment Variables» section in settings. Even if your local automation reads from .env perfectly, the routine will fail silently unless you explicitly configure environment variables and — crucially — tell Claude in the prompt to «use the API key directly from the environment» rather than looking for a .env file.


4

Setting Up Your First Routine

Five configuration steps from prompt to permissions.

1

Name and Prompt Create a specific, one-shot prompt that doesn't require user interaction. This is the instruction Claude will execute autonomously.

2

Link GitHub Repository Connect the repo containing your claw.md, scripts, and skills. This becomes the file system Claude can access during the run.

3

Configure Cloud Environment Add all necessary API keys to the «Environment Variables» section. Set network access to trusted (vetted domains) or full (unrestricted outbound).

4

Set Schedule or Trigger Choose hourly, daily, or weekday cadence (minimum one hour), or configure API/GitHub event triggers instead of a schedule.

5

Add Connectors and Permissions Enable MCP services like Slack or Gmail if needed. Set permission level to fully autonomous to avoid blocking prompts.


5

Network Access: Trusted vs Full

Default trusted mode blocks many APIs; full mode works but increases risk.

TRUSTED
Vetted Domains Only
Restricts outbound requests to a curated list of services verified by Anthropic, including version control platforms, major cloud providers, and approved APIs. Blocks requests to unverified domains, which broke integrations like ClickUp in testing. Lower risk but limited compatibility.
FULL
Unrestricted Outbound Access
Allows Claude to reach any external endpoint. Required for many third-party APIs not on Anthropic's vetted list. Introduces theoretical risk: if Claude reads malicious content during a run, it could be tricked into sending data to an attacker-controlled server. Practical risk is low for private repos with controlled inputs.

6

What Breaks When You Migrate

🍪
Session Cookies
Workflows using Playwright or browser automation can't access saved cookies. Each run is a fresh environment with no session state.
📁
Local Files
Only files in the linked GitHub repo are visible. Local scripts, databases, or cached data won't be accessible unless pushed to the repo.
🔁
Memory Across Runs
The cloned environment is destroyed after each run. To persist data, you must write to the repo (triggering a new branch) or use external storage via API.
High-Frequency Triggers
Minimum interval is one hour. Automations that need to run every few minutes must stay on desktop scheduled tasks.

7

Routines vs Desktop Tasks vs /loop

Three automation modes compared across seven key dimensions.

Execution Location
Routines: Anthropic cloud | Desktop: Local machine | /loop: Local machine
Machine Must Be On
Routines: No | Desktop: Yes | /loop: Yes
Survives Restarts
Routines: Yes | Desktop: Yes | /loop: No
Local File Access
Routines: No | Desktop: Yes | /loop: Yes
Minimum Interval
Routines: 1 hour | Desktop: 1 minute | /loop: 1 minute
Permission Model
Routines: Fully autonomous | Desktop: Configurable | /loop: Configurable

8

Usage Limits and Resource Constraints

Daily run caps and per-routine compute allocations vary by plan.

Pro Plan Daily Runs
5
Max Plan Daily Runs
15
Team/Enterprise Daily Runs
25
vCPUs per Routine
4
RAM per Routine
16 GB
Disk Space per Routine
30 GB

9

Why This Beats Traditional Automation

Agentic reasoning survives the transition to cloud execution.

We are actually keeping the agentic framework. When we push those automations to the cloud and it's just a Python script, we're losing the agentic piece. We're only sending off really the tools and the workflow. But in this case, we're keeping the WA and the T all running together because the agent is looking at the claw.md, it's looking at its scripts and it's figuring out what to do. And if it runs into errors midrun, it will self-correct.

Nate


10

Best Practices for Writing Routine Prompts

🎯
Be Explicit
State exactly which skill to run, the order of operations, and where to find credentials. Vague prompts that work in chat will fail autonomously.
🔐
Reference Environment Variables
Include phrases like «use the API key directly from the environment» to prevent Claude from searching for .env files that don't exist in the cloud.
🧪
Test with Run Now
Execute the routine manually multiple times before scheduling. Watch the full execution to confirm one-shot completion without user prompts.
📬
Add Failure Notifications
Instruct the routine to send a Slack or email alert if it encounters an error, so you're not blindsided by silent failures.

11

People

Nate
Content Creator / Automation Developer
host

Glossary
Stateless ExecutionEach routine run starts from scratch with a fresh GitHub clone and no memory of previous runs; the environment is destroyed afterward.
Cloud EnvironmentThe settings panel where you configure environment variables, network access permissions, and setup scripts for a routine.
MCP ServicesModel Context Protocol integrations (connectors) like Slack, Gmail, or ClickUp that extend Claude's capabilities beyond API calls.
One-Shot PromptA prompt designed to complete autonomously without requiring user interaction or follow-up questions.

Disclaimer: This is an AI-generated summary of a YouTube video for educational and reference purposes. It does not constitute investment, financial, or legal advice. Always verify information with original sources before making any decisions. TubeReads is not affiliated with the content creator.