Safeguard
Developer Tools•

How do scheduled tasks work in Claude, ChatGPT and Codex?

A side by side of where scheduled tasks run, what triggers them and how permissions work in Claude, ChatGPT and Codex, from the vendors' own documentation.

Safeguard Security Team
6 min read

Claude, ChatGPT and Codex all let you save a prompt and run it later without sitting there, but they differ on where it runs, what can start it and what happens when it needs permission. Check four things for each product: location, trigger, access and controls.

Why compare them at all

Teams rarely use one assistant. A developer may run Claude Code in a terminal, a product manager may use ChatGPT on the web, and a platform engineer may use Codex in an editor. Each has its own idea of a scheduled task. If you write a governance policy for only one, the others quietly become exceptions. This post lays out what the vendors' documentation says, read on 19 October 2026, so you can see the shared questions and the real differences. It does not rank the products or say which to buy.

The comparison

QuestionClaude Code and CoworkChatGPT and Codex tasks
Where can a task run?Cloud routines on Anthropic managed infrastructure, local Desktop tasks, session loops in the terminal, and remote Cowork tasksWeb and mobile tasks that use uploaded files and connected tools, and desktop tasks that can work with local projects
What can start it?Schedule, API call and GitHub event on routines. Schedule only for local tasks and loopsTime schedules, and on eligible plans events from Gmail, Slack or GitHub on web and mobile
Can triggers combine?Yes, one routine can have several triggersA task cannot combine event triggers with a time based schedule
Local files?Desktop tasks and loops, yes. Cloud routines, no, they use a fresh cloneDesktop tasks, yes. Web tasks cannot use a folder on your computer
Permission handlingCloud routines have no permission picker and run without approval prompts. Desktop tasks have a permission mode per taskUnattended tasks run under your default sandbox settings. Read-only and workspace-write fail when they need more access
Admin controlsRoutines toggle for Team and Enterprise owners, Cowork admin toggle, an environment variable to disable the cron schedulerA permission for event triggered scheduled tasks, plus admin requirements for sandbox and approval limits
When your computer is offCloud routines and remote Cowork tasks keep running. Desktop tasks and loops do notLocal file tasks need the computer on and the app running

Three shared patterns

A saved prompt acts as the assignment. In both families the prompt is written ahead of time and then runs with whatever access the task was given. Anthropic's routines page states that the fired prompt is not live user input and cannot serve as approval for actions during the run.

Unattended means fail closed or fail open. OpenAI describes sandboxed runs where calls that need more access fail. Anthropic describes cloud routines that run shell commands and connectors without stopping. Neither is wrong, but you need to know which you have.

The creator's identity is usually the actor. Anthropic states that routine actions through your connected GitHub and connectors appear as you. OpenAI's page notes that connected apps must be authorized before creating a task, and says little about how credentials are stored.

What the differences mean for governance

  1. Inventory by product. A single register with a product column covers all of them, but discovery steps differ. See inventorying scheduled tasks across assistants.
  2. Decide event trigger policy separately. Event triggers let outsiders start runs, which changes the threat model. See event triggered or time based tasks.
  3. Set a rule for local versus cloud. Local tasks depend on a person's machine and files. Cloud tasks depend on connectors and environments.
  4. Check model retirement. OpenAI's page notes tasks that use retired models need updating and names a retirement date in October 2026 for one model in Codex. Any task pinned to a model has a lifetime.
  5. Keep a single kill switch list. For each product, write down where to pause, revoke and disable.

Worked example: one policy, three products

A team writes one rule: scheduled tasks that write to shared systems need a sponsor and a registered connector list. To apply it, the owner of a Claude routine lists repositories and connectors from the routine page. The owner of a ChatGPT task lists the connected apps and the sandbox mode. The owner of a Codex automation lists the project, the sandbox level and whether it runs in a worktree. The register has the same columns for all three, filled from different screens. The rule is the same and the evidence differs.

Try it yourself

Click through it at your own pace, or open it full screen.

Watch how an assistant is connected to a tool and what it is allowed to ask for, then compare that with the connector choices in your own scheduled tasks.

Where Safeguard fits

Safeguard offers an MCP Guardrail, agent identity, and policies and guardrails, which apply whichever assistant is calling. The Safeguard CLI can also write code, and the download page lists a Local agent and a Cloud agent as Available.

Quick check

Do all three products run tasks when my laptop is closed?

Not all tasks. Cloud routines and remote Cowork tasks do. Desktop tasks, loops and local file tasks need the computer on and the app running.

Can ChatGPT tasks start from Slack or Gmail?

According to OpenAI's documentation, on ChatGPT web and mobile, eligible plans can start tasks from Gmail, Slack or GitHub events. Event triggers are not available in the desktop app, Codex CLI or IDE extension.

Which product has the safest scheduled tasks?

That is not a question these pages answer. Safety depends on how you scope access, approvals and connectors in each one.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.