← NEWS DESK
analysis

OpenClaw Claw Packages Can Now Own Cron and MCP Resources on Main

Three merged changes turn experimental Claws into portable agent setups with guarded cron and MCP lifecycles, but no released OpenClaw package includes them yet.

OpenClaw’s experimental Claw package format can now describe and lifecycle-manage more than an agent and its files on main. Three changes merged on 22 July add portable export, Gateway-owned cron jobs, and ownership-aware MCP server declarations.

This is the point where Claws start to look like deployable agent setups rather than file bundles. A single package can describe an agent’s configuration, workspace files, exact skill and plugin versions, scheduled work, and MCP dependencies. The lifecycle tracks what the Claw created versus what it merely reused, so removal does not blindly tear down shared resources.

None of this is in an official release yet. The current npm latest and beta packages predate the merges, and the whole command surface remains explicitly experimental.

Operator decision

  • Ordinary operators: do not build production automation around Claws yet. Their schema, output and lifecycle can change, and no released package contains this merged cluster.
  • Source-build evaluators: use dry-run plus integrity-bound consent, then test add, status, export and removal as one lifecycle. Cron and MCP cleanup behaviour matters as much as installation.
  • Package authors: treat exports as portable agent setups, not backups. Sessions, credentials, unrelated agents and unowned state are deliberately excluded.
  • Security reviewers: examine every MCP command or remote URL and every scheduled prompt in the dry-run. Packaging a capability does not make that capability trustworthy.

What changed

Cron jobs now belong to the package lifecycle

PR #102383 makes Claw-declared jobs go through the existing Gateway cron.add API. Claws do not write the scheduler store directly.

Each declaration receives a key scoped to the final agent and package-local job ID. The lifecycle records the resulting scheduler identity, exposes it in status and export, and attempts to disable recurring work before removing the agent, package or workspace state.

The important failure policy is conservative. If a scheduler write loses its response, a retry first reconciles by declaration key instead of creating another job. If removal cannot prove that recurring work was disabled, the operation records partial state and does not continue as if cleanup succeeded. A job changed after the removal plan is preserved rather than deleted from under an operator.

MCP declarations gain managed-versus-referenced ownership

PR #102406 applies package MCP declarations through OpenClaw’s validated source-configuration writer. Environment placeholders such as ${STATUSPAGE_TOKEN} remain references; resolved secret values are not copied into Claw provenance.

A collision-free declaration introduced by the first Claw is managed. An exact declaration that already existed, or one reused by another Claw, is referenced. A conflicting declaration with the same name blocks installation instead of being overwritten.

That distinction controls removal. Unchanged managed declarations are eligible for cleanup. Referenced declarations stay by default unless the operator selects them in the integrity-bound removal plan. Compare-before-unset checks preserve an MCP definition that changed after planning, and unreadable source configuration fails closed.

This is useful guardrail engineering, not process isolation. MCP servers can still expose powerful external capabilities, and plugins remain process-wide OpenClaw capabilities rather than per-agent installations.

Export creates a derivative portable package

PR #102306 adds:

openclaw claws export <agent-id> --out <new-directory> --json

The export projects portable agent fields, copies ledger-managed workspace files and safe workspace-relative avatars, and includes recorded package, cron and MCP declarations. It refuses an existing output directory or unavailable managed files.

It intentionally excludes credentials, sessions, unrelated agents, remote avatars and unowned local state. Every regenerated package receives a derivative identity and content-derived version rather than impersonating the original publisher’s package and version.

The current merged implementation writes grouped JSON, including openclaw.claw.json. A separate proposal to make CLAW.md the canonical human-authored and exported form, PR #111391, was still open at verification time. Do not assume the eventual authoring format has settled.

The official documentation requires the experimental gate:

export OPENCLAW_EXPERIMENTAL_CLAWS=1

The intended flow is to inspect a local package or grouped JSON manifest, preview all effects, and apply only the exact plan reviewed:

openclaw claws inspect ./incident-triage.claw.json
openclaw claws add ./incident-triage.claw.json --dry-run --json
openclaw claws add ./incident-triage.claw.json \
  --yes \
  --plan-integrity <SHA256_FROM_DRY_RUN>

--yes alone is insufficient. OpenClaw rebuilds the plan and rejects consent if the source, destination or live configuration changed. MCP definitions, cron jobs, package capabilities, tool and sandbox effects are included in that plan.

Removal follows the same pattern. Referenced resources are retained by default, while broader cleanup choices must appear in both preview and apply and therefore become part of the plan digest.

Availability and verification

The three pull requests are merged into main:

  • export at 6134fdfdcdb7830fc17a99b5926a1626d0e4bd44;
  • cron ownership at 96e3051838f989d29863355a8c49ade228172ffb;
  • MCP ownership at b56006babf071ea9c9274ef1710e8f3ed8b9d21d.

Their upstream descriptions report focused lifecycle tests, including 121 tests for the MCP slice and 59 for the cron slice. Those are upstream results, not an independent Academy execution.

OpenClaw Academy installed the official 2026.7.2-beta.3 npm package in a disposable directory and invoked it with a supported Node 24.15.0 runtime. openclaw claws --help returned Unknown command: openclaw claws, confirming that the current beta does not contain the command surface. A source build of the merged main implementation was not run, so this article is source and documentation analysis rather than an independent functional test of add, export or removal.

At verification time, official npm tags remained latest 2026.7.1-2, beta 2026.7.2-beta.3, alpha 2026.5.19-alpha.1, and extended-stable 2026.6.33. GitHub’s latest release was still v2026.7.2-beta.3, published on 18 July—before all three merges.

Bottom line

The material change is not merely that Claws gained two more manifest fields. OpenClaw now has a coherent experimental ownership model spanning agent files, packages, Gateway scheduling and shared MCP configuration, plus an export path that preserves only portable state.

That makes the format worth evaluating for repeatable agent deployment. It does not make it ready for production distribution: the CLI is unreleased, explicitly gated, single-agent, and still surrounded by open follow-up work for canonical CLAW.md authoring and lifecycle diagnostics.

Verification note: OpenClaw Academy checked the official documentation, pull-request and commit APIs, merged source tree, GitHub release metadata and npm distribution tags on 22 July 2026. We independently confirmed the command is absent from the current beta package. Behavioural and test claims for unreleased main are attributed to upstream evidence and were not independently executed.

THE RECEIPTS

Claims should survive the click.

Primary links used for this article are listed openly. If the evidence changes, the verification date changes with it.
  1. 01Official experimental Claws CLI documentation
  2. 02Manage Claw MCP server ownership
  3. 03Manage Claw cron jobs through the Gateway
  4. 04Export installed agents as grouped Claw packages
  5. 05OpenClaw 2026.7.2-beta.3 release
  6. 06OpenClaw npm distribution tags

THE OPERATOR BRIEF

One useful email when the signal earns it.

Release impact, security changes and repository intelligence. No daily sludge.