# Run Claude Code on a schedule, and know what each run did.

> How to run Claude Code on a schedule: cron, one-off dates, webhooks and file changes as Silos automations, with a status per run, daily limits and approval.

Source: https://silosplatform.com/resources/claude-code-on-a-schedule/

A crontab line with claude -p works until a run fails quietly. Silos runs Claude Code turns on a schedule, a date, a webhook or a file change, gives every run a status and an outcome, and stops each agent at its daily limits.

## Every trigger a job needs, in one place

An automation runs once on a date, on a cron schedule, when a webhook is called, when files change, or when a conversation finishes. It sends your text to an agent at the start of every run, in a new conversation each time or in one kept across runs.

A webhook fires on POST /api/hooks/<automation id> with its secret in a header, and the request body reaches the agent fenced as untrusted data.

## A result per run, not a log to grep

Each run ends with a status, and an agent turn adds a one-line outcome: acted, or no news. A failed run lands in Needs you, the one inbox for everything waiting on you.

Work with no judgment in it can run as a plain command instead: exactly as written, without a shell and without Claude, so it spends no tokens and no usage limits.

## Limits that hold while you sleep

Each agent has a daily max of starts without you, 10 by default, and a spend cap, $5 a day by default, where its provider prices turns. An automation can also require your OK before each run, or stop at a number of runs a day.

An agent cannot quietly schedule itself: an automation it proposes waits in Needs you until you accept it.

## Silos compared with cron and claude -p

| | cron + claude -p | Silos |
| --- | --- | --- |
| Setup | One crontab line per job | One automation per job, from a form or a template |
| Triggers | Time only | Date, schedule, webhook, file change, finished conversation |
| Knowing what happened | Read the output file | A status and a one-line outcome per run |
| A failed run | Silent unless you script mail | A row in Needs you |
| Spending | Unbounded unless you script it | Daily max of starts and a spend cap per agent |
| Context between runs | Fresh every time | A new conversation, or one kept across runs |

## Questions

### Does it run the real Claude Code?

Yes. An automation's turn runs the claude CLI from your PATH on your own Claude subscription. Silos uses only what Claude Code documents: flags, settings, hooks and the SDK.

### Does my machine have to stay on?

Yes. Automations run while Silos runs. silos service install keeps it running after the terminal closes and after a reboot, as a systemd user service on Linux or a LaunchAgent on macOS.

### Can a run cost nothing?

Yes. A command automation runs a script exactly as written, without Claude, so it uses no tokens and no usage limits.

### Can I call it from another service?

Yes. A webhook automation gives you a URL and a secret. Any service that can send a POST, such as a CI job or a form, can start the run.

### What stops an agent from scheduling itself?

An agent can only propose an automation. It does nothing until you accept it in Needs you.
