TL;DR
Claude Code Routines and Managed Agents scheduled deployments both run Claude on a schedule - here is how the triggers, pricing, and limits differ, and which one fits your recurring agent work.
Direct answer
Claude Code Routines and Managed Agents scheduled deployments both run Claude on a schedule - here is how the triggers, pricing, and limits differ, and which one fits your recurring agent work.
Best for
Developers comparing real tool tradeoffs before choosing a stack.
Covers
Verdict, tradeoffs, pricing signals, workflow fit, and related alternatives.
Read next
Claude Code subagents vs agent teams vs workflows: who holds the plan, the hard limits (16 concurrent, 1,000 agents per run), and which primitive fits your task.
9 min readClaude Agent SDK vs Claude Code explained: same engine, two surfaces. Here is the concrete decision line, plus where Managed Agents fits as the hosted third option.
8 min readA practical comparison of the two most capable terminal-native AI coding agents in 2026 - covering pricing, model flexibility, multi-agent workflows, and which one fits your team.
8 min readLast updated: June 11, 2026
Anthropic now ships two first-party ways to run agents on a schedule, and they live in completely different parts of the product. Claude Code Routines attach a saved prompt, repos, and connectors to schedule, API, or GitHub triggers and bill against your claude.ai subscription. Managed Agents scheduled deployments attach a cron expression and timezone to an API-defined agent and bill per token plus $0.08 per session-hour.
Both answer the question we covered for OpenAI's stack in Codex Automations for recurring engineering work: where should the nightly triage job, the weekly docs sweep, and the post-deploy check actually run? The answer comes down to identity, billing, and how much plumbing you want to own.
A routine is a saved Claude Code configuration: a prompt, one or more GitHub repositories, and a set of MCP connectors, packaged once and run automatically on Anthropic-managed cloud infrastructure. You create and manage them at claude.ai/code/routines, from the Desktop app, or conversationally in the CLI with /schedule. Routines are in research preview and available on Pro, Max, Team, and Enterprise plans with Claude Code on the web enabled, per the official routines documentation.
Each routine can combine three trigger types:
/schedule update, with a minimum interval of one hour - anything more frequent is rejected./fire HTTP endpoint with a bearer token, shipped under the experimental-cc-routine-2026-04-01 beta header. The body accepts an optional freeform text field, so an alerting tool can pass a stack trace straight into the run.Runs are full autonomous cloud sessions: no permission prompts mid-run, repos cloned from the default branch, pushes restricted to claude/-prefixed branches unless you opt out per repository. The documented sweet spots look a lot like the patterns in Boris Cherny's agent routines write-up: nightly backlog grooming, alert triage that opens a draft PR, code review checklists, deploy verification, docs drift detection.
Two constraints matter. Routines belong to your individual claude.ai account, and everything they do appears as you: commits carry your GitHub user, Slack and Linear actions use your linked accounts. And there is a per-account daily cap on runs during the research preview, with GitHub webhook events under additional hourly caps.
Claude Managed Agents is Anthropic's hosted agent harness on the API side: you define an agent (model, system prompt, tools, MCP servers, skills) and an environment (Anthropic cloud sandbox or self-hosted), and sessions run inside it, per the Managed Agents overview. All endpoints require the managed-agents-2026-04-01 beta header. We dug into the product in our Managed Agents honest review; scheduled deployments are the piece that makes it a scheduler.
A scheduled deployment pairs an agent, an environment, and an initial user.message event with a schedule object containing a standard POSIX cron expression and an IANA timezone:
"schedule": {
"type": "cron",
"expression": "0 20 * * 5",
"timezone": "America/New_York"
}
Each time the schedule fires, the agent starts a fresh session and completes its task - no scheduler for you to build or host, as Anthropic put it in the June 9, 2026 announcement. The details are unusually well specified for a beta, based on the scheduled deployments documentation:
upcoming_runs_at timestamps so you can confirm the schedule parsed correctly. Jitter of up to 10 seconds may apply.session_rate_limited_error and agent_archived_error, filterable via has_error=true.run endpoint triggers an out-of-schedule session for testing.The same announcement added environment-variable vaults: you register an API key with a variable name and the domains it can reach, the sandbox only holds a placeholder, and the real key is attached at the network boundary. That is how a scheduled agent authenticates CLIs like Notion or Sentry without the credential ever entering the model's context.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
From the archive
Jun 11, 2026 • 8 min read
Jun 11, 2026 • 8 min read
Jun 11, 2026 • 9 min read
Jun 11, 2026 • 10 min read
| Claude Code Routines | Managed Agents scheduled deployments | |
|---|---|---|
| Where it lives | claude.ai account (web, Desktop, /schedule CLI) | Claude Platform API (SDK, curl, ant CLI) |
| Status | Research preview | Public beta (managed-agents-2026-04-01 header) |
| Trigger types | Schedule, API endpoint, GitHub events | Cron schedule plus manual run endpoint |
| Schedule granularity | Presets; custom cron with 1-hour minimum interval | Standard POSIX cron, down to the minute |
| Timezone handling | Local wall-clock, auto-converted | Explicit IANA timezone field, documented DST semantics |
| Identity | Acts as you (your GitHub user, your connectors) | Acts as a service (API key, vault credentials) |
| Billing | Subscription usage plus daily run cap | Tokens at standard rates plus $0.08 per session-hour |
| Run records | Session list, green/red status | Typed deployment run records with error filtering |
| Scale ceiling | Per-account daily cap (varies by plan) | 1,000 deployments per org, rate limits per session |
| Mid-run steering | None (fully autonomous runs) | Send events to steer or interrupt a session |
| Compliance | Subscription data handling | Not currently eligible for ZDR or HIPAA BAA |
The billing models are the real fork in the road.
Routines have no separate price. They draw down your Pro, Max, Team, or Enterprise subscription usage like interactive sessions, plus a daily cap on how many runs can start per account (verified June 11, 2026, at the routines docs). One-off runs are exempt from the daily cap but still consume subscription usage. Past a limit, organizations with usage credits enabled spill into metered overage; otherwise runs are rejected until the window resets.
Managed Agents bills on two dimensions, per the official pricing page, all numbers verified June 11, 2026:
running. Idle, rescheduling, and terminated time is free, and session runtime replaces code execution container-hour billing entirely.Anthropic's worked example on that page: a one-hour Opus 4.8 session consuming 50,000 input and 15,000 output tokens costs $0.705 total, of which runtime is $0.08 (verified June 11, 2026). A nightly job at that shape runs around $21 a month - predictable, itemized, and on the company card rather than your personal Max plan.
The honest framing: routines are effectively free if your subscription has headroom, and effectively capped if it does not. Managed Agents costs real money per run but never collides with your interactive quota - the same tension we hit in the overnight agents workflow.
Solo developer on Pro or Max. Use routines. You already pay for the subscription, /schedule daily PR review at 9am is the entire setup, and acting as your own GitHub identity is a feature, not a bug. Watch the daily run cap, and remember a green run status only means the infrastructure worked, not that the task succeeded.
Team lead automating team chores. Routines, with caveats. They are per-account, not shared, so the nightly triage routine lives on one person's account and posts as that person. If that ownership model bothers you, or an admin has disabled the org-level Routines toggle, you are looking at Managed Agents or CI instead.
Platform or product engineer. Managed Agents scheduled deployments. Typed failure records, pause and unpause semantics, explicit timezones, vault-scoped credentials, and a worked-out answer for archived resources (an archived agent auto-archives the deployment; an archived subagent records an agent_archived_error run and auto-pauses it so you can fix and resume). This is scheduling designed to be operated, not just used.
Anyone building a product on top of agents. Managed Agents, full stop. Routines' /fire endpoint is claude.ai-only and not part of the Claude Platform API surface. The Managed Agents harness is the supported substrate, and per Anthropic's engineering post, decoupling the model from sandboxes dropped p50 time-to-first-token roughly 60 percent and p95 over 90 percent.
Compliance-sensitive teams. Pause before either. Managed Agents is stateful by design and not currently eligible for Zero Data Retention or HIPAA BAA coverage, per the overview docs. Routines run in the cloud under your personal account with no mid-run approvals. Self-hosted sandboxes for Managed Agents are the most promising path here.
Some recurring work should not move to either system yet:
One more reason to stay put: both surfaces are pre-GA. Routines is a research preview whose limits may change; Managed Agents breaking changes ship behind new dated beta headers. That is not a reason to avoid them - it is a reason to keep the prompt and config in version control so you can re-create the job anywhere.
Routines are subscription-side: saved Claude Code configurations (prompt, repos, connectors) that run on schedule, API, or GitHub triggers under your claude.ai account. Managed Agents scheduled deployments are API-side: a cron expression plus IANA timezone attached to an API-defined agent, billed per token plus $0.08 per session-hour. Routines act as you; deployments act as a service.
There is no separate price. Routines draw down your Pro, Max, Team, or Enterprise subscription usage like any interactive session, subject to a per-account daily run cap during the research preview (verified June 11, 2026). Organizations with usage credits enabled can continue past limits on metered overage.
No. The minimum schedule interval is one hour, and custom cron expressions that fire more frequently are rejected. Managed Agents scheduled deployments support minute-level cron granularity if you need tighter cadences.
No. Runtime accrues only while the session status is running, measured to the millisecond. Idle, rescheduling, and terminated time is not billed, and session runtime replaces the separate code execution container-hour charge (verified June 11, 2026, on the Claude pricing page).
An individual on a Claude subscription whose work flows through their own GitHub and Slack identity should use a routine - it is the fastest path. Team infrastructure that needs service credentials, typed failure records, and company billing belongs in a Managed Agents scheduled deployment.
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Mac app for running parallel Claude Code, Codex, and Cursor agents in isolated workspaces. Watch every agent work at onc...
View ToolWorkflow automation platform with native AI agent building. Visual editor plus JavaScript/Python code nodes, 500+ integr...
View ToolOpen-source AI coding agent for terminal, desktop, and IDE. Works with 75+ LLM providers including Claude, GPT, Gemini,...
View ToolAnthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppDesign subagents visually instead of editing YAML by hand.
View AppDefine AI-assisted business automations without locking the workflow to one vendor.
View AppDeep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI AgentsConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsSpawn isolated workers with independent context windows.
Claude Code
Nimbalyst Demo: A Visual Workspace for Codex + Claude Code with Kanban, Plans, and AI Commits Try it: https://nimbalyst.com/ Star Repo Here: https://github.com/Nimbalyst/nimbalyst This video demos N...

Composio: Connect AI Agents to 1,000+ Apps via CLI (Gmail, Google Docs/Sheets, Hacker News Workflows) Check out Composio here: http://dashboard.composio.dev/?utm_source=Youtube&utm_channel=0426&utm_...

Auto Agent: Self-Improving AI Harnesses Inspired by Karpathy’s Auto-Research Loop The video explains self-improving agents and highlights Kevin Guo’s Auto Agent project as an extension of Andrej Karp...
Claude Code subagents vs agent teams vs workflows: who holds the plan, the hard limits (16 concurrent, 1,000 agents per...
Claude Agent SDK vs Claude Code explained: same engine, two surfaces. Here is the concrete decision line, plus where Man...
Claude Code parallel agents cost real money because every session draws from one quota - here is the June 2026 budgeting...
Claude Agent SDK vs LangGraph head-to-head: architecture, state handling, multi-agent patterns, and real pricing - plus...
Claude Code fast mode pricing explained: $10/$50 per MTok on Opus 4.8, the first-enable context charge, separate rate li...
Claude Fable 5 vs Gemini: how Anthropic's $10/$50 Mythos-class model compares to Gemini 3.1 Pro's $2/$12 preview on pric...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.