You asked Replit Agent to "send me a summary email every morning at 9". It wrote the code, the email arrived while you were testing, and you published. A week later you notice it went out once, on a Tuesday at 14:12, and never again. Nothing errored. The code is fine. It is the clock that is missing.
Replit gives you a few ways to run something on a schedule, and they fit different jobs. Below is what each one does as of November 2026 (checked against Replit's docs), why a timer inside a published app goes quiet, and a helper that turns your task into the prompt for Agent, the code and the schedule.
Three ways to run something on a clock in Replit
When you ask Agent to make something run "automatically", it reaches for one of these. They look similar in a chat reply, but they behave very differently once the app is published.
| Option | What actually runs | Timing | Cost (Nov 2026) |
|---|---|---|---|
| Scheduled Deployment | A command such as python report.py, then it stops | Cron expression plus a timezone you pick | $2/mo base fee plus compute per run |
| Routine | Agent work from a chat, results posted back to that chat | Hourly or longer, in your device's timezone | Core or Pro, with a per-run budget |
| Timer inside the app | node-cron, setInterval or APScheduler in your server | Only while the app is awake | Needs a Reserved VM (from $15/mo) |
| Outside clock calling a route | Your published app, through a URL | Any cron, any timezone; hourly free, 1 min Pro | Crontap free or Pro, plus request time on Replit |
A Scheduled Deployment is Replit's own scheduler. You give it a build command, a run command and a schedule, and Replit starts your project, runs the command, and shuts it down again. It has no public URL, so it is a separate thing from the web app your visitors use.
A Routine is newer. It repeats a request you made in an Agent chat ("every Monday, summarise new feedback in Slack") and posts the result back into that chat. Replit's Routines docs limit it to intervals of an hour or more on Core and Pro, with a budget per run.
The other two keep the work inside the app you already published. That is where most Agent-built jobs belong, and it is also where the trouble starts.
Why the timer Agent wrote stops running on Autoscale
Autoscale is the default deployment type, and Replit recommends it for most apps. It runs your app only while someone is using it: the first request starts a server, and per Replit's publishing costs page the app "goes idle after 15 minutes of inactivity". That is great for your bill. It is bad news for a timer, because a timer inside a sleeping app never fires.
So a cron.schedule("0 9 * * *", ...) in your server file does not run at 9. It runs only if a visitor happened to wake the app shortly before 9. The diagram below plays out one quiet morning with an hourly job.
One quiet morning on Autoscale
Timer inside the app · node-cron or setInterval, hourly
1 of 5 runs happened
Clock outside the app · Crontap calls the route, hourly
5 of 5 runs happened
- Awake (billed only while handling a request)
- Asleep after 15 idle minutes, costs nothing
- Visitor
- Scheduled call
The outside clock wins because a scheduled call is just another visitor. Replit starts the app, your route runs, and the app goes back to sleep. Replit's deployment FAQ calls the first request after a sleep "a normal cold start" that can take a few seconds, which no scheduler worth using will treat as a failure.
When Replit Scheduled Deployments is the right call
Replit's scheduler is a good tool, and for some jobs it is the better one. Pick it when:
- The job is a script, not part of your web app. A nightly backup, a scraper, a data export. It gets its own build and run commands and never has to answer an HTTP request.
- It runs for a long time. You set the job timeout yourself, in minutes or hours, so a 40-minute batch is fine. A web request that long is fragile on any host.
- You have one or two jobs and want one bill. A daily run costs about $2 a month all in, Replit alerts you when a run fails, and the logs sit next to your code.
- There is no published web app at all. Then there is no route for anyone to call, and the Scheduled Deployment is the whole product.
When a route plus an outside clock fits better
Most Agent-built apps already have a published Autoscale web app. If the job is "do something with my app's data", it is shorter to keep it there:
- The code already lives in your app. The database client, the email sender and the Slack token are all set up. A route reuses them; a separate script duplicates them.
- You have several jobs. Each Scheduled Deployment carries its own $2 monthly base fee. Five small jobs is $10 a month before they do any work.
- The cadence is frequent. Every 5 or 15 minutes adds up in compute, because each scheduled run starts your project and its command from scratch. A route on a warm app often finishes in a second or two.
- You want to change the time without republishing, see every run's status and duration, get retries on 5xx responses and timeouts, and hear about failures by email or (on paid plans) in Slack, Discord or Telegram.
- You schedule things outside Replit too, like a Supabase function or a webhook, and want them all in one list.
Set it up: describe the task, paste the prompt, schedule the URL
Pick an example or type your own task and schedule in plain English. The helper gives you the cron expression, the prompt for Agent, the code it should end up with, and the fields for Crontap. Nothing leaves your browser until you press the button.
Describe it, get the schedule
Runs in your browser
0 9 * * *Every day at 09:00 · Europe/Berlin
About 30 runs a month. Hourly or slower, so it fits Crontap's free plan.
Add a POST endpoint at /api/cron/email-summary-yesterday that does this: email me a summary of yesterday's new signups.
Rules:
- Only run when the request has an X-Cron-Token header equal to the CRON_TOKEN secret. If CRON_TOKEN is missing or the header doesn't match, return 401 and do nothing.
- Do the work inside the request and only respond when it is finished. Return JSON {"ok": true} on success and a 500 status if anything fails, so the scheduler can see the failure.
- Make it safe to run twice in a row (for example, skip work that was already done for this day).
- Don't add node-cron, setInterval, APScheduler or any timer inside the app. An external scheduler will call this URL (Every day at 09:00, Europe/Berlin).
When you're done, tell me the full published URL of the endpoint and remind me to add CRON_TOKEN in Secrets.Paste this into Replit Agent. It adds the route and the token check.
- 1
Ask Agent for the route
Paste the prompt from the helper into Replit Agent. It asks for a POST route at a path like
/api/cron/email-summarythat only runs when the request carries the rightX-Cron-Tokenheader, and it tells Agent not to add a timer of its own. If you would rather edit the code yourself, the Route code tab has the same thing for Express, Next.js and Flask. - 2
Add the CRON_TOKEN secret, then republish
Open Secrets from the Tools pane and add a secret called
CRON_TOKEN. The value can be any long random string; a password manager's generator is fine. Replit copies secrets to the published app when you publish or republish, so press Republish after adding it. - 3
Copy the full URL
Your published address is in the Publishing tool, usually
https://your-app.replit.app. Add the path from the prompt:https://your-app.replit.app/api/cron/email-summary. - 4
Create the schedule and press Perform test
In Crontap, create a schedule with that URL, method
POST, and a headerX-Cron-Tokenwith the same value as the secret. Type the timing in plain English or paste the cron expression, pick your timezone, and press Perform test. A200means it works. A401means the token in Crontap and the one in Replit Secrets don't match, and a404usually means you haven't republished since Agent added the route. - 5
Decide who hears about failures
Crontap retries 5xx responses, timeouts and network errors with exponential backoff by default, records each attempt, and alerts you when the attempts run out. Email works on every plan; Slack, Discord and Telegram are on paid plans.
Two habits that keep a scheduled route boring
Finish the work before you respond. On Autoscale, Replit bills your app while it handles requests and scales it down when it goes quiet, so work that carries on after the response can be cut short. Let the route do the job, then answer 200 or 500. Crontap waits for the answer for up to an hour per attempt, or until shortly before the next run is due. If a job needs longer than a few minutes, that is a sign it belongs in a Scheduled Deployment.
Make it safe to run twice. A retry after a timeout, or you pressing Perform test, can run the same job again. "Safe to run twice" just means the second run notices the work is done: store the date of the last summary email and skip if it already went out today. The prompt above asks Agent for exactly that.
What each option costs
Replit bills Scheduled Deployments in compute units. As of November 2026 its publishing costs page lists these rates, after the August 2026 price cut:
$2.00
Base fee per month
Per Scheduled Deployment
$0.60
Per million compute units
Down from $3.20 before August 2026
22 / sec
Units on 1 vCPU, 2 GiB
18 per CPU second, 2 per GB-second
Here is what one job costs as its own Scheduled Deployment, assuming a 1 vCPU, 2 GiB machine and 20 seconds per run (starting your project counts toward the run time; the build step doesn't):
| How often | Runs a month | Compute | Total with base fee |
|---|---|---|---|
| Once a day | 30 | $0.01 | $2.01 |
| Every hour | 720 | $0.19 | $2.19 |
| Every 15 minutes | 2,880 | $0.76 | $2.76 |
| Every 5 minutes | 8,640 | $2.28 | $4.28 |
| Every minute | 43,200 | $11.40 | $13.40 |
That is honest money for one job, and Core and Pro credits cover it before anything is charged. The numbers move when you multiply jobs, since the base fee repeats, or when runs take longer.
The route approach costs something on Replit too: your Autoscale app is billed for the seconds it spends handling each call, often 1 to 2 seconds by Replit's own estimate, plus $0.40 per million requests. On Crontap, two hourly or daily schedules are free, and minute cadence starts at $2.99/mo for 3 schedules on Pro, with the cost the same whether they run daily or every minute.
Four common shapes on a Replit app
These are the jobs Agent-built apps tend to need first. Each is one route and one schedule.
- A daily summary email.
0 9 * * *in your timezone, calling/api/cron/email-summary. Store the date of the last send so a retry never emails twice. - An hourly leaderboard or stats refresh.
0 * * * *, calling a route that recomputes and saves the numbers. Fits the free plan. - Polling a store or vendor API.
*/15 * * * 1-5for every 15 minutes on weekdays. Save a "last seen" marker so each run only fetches what is new. - A Monday KPI post to Slack.
0 9 * * 1inEurope/Berlin(or wherever the team sits). The route posts to a Slack incoming webhook; Crontap tells you if it fails.
Writing the expression by hand? The cron syntax cheatsheet has the common patterns, and the Replit use case page collects Replit-specific setups. Building on another platform as well? The same pattern for Bolt is in how to schedule tasks in Bolt.new apps, and scheduled tasks for AI-built apps compares the builders side by side.
FAQ
Replit scheduling questions
- Can Replit run a task on a schedule by itself?
- Yes. A Scheduled Deployment runs a command (for example python report.py) on a cron schedule in the timezone you pick, then stops until the next run, and Replit alerts you if a run fails. As of November 2026 it costs a $2 monthly base fee plus compute for each run. Replit also has Routines, which repeat work from an Agent chat at hourly or longer intervals on Core and Pro. Neither one calls a URL in the app you already published; for that you need an outside scheduler such as Crontap.
- Why did my node-cron or setInterval job stop running on Replit?
- Because the app it lives in went to sleep. Autoscale, the default deployment type, scales to zero after about 15 minutes without requests, and a timer inside a sleeping app never fires. It only runs again if a visitor happens to wake the app before the timer is due. Keep the code as a route and let an outside clock call it, or move the app to a Reserved VM, which never sleeps and starts at $15 a month.
- Will an external cron wake my Autoscale app?
- Yes. Each call is an ordinary request, so Replit starts the app if it is asleep. Replit's docs describe the first request after scale-to-zero as a normal cold start of a few seconds. Crontap waits for the response for up to an hour per attempt (or until shortly before the next run is due), so a cold start does not count as a failure, and the run history shows the duration so you can see it.
- How much do Replit Scheduled Deployments cost?
- As of November 2026, Replit's publishing costs page lists a $2.00 monthly base fee per Scheduled Deployment and $0.60 per million compute units, where one CPU second is 18 units and one GB-second of memory is 2. On a 1 vCPU, 2 GiB machine a 20-second daily job comes to about $2.01 a month, and the same job every 5 minutes to about $4.28. Core and Pro plans include monthly credits that are spent on these costs first.
- Does this work on Replit's free Starter plan?
- Only for a while. Starter includes one free published app, and that deployment goes down after 30 days unless you publish it again, so a schedule pointed at it stops working when it expires. For a URL that stays up you need Core or Pro. On the Crontap side, the free plan covers 2 schedules, uptime monitors or heartbeats in total, at hourly or slower cadence.
- How do I stop strangers from triggering my scheduled route?
- Make the route check a shared secret. Add a secret named CRON_TOKEN in Replit's Secrets tool, have the route return 401 unless the X-Cron-Token header matches it, and put the same value in the schedule's headers. Replit copies secrets to the published app when you publish or republish, so republish after adding it.
- Can I move an existing Scheduled Deployment to Crontap?
- Yes, if the work can run inside your web app. Ask Agent to turn the script's logic into a POST route with the token check, publish, and press Perform test in Crontap until it returns 200. Then create the schedule with the same cron expression and timezone, and shut down the Scheduled Deployment the same day so the job does not run twice.
- Should I use Replit Routines instead?
- Use a Routine for chat-shaped work: summarise your inbox, collect feedback from Slack, research something every Monday. It runs from an Agent chat at intervals of an hour or more, in your device's timezone, with a per-run budget, and the result lands back in the chat. For a job your app's own code does on a precise clock, such as a sync every 15 minutes or a 17:00 email in Berlin time, a route plus a scheduler is the better fit.
- Can Replit Agent create the Crontap schedule for me?
- Yes. Replit Agent can connect to Crontap's MCP server and create, test and list schedules from the chat. The MCP guide for Replit walks through the setup. MCP manages the schedule; it does not keep Agent running or wake it on a timer.
References
- Replit deployment types: Autoscale, Reserved VM and Scheduled
- Replit publishing costs
- Replit Cloud August 2026 pricing updates
- Replit Secrets
- Replit Routines
- Replit Starter plan
Related on Crontap
- Schedule a Replit API route with Crontap MCP. Let Replit Agent create and test the schedule through Crontap's MCP server.
- Cron jobs for Replit. Replit-specific setups for scheduling work without a second deployment.
- How to add scheduled tasks to your AI-built app. Every AI app builder side by side.
- How to schedule tasks in Bolt.new apps. The same gap and fix for Bolt.new.
