Automation · From our Short

How to Schedule Claude Code Tasks That Run in the Cloud

By Updated: 2026-11-28 · Last checked: 2026-11-28 (code.claude.com/docs/en/routines)How we test

No affiliate links on this page: every link is a plain link, and none of these tools pays us.

On this page
  1. What a scheduled task is
  2. Where to get it
  3. How to set one up
  4. The free tools inside our edit
  5. What we learned running one every day
  6. Questions

Short answer: a scheduled task is a saved Claude Code job (a prompt, a repository and optional connectors) that runs on Anthropic's cloud on a timer, on an API call or on a GitHub event. It keeps working while your computer is off. Anthropic called these "routines" until recently. Here's how to set one up, and how ours edits a video every morning.

What a scheduled task is

A cloud scheduled task is "a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors, packaged once and run automatically" (Claude Code docs, checked 2026-11-28). Because it runs on Anthropic's machines, it doesn't need your laptop to be on.

It can start three ways, and you can combine them: on a schedule (hourly, nightly, weekly or once at a set time), from an HTTP request to the task's own address, or when something happens in a GitHub repository, such as a new pull request. Each run starts from a fresh copy of your repository.

We use one as our morning video editor: it edits that day's Short, saves the files and sends a phone alert when the edit is ready. Nothing is published until a person has watched it and approved it.

Where to get it

How to set one up

The labels below are from Claude Code's docs (checked 2026-11-28). Scheduled tasks are a research preview, so screens may change.

  1. Put your project in a GitHub repository

    Every run clones the repository fresh and starts from its default branch, so everything the task needs (instructions, scripts, files) has to be in it.

    What we did: our whole video library, the edit scripts and each Short's plan live in one repository.

  2. Open scheduled tasks

    Go to claude.ai/code/routines. In the Claude desktop app it's the Code tab, then Scheduled. In a terminal, type /schedule inside Claude Code.

  3. Click New task and write the job

    Click New task (some accounts show New routine); if asked, choose Set up manually. Write what Claude should do in plain words, including what a finished result looks like.

    What we did: one small job with one result we can check: edit today's Short and save the files, then send the alert.

  4. Pick the repository and environment

    In the Repository row, add your repository. Cloud environment sets what the run can reach, and Advanced settings › Connectors adds apps such as Gmail or Drive.

  5. Choose the trigger

    Under Trigger, pick Schedule, GitHub event or API. A custom schedule can run at most once an hour.

    What we did: a daily schedule, plus a backup run later in the morning in case the first one has nothing to do.

  6. Run it once and review

    Click Create, then Run now and open History to watch the run. By default Claude pushes its work to branches that start with claude/, so you review a pull request before anything changes.

The free tools inside our edit

Our editor task runs these open-source tools on each run. Two have their own guides:

More on these: four free tools for a video workflow and making animations with Claude and GSAP.

What we learned running one every day

  • Start with one job. One task with one result you can check beats a task that tries to run your whole day.
  • Say what "done" means. The task can't ask you questions mid-run, so write down what a finished result looks like.
  • Keep approvals with you. Let it draft and open pull requests; you merge or publish.
  • Add a backup run. If a run fails or finds nothing, a second run later picks it up.
  • Put the rules in the repository. Each run starts fresh, so lasting instructions belong in a file the task reads every time.

Watch it edit a video. Claude routines edit your videos (YouTube).

Questions

Does a Claude scheduled task run with my computer off?

Yes. Cloud scheduled tasks run on Anthropic-managed infrastructure, so they keep working when your laptop is closed (Claude Code docs, checked 2026-11-28).

Which Claude plans include scheduled tasks?

Pro, Max, Ultra, Team and Enterprise (Claude Code docs, checked 2026-11-28). They are a research preview, so behavior and limits may change.

How often can a scheduled task run?

Hourly, nightly, weekly or once at a set time. Custom schedules that run more often than once an hour are rejected.

What can start a run besides a schedule?

An HTTP request to the task's own endpoint with a bearer token, or a GitHub event such as a pull request or a release. You can combine triggers.

Can a scheduled task publish things on its own?

It can do whatever its repository, environment and connectors allow. By default it pushes to branches starting with claude/, so changes wait for your review. We keep publishing with a person.

More tool guides from our Shorts: all tool guides · the tools from every Short.