---
title: "Payload CMS 4.0 Beta Is Here: Try It Now and What Changed"
slug: "payload-4-0"
published: "2026-05-27"
updated: "2026-10-29"
validated: "2026-08-30"
categories:
  - "Payload"
tags:
  - "Payload CMS 4.0"
  - "Payload 4 beta"
  - "Payload CMS 4 beta release"
  - "try Payload 4"
  - "create-payload-app@beta"
  - "Payload v4 migration guide"
  - "Payload 4 breaking changes"
  - "Payload 4 admin UI"
  - "Payload 4 hierarchies"
  - "Payload TanStack Start"
  - "Payload MCP plugin"
  - "Payload 4 codemod"
llm-intent: "reference"
audience-level: "intermediate"
framework-versions:
  - "payload"
  - "next.js"
  - "tanstack start"
  - "tanstack router"
  - "vite"
status: "stable"
llm-purpose: "Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…"
llm-prereqs:
  - "Access to Payload"
  - "Access to Next.js"
  - "Access to TanStack Start"
  - "Access to TanStack Router"
  - "Access to Vite"
llm-outputs:
  - "Completed outcome: Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…"
---

**Summary Triples**
- (Payload 4.0, status, pre-alpha preview — not stable; do not use in production)
- (Admin UI, change, complete redesign with new styling tokens and theming)
- (Styling, impact, theming/styling tokens may introduce breaking changes for custom styles)
- (Tailwind, compatibility, improvements planned — expect config and build changes for some projects)
- (Content modeling, feature, native hierarchies, folders, and tags expected)
- (DAM, feature, improved digital asset management functionality (search, folders, metadata))
- (MCP / AI, feature, improved MCP setup, AI agent workflows, and Payload Skills for coding agents)
- (TanStack Start, support, experimental support planned)
- (Framework adapters, pattern, broader adapter pattern being introduced for multi-framework support)
- (Migration guidance, availability, migration guide and breaking-change notes will be published during beta/RC)

### {GOAL}
Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…

### {PREREQS}
- Access to Payload
- Access to Next.js
- Access to TanStack Start
- Access to TanStack Router
- Access to Vite

### {STEPS}
1. Follow the detailed walkthrough in the article content below.

<!-- llm:goal="Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…" -->
<!-- llm:prereq="Access to Payload" -->
<!-- llm:prereq="Access to Next.js" -->
<!-- llm:prereq="Access to TanStack Start" -->
<!-- llm:prereq="Access to TanStack Router" -->
<!-- llm:prereq="Access to Vite" -->
<!-- llm:output="Completed outcome: Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…" -->

# Payload CMS 4.0 Beta Is Here: Try It Now and What Changed
> Payload CMS 4.0 beta is available now. Try it with npx create-payload-app@beta, explore the new admin, hierarchies and MCP, and review migration risks.
Matija Žiberna · 2026-05-27

**Payload CMS 4.0 is available to try now.** The public beta launched on October 9, 2026. You can start a new Payload 4 project today with the official command:

```bash
npx create-payload-app@beta
```

The latest prerelease is **v4.0.0-beta.5** (October 27, 2026), while **v3.92.1** remains the latest stable 3.x release as of October 29, 2026. Use a separate development project to explore the redesigned admin UI, native hierarchies, TanStack Start support, and rebuilt MCP plugin. Keep existing client production deployments on Payload 3.x until a stable 4.0 release is available.

**Payload CMS 4.0 beta video preview**

<video controls playsinline preload="metadata" width="960" height="540">
  <source src="https://buildwithmatija-assets.b-cdn.net/api/images/p9jmtd2k/file/original" type="video/mp4">
  <a href="https://buildwithmatija-assets.b-cdn.net/api/images/p9jmtd2k/file/original">Watch the Payload CMS 4.0 beta video</a>
</video>

Read [Payload's official beta announcement](https://payloadcms.com/posts/blog/payload-4-beta-redesigned-admin-tanstack-mcp) and the [Payload 3-to-4 migration guide](https://payloadcms.com/docs/beta/migration-guide/v4) for the primary sources. Below, I break down the changes that affect real Next.js and Payload codebases, including access control, versions, uploads, types, and framework adapters.

> [!TIP]
> **Product manager, designer, or business owner?** This technical guide focuses on implementation. For budgeting, staffing, and upgrade risks, read [Payload 4 for business owners](/blog/payload-4-for-business-owners).

> [!NOTE]
> This guide is continuously maintained against the official Payload v4 migration guide, beta releases, and active RFCs. It reflects the architecture being finalized for the stable release.

## Payload CMS 4 in short

* **Status:** Payload 4 is in public beta and available to try with `npx create-payload-app@beta`. Current prerelease: `v4.0.0-beta.5` (October 27, 2026). Latest stable 3.x: `v3.92.1`.
* **What is new:** `overrideAccess: false` by default in the Local API, `versions: true` and authorship (`createdBy` / `updatedBy`) by default, Lexical 0.52 with Slate removed, sharp extracted to `@payloadcms/transformer-sharp`, a beta `@payloadcms/tanstack-start` adapter, and a rewritten MCP plugin.
* **Runtime baselines for v4:** Node.js 24.22.1+, Next.js 16.4.0+ (Next adapter), TypeScript 6.0.3+.
* **Should you upgrade?** Keep client production sites on Payload 3.x while v4 is in prerelease, but audit your schemas, Local API queries, storage configs and auth types now.
* **Not technical?** The [business owner's guide to Payload 4](/blog/payload-4-for-business-owners) covers budget, team and risk without code.

> [!TOOL]
> **Payload 4 Upgrade Readiness & Cost Estimator**
>
> Planning a Payload 3 to 4 migration? Answer 5 quick questions about your custom code, database state and runtime constraints to get a readiness verdict, an effort breakdown and a realistic budget range in under 90 seconds.
>
> [Launch 90-Second Estimator →](/tools/payload-4-upgrade-quiz)

## At a glance (v4 beta & migration tracker)

* **Current release train:** `v4.0.0-beta.5` (public beta since October 9, 2026; latest checked October 29, 2026). Try it with `npx create-payload-app@beta`.
* **Latest stable 3.x release:** Payload v3.92.1 (recommended production baseline while v4 is in beta).
* **Official migration guide:** [Payload 3.0 to 4.0 Migration Guide (GitHub `main`)](https://github.com/payloadcms/payload/blob/main/docs/migration-guide/v4.mdx)
* **Automated codemod:** Available via `npx @payloadcms/codemod@beta` (with interactive agent upgrade via `npx @payloadcms/codemod@beta upgrade`)
* **Minimum v4 runtime baselines:** Node.js 24.22.1+, Next.js 16.4.0+, TypeScript 6.0.3+.
* **Production recommendation:** Run Payload 3.x for current client production deployments while Payload 4 is in prerelease beta, but audit schemas, Local API queries, storage configs, and auth types against the breaking changes outlined below.

Below is the practical technical breakdown of what is changing in Payload 4.0 across core architectural pillars, followed by a comprehensive production migration checklist and recommended upgrade workflow.

---

## 1. Breaking API changes and security defaults

The most consequential changes in Payload 4 involve subtle shifts in default behavior that directly affect application security and query performance.

### `overrideAccess: false` by default in Local API

<!-- bwm:video payload-4-0/access-default format=landscape -->
<video controls autoplay muted loop playsinline preload="metadata" width="960" height="540" poster="https://img.buildwithmatija.com/api/images/ygqwjjzv/file/poster">
  <source src="https://img.buildwithmatija.com/api/images/ygqwjjzv/file/original" type="video/mp4">
</video>
<!-- /bwm:video -->

In Payload 3, invoking Local API methods (`payload.find`, `payload.findByID`, `payload.create`, etc.) without specifying `overrideAccess` effectively defaulted to bypassing access control. Local code executed with implicit superadmin privileges unless you explicitly passed `overrideAccess: false` alongside a user object.

In Payload 4, **`overrideAccess` defaults to `false`**:

```typescript
// Payload 3 behavior:
// Executed as superadmin, ignoring collection access rules
const results = await payload.find({
  collection: 'orders',
});

// Payload 4 behavior:
// Enforces access control! If no user is present in req,
// this query runs as unauthenticated / public access.
const results = await payload.find({
  collection: 'orders',
  overrideAccess: true, // Required if you intend to bypass access control
});
```

The same Local API call follows different defaults depending on the Payload version:

```mermaid
flowchart TD
    Q["Local API query<br/>orders collection"] --> O{"overrideAccess<br/>provided?"}
    O -->|"Omitted"| V{"Payload version?"}
    V -->|"Payload 3"| B["Bypass access rules"]
    V -->|"Payload 4"| A["Evaluate access rules<br/>with req.user"]
    O -->|"false"| A
    O -->|"true"| B
    A --> R["Allow, filter or deny<br/>per configured rules"]
```

*Without a user, access rules evaluate a public request. Use an explicit bypass only for trusted server-side work such as seeds and migrations.*

This is a massive security hardening step. It prevents accidental data exposure in custom Next.js server actions, Route Handlers, and API endpoints where developers forgot to enforce user access. However, it will break existing cron jobs, migrations, seed scripts, and internal APIs that omitted `overrideAccess: true`.

### Default relationship depth drops from 2 to 1

In Payload 3, relationship fields populated related documents up to a `depth` of 2 by default. While convenient for rapid prototyping, this frequently caused catastrophic query cascades on nested schemas, dragging database response times down on high-traffic sites.

In Payload 4, the default query depth is reduced from **2 to 1**:

```typescript
// Payload 3: populated post -> author -> author's avatar
// Payload 4: populates post -> author (author's avatar remains an ID string)
const post = await payload.findByID({
  collection: 'posts',
  id: '123',
});

// To restore deeper nesting on a specific query:
const postWithDeepRelations = await payload.findByID({
  collection: 'posts',
  id: '123',
  depth: 2,
});
```

One fewer populated level changes the response shape as well as the amount of database work:

```mermaid
flowchart LR
    subgraph V4 ["Payload 4 · default depth: 1"]
        direction LR
        P2["Post"] --> A2["Author document"]
        A2 -.-> M2["Avatar ID<br/>Unpopulated"]
    end
    subgraph V3 ["Payload 3 · default depth: 2"]
        direction LR
        P1["Post"] --> A1["Author document"]
        A1 --> M1["Avatar document"]
    end
```

*Solid arrows show populated relationships; the dashed arrow shows an ID reference. IDs may be strings or numbers depending on the adapter and ID configuration. Set `depth: 2` on queries that need the avatar document.*

You can restore the global default across your entire application in `payload.config.ts`:

```typescript
export default buildConfig({
  defaultDepth: 2, // Restores Payload 3 global depth behavior
  // ...
});
```

### Request creation API cleanup

The utility functions used to construct mock or synthetic Payload requests in custom endpoints and background workers have been standardized:

* `createLocalReq` is removed and replaced by **`createPayloadRequest`**.
* The old web-request-oriented `createPayloadRequest` is renamed to **`createPayloadRequestFromWebRequest`**.

### Truthful configuration types (removal of `DeepRequired`)

In Payload 3, internal sanitized types like `SanitizedConfig` and `SanitizedCollectionConfig` wrapped properties in `DeepRequired`. This created a false sense of security in TypeScript, masking fields that were actually `undefined` at runtime.

Payload 4 removes `DeepRequired` from sanitized config types. If your plugins or custom admin components inspect `config` or collection settings, TypeScript may now flag properties that require explicit optional chaining (`config.admin?.user`).

### Synchronous sanitization

Config sanitization and rich-text schema sanitization routines that previously returned Promises in multiple lifecycle stages have been refactored into **synchronous functions**, reducing asynchronous overhead during application bootstrap.

### `payload.validate()` and the new `'validate'` hook operation

Payload 4 adds first-class, on-demand document validation via `payload.validate()`. While useful for multi-step wizards, draft preflighting, and headless validation endpoints, it introduces a critical hook lifecycle change:

`beforeValidate` and `beforeChange` hooks can now receive:

```typescript
operation === 'validate'
```

If your hooks trigger external side effects—such as charging a customer via Stripe, sending emails, dispatching webhooks, or syncing documents to Algolia or Meilisearch—you **must guard those hooks** against running during validation:

```typescript
const syncToSearchIndex: CollectionBeforeChangeHook = async ({ data, operation }) => {
  // Guard against on-demand validation calls:
  if (operation === 'validate') {
    return data;
  }

  // Safe to execute side effects during create or update:
  await searchIndex.saveObject(data);
  return data;
};
```

Without this guard, validating user input in an admin form or API route will unintentionally fire external webhooks and third-party mutations.

---

## 2. Database architecture: versions and authorship by default

Payload 4 makes a fundamental shift in how document history, auditing, and database schemas are handled.

### `versions: true` by default across collections and globals

In Payload 3, collections and globals did not maintain document versions unless you explicitly configured `versions: { drafts: true }` or `versions: true`.

In Payload 4, **versioning is enabled by default** for all collections and globals, while `drafts` remain disabled by default. The default maximum history is capped at **100 versions**. Auth collections are the critical exception and remain unversioned by default.

> [!WARNING]
> If you upgrade an existing project without modifying your config, Payload 4 will generate migration scripts to create `_versions` database tables for every single collection and global in your schema!

If you operate a high-volume database or prefer lean, unversioned tables, you must explicitly opt out:

```typescript
export const Invoices: CollectionConfig = {
  slug: 'invoices',
  versions: false, // Explicitly disable versions to prevent _invoices_versions table creation
  fields: [/* ... */],
};
```

For a relational adapter, the versioning decision determines which tables a migration must create:

```mermaid
flowchart TD
    C["Invoices collection"] --> V{"versions setting?"}
    V -->|"Omitted or true"| E["Versioning enabled<br/>Drafts off by default"]
    E --> T["Main table<br/>invoices"]
    E --> H["Version history table<br/>_invoices_versions"]
    V -->|"false"| N["Main table only<br/>invoices"]
    M["Preserve v3 behavior<br/>Versioning codemod"] -.->|"Adds versions: false<br/>where unset"| N
```

*This shows the main and version-history tables, not every auxiliary table. MongoDB uses collections instead. Review generated migrations before applying them; the built-in Users collection explicitly disables versions.*

To manage this transition cleanly across large codebases, Payload provides two dedicated codemods:

```bash
# 1. Preserves existing v3 schemas by inserting versions: false across unversioned collections:
npx @payloadcms/codemod --transform migrate-versions-default

# 2. Cleans up redundant bare versions: true declarations once upgraded:
npx @payloadcms/codemod --transform remove-versions-true
```

For teams managing production PostgreSQL instances, read our guide on why you should [stop running Payload CMS in push mode and switch to migration-only workflows](/blog/payloadcms-postgres-push-to-migrations).

### `readVersions` permission inheritance risk

Previously, if a collection enabled versions without defining a specific `readVersions` access control function, version queries defaulted to requiring full authentication.

In Payload 4, if `readVersions` is undefined, it **inherits the collection's standard `read` access rule**. If a collection has public read access, its published historical versions share that read access unless explicitly restricted with a dedicated `readVersions` rule:

```typescript
export const Articles: CollectionConfig = {
  slug: 'articles',
  access: {
    read: () => true, // Publicly readable articles
    readVersions: ({ req: { user } }) => Boolean(user), // Restrict version history to authenticated staff!
  },
  fields: [/* ... */],
};
```

Without an explicit `readVersions` rule, anonymous visitors could potentially inspect draft revisions or historical snapshots through version query endpoints.

### Authorship enabled by default (`createdBy` and `updatedBy`)

Payload 4 introduces automatic document authorship tracking. When authentication is configured on the instance, Payload automatically injects `createdBy` and `updatedBy` relationship fields into all non-internal collections and globals.

* **Schema impact**: For relational/SQL databases (PostgreSQL, SQLite), this adds new foreign key columns (`created_by_id`, `updated_by_id`), requiring a generated schema migration.
* **Initial data**: Existing documents migrated from Payload 3 will initially have `null` values for these authorship fields until updated.
* **Opting out**: If you run high-throughput event logs, anonymous collections, or want to prevent schema changes on existing tables, you can disable authorship per-collection or across your config with `authorship: false`:

```typescript
export const WebhookLogs: CollectionConfig = {
  slug: 'webhook-logs',
  authorship: false, // Prevents injecting createdBy and updatedBy fields
  fields: [/* ... */],
};
```

Payload provides an automated codemod to freeze existing Payload 3 collection behaviors:

```bash
npx @payloadcms/codemod --transform migrate-authorship-default
```

### Database adapter type exports

Import paths for database adapters have been flattened. Subpath imports like `@payloadcms/db-postgres/types` and `@payloadcms/db-mongodb/types` have been eliminated. All types and utilities now export directly from the package root:

```typescript
// Payload 3:
import type { DrizzleConfig } from '@payloadcms/db-postgres/types';

// Payload 4:
import type { DrizzleConfig } from '@payloadcms/db-postgres';
```

---

## 3. Auth, security, and request typing

Authentication in Payload 4 undergoes both architectural hardening and a major TypeScript overhaul.

### Unified user types and typed `req.user`

In Payload 3, user typing was fragmented across `TypedUser`, `UntypedUser`, and `ClientUser`. Access control functions and custom hooks frequently forced developers to cast `req.user as User` to avoid lint and compiler errors.

Payload 4 consolidates these types into two primary constructs:

* **`User`**: The generic representation of a user document in your system.
* **`AuthenticatedUser`**: The strongly-typed user attached to an authenticated request.

Via PR [#17151](https://github.com/payloadcms/payload/pull/17151), `req.user` is now properly typed as `AuthenticatedUser` throughout all hooks, endpoints, and access control callbacks. Crucially, `req.user` now natively includes runtime authentication metadata:

```typescript
// Access control function in Payload 4:
export const canEditTenant: Access = ({ req }) => {
  if (!req.user) return false;

  // Strongly typed runtime auth properties:
  const strategy = req.user._strategy; // e.g., 'jwt', 'api-key'
  const sessionId = req.user._sid;     // Active session identifier

  return req.user.role === 'admin';
};
```

This eliminates the need for manual type assertions in multi-tenant authorization hooks and audit logging workflows. For real-world implementation patterns, see our guide on building a [production-ready multi-tenant architecture with Next.js and Payload](/blog/production-ready-multi-tenant-nextjs-payload).

### Versioned JWT tokens (`authVersion: 1`)

JWT tokens issued by Payload 4 now include an `authVersion: 1` field embedded directly within the signed protected JWT header. The token payload shape remains compact and performant, but header versioning establishes strict token lifecycle rules:

1. **Token rejection & re-authentication**: Payload 4 rejects tokens lacking the supported version marker. However, tokens issued by patched Payload 3 releases already include this marker; if your secrets and auth configuration remain identical, active sessions can persist across the upgrade. Tokens from unpatched or older releases will be rejected, requiring users to sign in again and headless client integrations to reissue stored bearer tokens.
2. **External JWT validation**: If your edge middlewares, microservices, or external APIs validate Payload JWTs independently, import and verify against Payload's exported `JWT_AUTH_VERSION` constant rather than hardcoding numeric values.
3. **Safe strategy rotations**: In-flight token rotations and authentication strategy migrations can be performed without session corruption or silent deserialization failures.

### Legacy API key regeneration (removal of SHA-1 fallback)

Payload 4 completely removes the legacy SHA-1 hashing fallback for API keys. 

> [!WARNING]
> Any user or collection API keys created prior to Payload 3.46.0 that have not been re-saved or updated must be regenerated before or immediately after upgrading. Requests using un-migrated SHA-1 keys will fail authentication in Payload 4.

---

## 4. Admin UI, semantic tokens, and framework-neutral component architecture

Payload's admin panel receives its most substantial design refresh since the 3.0 launch, focusing on visual density, custom branding, modern frontend styling, and complete framework decoupling.

```mermaid
flowchart TD
    subgraph UI ["Payload 4 Admin Panel"]
        Nav["Expandable sidebar<br/>Folders, tags, collections"]
        subgraph Canvas ["Fixed-width drawer stack"]
            D1["Document edit form"] -->|"Opens"| D2["Media drawer<br/>Non-blocking"]
        end
    end
    Tokens["Semantic CSS variables<br/>Sass-free theming"] -.-> UI
    Reset["Tailwind reset isolation"] -.-> Canvas
    Decoupled["Framework-neutral @payloadcms/ui<br/>Universal Link & navigation hooks"] -.-> UI
```

*The sidebar organizes content; drawers keep related editing in context. CSS tokens control the presentation, reset isolation supports custom Tailwind views, and framework-neutral UI primitives eliminate direct Next.js dependencies.*

### Component configuration alignment for Globals

In Payload 3, configuring custom admin components for globals used a different property structure than collections (`admin.components.elements` vs `admin.components.edit`).

Payload 4 unifies globals with collections:

* `globalConfig.admin.components.elements` is renamed to **`globalConfig.admin.components.edit`**.
* Globals gain full parity with collections for defining custom views, tabs, and action bars.

### Elimination of Sass in favor of semantic CSS tokens

The legacy Sass (`scss`) build pipeline has been completely removed from `@payloadcms/ui`. All admin styling now relies on pure CSS and **semantic design tokens** configured via CSS variables.

This provides two major wins:

1. **Effortless admin theming**: Agencies and platform builders can rebrand the Payload admin interface by overriding standard tokens (brand colors, neutral scales, surface radiuses, borders) without compiling Sass assets or overriding deeply nested CSS classes.
2. **Faster build times**: Removing Sass eliminates heavy preprocessing steps during local development and containerized deployments.

### Tailwind CSS reset isolation

In Payload 3, using Tailwind CSS or component libraries like shadcn/ui inside custom admin views was prone to style pollution: the admin panel's base styles bled into Tailwind elements, while Tailwind's Preflight reset broke default Payload field styling.

Payload 4 adopts an isolated CSS reset strategy. Custom admin views, custom fields, and dashboard widgets can now use modern Tailwind classes without conflict, making it seamless to construct bespoke client experiences.

### Native hierarchies, folders, and tags

Payload 4 brings hierarchical content organization into core:

* **Folders**: Single-parent containment for grouping pages, documents, and media assets.
* **Tags**: Multi-dimensional categorization across collections.
* **Sidebar tabs & grid view**: The admin sidebar supports expandable tabs and custom navigational panels, allowing editors to browse documents via content trees or visual grid views rather than flat, paginated tables.

This reduces the need for community plugins like `nested-docs` and aligns with how enterprise editorial teams organize large publishing corpuses. For an assessment of editor workflows, see our [Payload CMS for publishing teams review](/blog/payload-cms-publishing-team-honest-review-2026).

### Framework-neutral admin components and navigation hooks

The most significant structural change for custom admin views is that `@payloadcms/ui` is now **completely framework-neutral**.

In Payload 3, custom admin components routinely imported routing and navigation utilities directly from Next.js (`next/navigation` or `next/link`). In Payload 4, these direct Next.js dependencies are removed:

* Replace `useRouter`, `usePathname`, `useParams`, and `useSearchParams` from `next/navigation` with the corresponding hooks imported from **`@payloadcms/ui`**.
* Replace `<Link>` from `next/link` with the universal **`Link`** component from `@payloadcms/ui`.
* Legacy subpaths under `@payloadcms/next/client`, `@payloadcms/next/rsc`, and `@payloadcms/next/templates` have been relocated directly into `@payloadcms/ui`.

This abstraction allows identical custom fields, views, and dashboards to render seamlessly across both Next.js and TanStack Start runtimes.

### Breaking APIs for custom admin and plugin developers

Developers authoring custom plugins or bespoke admin fields should audit their components against several renamed APIs:

| Payload 3 API | Payload 4 API | Notes |
| :--- | :--- | :--- |
| `admin.components.elements` (Globals) | `admin.components.edit` | Aligns globals with collection component structure |
| Field `*Component` types | `*Props` (e.g. `TextFieldClientProps`) | Component prop types standardize on explicit props interfaces |
| Diff `comparisonValue` / `versionValue` | `valueFrom` / `valueTo` | Cleaner semantics in version comparison components |
| `AdminContext.headers` | `AdminContext.req.headers` | Request headers are grouped under the inner `req` object |
| `AdminContext.languageCode` | `req.i18n.language` | Standardized localization access |
| `useField().readOnly` | Use component `readOnly` prop | Form state hook no longer tracks readOnly directly |
| `DiffMethod` and `diffMethod` prop | *Removed* | Diff calculation has been unified |

The official codemod (`npx @payloadcms/codemod@beta`) includes automated transforms for the majority of these component renames.

---

## 5. Lexical modernization and the removal of Slate

Rich text editing in Payload 4 takes a definitive step forward, retiring legacy architectures in favor of modern AST standards.

### `@payloadcms/richtext-slate` and migration utilities are removed

The legacy Slate rich-text adapter is officially deleted in Payload 4, and **`@payloadcms/richtext-lexical` is now the sole official, built-in rich-text engine.**

Crucially, **Payload 4 also removes the legacy Slate-to-Lexical migration utilities**. Projects still using Slate cannot migrate their data directly within a Payload 4 installation.

> [!IMPORTANT]
> Projects still using Slate must complete their rich-text data migration while running the latest Payload 3.x release (currently **Payload v3.92.1**). Verify the migrated Lexical documents in staging before upgrading to Payload 4.

```bash
# Complete this migration while still on Payload 3.x:
pnpm remove @payloadcms/richtext-slate
pnpm add @payloadcms/richtext-lexical
```

Once all rich-text fields have been converted to Lexical node trees on Payload 3, the codebase is ready for the v4 upgrade.

### Lexical 0.52.0 upgrade and schema enhancements

Payload 4 upgrades the underlying Lexical framework from version 0.41 to **Lexical 0.52.0**. Key enhancements include:

* **Upstream Lexical breaking changes**: Teams maintaining custom Lexical nodes or consuming internal Lexical APIs directly must review upstream 0.52 changes regarding node serialization, selection state, and editor command listeners.
* **`TableFeature` graduation**: `EXPERIMENTAL_TableFeature` is stabilized and renamed to `TableFeature`.
* **Stricter link nodes**: Link node structures are validated against stricter schemas, preventing malformed URLs and broken target attributes.
* **Self-describing node schemas**: Lexical nodes now provide their own runtime JSON Schemas. Furthermore, the internal Lexical node `version` property is no longer required in schemas exposed through CLI commands and MCP agent interfaces.
* **Removal of deprecated converters**: Legacy HTML/Markdown converter functions from early 3.x releases have been pruned in favor of the unified `@payloadcms/richtext-lexical` converter utilities.

---

## 6. List view performance and the Select API

Query efficiency in the admin panel has been overhauled to handle collections with millions of rows.

### List View Select API enabled by default

In Payload 3, loading an admin list view fetched entire document objects from the database unless you explicitly configured `admin.enableListViewSelectAPI: true`. On collections with large rich-text fields or deep relations, opening the admin table caused significant server memory consumption and slow query times.

In Payload 4:

* **The Select API is active by default.**
* The config option `admin.enableListViewSelectAPI` has been removed.
* Payload automatically crafts database queries that project **only the columns currently visible** in the editor's active table view.

### `forceSelect` replaced by Collection/Global `select()` function

In Payload 3, collections and globals could define a static `forceSelect` object to ensure critical fields (such as permissions, slugs, or tenant IDs) were always returned from database queries.

In Payload 4, the static `forceSelect` object is removed and replaced by a dynamic, top-level **`select()` function** that receives the current operation, request, and the caller's requested field selection:

```typescript
export const Posts: CollectionConfig = {
  slug: 'posts',
  // Replaces the caller's selection; merge incoming fields to retain caller projections:
  select: ({ select }) => (select ? { ...select, title: true, slug: true } : undefined),
  fields: [/* ... */],
};
```

> [!WARNING]
> Unlike Payload 3's automatic deep-merging behavior, the new `select()` function **completely replaces** the incoming query selection. If a caller requests `{ id: true }` and your `select` function returns `{ title: true, slug: true }`, the `id` field will be excluded unless you explicitly spread `...select`!

Payload provides an automated codemod to rewrite legacy static objects:

```bash
npx @payloadcms/codemod --transform migrate-force-select
```

---

## 7. Uploads, storage transformers, and file versioning

File handling and digital asset processing undergo their largest architectural transformation since Payload 1.0. Payload 4 decouples image manipulation from the server runtime, standardizes storage adapters, and adds native file versioning.

### Sharp extracted to `@payloadcms/transformer-sharp`

In Payload 3, the heavy Sharp image processing library was baked directly into Payload's core engine, requiring native C++ binary bindings even for deployments that only stored raw PDFs or offloaded transformations to third-party CDNs.

In Payload 4, image transformation is fully pluggable:

* Sharp has been extracted into the standalone package **`@payloadcms/transformer-sharp`**.
* The top-level `sharp` configuration option in `payload.config.ts` has been removed.
* Image resizing and format conversion are now configured under `upload.transformers`.

```typescript
import { buildConfig } from 'payload';
import { sharpTransformer } from '@payloadcms/transformer-sharp';

export default buildConfig({
  upload: {
    transformers: [
      sharpTransformer(), // Explicitly registers Sharp for image processing
    ],
  },
  // ...
});
```

### `imageSizes` renamed to `variants` (`doc.sizes` → `doc.variants`)

With transformers decoupled from core, the concept of static `imageSizes` has been unified into transformer **`variants`**.

Crucially, this renames the stored document property:

```typescript
// Payload 3:
const url = doc.sizes?.thumbnail?.url;

// Payload 4:
const url = doc.variants?.thumbnail?.url;
```

This is a comprehensive breaking change that touches frontend UI components, image loaders, GraphQL queries, custom selects, and database tables.

> [!CAUTION]
> **Database migration danger for SQL users**: Do not rely on an automatic `payload migrate:create` schema diff for this rename! An auto-generated migration may attempt to `DROP COLUMN sizes_*` and `ADD COLUMN variants_*`, permanently destroying existing image metadata. Instead, execute Payload's official predefined `sizes-to-variants` database migration script to rename columns safely in place.

### Native file versioning and original preservation

Upload collections in Payload 4 retain the original, unmodified file across asset revisions and thumbnail regenerations:

* Original files are preserved on storage disks with an `-original` filename suffix.
* Documents gain new native metadata columns: `original`, `prefix`, and `_objectKey`.
* Storage adapters now require a **`copyFile`** operation to support non-destructive file duplication across document versions.
* Relational database schemas (PostgreSQL, SQLite) require migrations to add these new file tracking columns to all upload collections.

### Top-level storage adapters and `/api/upload-instructions`

Storage adapters (such as S3, Cloudflare R2, Azure, and Google Cloud Storage) have been promoted from external plugins to first-class, top-level configuration options under `config.storage`.

Direct-to-storage client uploads have also been unified across all official adapters via a standardized endpoint:

```
POST /api/upload-instructions
```

Clients receive signed pre-authenticated URLs and headers, uploading binaries directly to cloud bucket storage without proxying multi-megabyte payloads through the Node.js server process.

### Strict upload limits (`upload.abortOnLimit: true`)

In Payload 3, when an uploaded file exceeded configured size limits, certain streaming paths could truncate the file and proceed. 

In Payload 4, **`upload.abortOnLimit` defaults to `true`**. Any file upload exceeding collection or server limits is immediately aborted and rejected with an explicit **HTTP 413 (Payload Too Large)** status code, preventing partial or corrupted media writes.

---

## 8. Developer tooling, CLI, codemods, and JSON Schema

Payload 4 introduces first-class CLI commands, automated migration tooling, and runtime schema generation to streamline upgrades and developer experience.

### The official migration codemods (`npx @payloadcms/codemod@beta`)

Payload provides both mechanical AST codemods and an interactive upgrade assistant:

```bash
# Automated mechanical code transforms:
npx @payloadcms/codemod@beta

# Interactive, agent-assisted upgrade workflow:
npx @payloadcms/codemod@beta upgrade
```

The codemod inspects your repository and automatically performs mechanical transformations:

* Injects `versions: false` into collections that lacked explicit versioning, preserving existing database schema shapes.
* Injects `authorship: false` for teams electing to opt out of automatic `createdBy`/`updatedBy` tracking.
* Replaces deprecated request utilities (`createLocalReq` → `createPayloadRequest`).
* Updates global component structures (`admin.components.elements` → `admin.components.edit`).
* Migrates database adapter subpath imports to root exports (`@payloadcms/db-postgres/types` → `@payloadcms/db-postgres`).
* Adjusts static `forceSelect` objects to dynamic `select()` functions.
* Migrates custom admin component imports from Next.js to `@payloadcms/ui`.

> [!IMPORTANT]
> The codemod is an **accelerator, not proof of completion**. It deliberately flags complex custom access control functions, deep relationship queries, and custom database migrations for manual developer audit.

### Redesigned custom CLI commands (`config.cli.commands`)

In Payload 3, registering custom CLI scripts relied on configuring `config.bin`, which lacked schema-backed argument parsing and proper database lifecycle handling.

Payload 4 eliminates `config.bin` and the legacy `migrateCLI` export in favor of **`config.cli.commands`**, utilizing the `defineCLICommand` helper from `payload/cli`:

```typescript
// src/cli/seed.ts
import { strictObject, z } from 'payload';
import { defineCLICommand } from 'payload/cli';

export const seedCommand = defineCLICommand({
  description: 'Seed the database with sample products and tenants.',
  input: strictObject({
    clear: z._default(z.boolean(), false),
  }),
  handler: async ({ args, getPayload }) => {
    // getPayload handles DB connection pooling and lifecycle cleanly:
    const payload = await getPayload();
    payload.logger.info(`Seeding database (clear=${args.clear})...`);
    
    if (args.clear) {
      await payload.delete({ collection: 'products', where: {} });
    }
  },
});
```

Register the command in `payload.config.ts`:

```typescript
export default buildConfig({
  cli: {
    commands: {
      seed: './src/cli/seed.js#seedCommand',
    },
  },
  // ...
});
```

Custom commands are integrated directly into the root Payload executable and appear in **`payload --help`** (without needing the old `payload cli <command>` prefix).

### Runtime `jsonSchema` and schema synthesis

On field configurations, `typescriptSchema` has been renamed to **`jsonSchema`**. Rather than merely generating static TypeScript types at build time, `jsonSchema` is preserved at runtime:

* **Runtime MCP validation**: The Model Context Protocol integration uses JSON Schema to validate LLM tool payloads against exact field definitions.
* **Lexical node schemas**: Individual Lexical rich-text nodes now expose their own JSON Schemas.
* **API updates**: `configToJSONSchema` returns both JSON Schema and TypeScript type definitions; `fieldsToJSONSchema` accepts an options object; and rich-text `outputSchema` is renamed to `jsonSchema`.

---

## 9. Model Context Protocol (MCP) and agent workflows

AI-assisted engineering is a first-class architectural pillar of Payload 4. Rather than an experimental add-on, the `@payloadcms/mcp` package is rewritten as a tightly integrated subsystem with a refined security and authentication model.

```mermaid
flowchart TD
    A["AI agent / LLM client"] -->|"POST streamable HTTP"| B
    subgraph MCP ["MCP Subsystem"]
        B["User API-key auth (req.user)"] --> C["Authorized tools"]
        S["Runtime JSON Schemas"] -.-> C
        I["Collection agent instructions"] -.-> C
    end
    subgraph Core ["Payload Core"]
        C --> E["Configured access checks"]
        E --> D["Generic collection / global operations"]
        D --> F["Database adapter"]
    end
    F -->|"Result (IDs or entities)"| A
```

*Exposing tools to an MCP client does not grant unrestricted database access. The caller is authenticated as a standard Payload user via API key, and all built-in generic tools enforce configured collection access rules before execution.*

### Rewritten authentication and transport architecture

The v4 MCP integration introduces several critical breaking changes:

1. **Standard user API keys**: The dedicated `payload-mcp-api-keys` collection from early previews has been removed. MCP now authenticates callers using standard Payload **User API keys**, establishing `req.user` as the identity source for all operations. Existing preview keys must be recreated as standard user API keys.
2. **POST streamable HTTP transport**: Payload 4 removes the legacy Server-Sent Events (SSE) configuration in favor of high-performance **POST streamable HTTP** requests.
3. **Opt-out generic tools**: Collections and globals are exposed to AI agents by default via standardized generic tools (`findDocuments`, `createDocuments`, `updateDocument`, `deleteDocuments`, `countDocuments`). You can selectively disable tools or hide sensitive collections in collection configs via `mcp.tools: false`.
4. **Auth collections remain opt-in**: Authentication collections (such as Users) are **not** exposed by default. Exposing auth operations to AI agents requires explicit configuration.
5. **Custom tools signature**: Custom MCP tools now define arguments using `input` (replacing `parameters`), and handlers receive a structured context object containing `args`, `payload`, and `req`.
6. **Return shape optimization**: To conserve LLM context windows, document creation and update tools return only IDs by default. Clients requiring full objects must specify `returning: true`.
7. **Secure URL uploads**: Direct file uploads initiated by AI agents via URLs require an explicit domain whitelist configured under `pasteURL.allowList`.
8. **Native LLM/Agent Instructions**: Payload core now manages agent instructions directly on collections and globals. These instructions are surfaced to AI assistants through CLI commands and MCP schema discovery, providing agents with domain-specific editorial rules and validation guidance.

---

## 10. Framework ecosystem and TanStack Start

Payload 3 tied itself intimately to Next.js and the React Server Components (RSC) App Router. While Next.js remains the primary tier-one platform, Payload 4 establishes an abstracted, framework-neutral runtime boundary.

### `@payloadcms/tanstack-start` beta adapter

Payload 4 officially enters beta with first-party TanStack Start support. The **`@payloadcms/tanstack-start`** adapter decouples Payload backend execution and admin rendering from Next.js, targeting:

* **TanStack Start** (SSR server framework)
* **TanStack Router** (Type-safe client routing)
* **Vite** (Next-generation local bundler)

The v4.0.0-beta.2 release pinned the adapter to stable upstream TanStack dependencies:
* `@tanstack/react-start` `^1.169.1`
* `@tanstack/react-router` `^1.170.44`

Beta.2 also introduced dedicated TanStack documentation and first-class support for custom API routes. 

> [!NOTE]
> Payload 4 itself remains in active prerelease beta. While TanStack Start support is fully functional and actively documented, engineering teams evaluating TanStack for client deliverables should validate framework-specific behaviors—such as server functions, cookie handling, and streaming responses—in staging before production rollout.

The adapter boundary lets framework-specific rendering and routing connect to the same Payload configuration:

```mermaid
flowchart TD
    subgraph Frameworks ["Framework-specific integration"]
        N["Next.js adapter<br/>App Router / RSC"]
        T["TanStack Start adapter<br/>Vite / TanStack Router<br/>Official v4 beta"]
    end
    subgraph Core ["Shared Payload core"]
        C["Local API and<br/>server handlers"] --> P["Collections and globals"]
        P --> H["Auth, access and hooks"]
        H --> D["Database adapters<br/>Postgres / SQLite / MongoDB"]
        M["MCP subsystem"] --> C
    end
    N -->|"Admin and API mounting"| C
    T -.->|"Admin and API mounting"| C
```

*These are alternative framework integrations, not two runtimes required by one deployment. Next.js remains the primary path; evaluate the TanStack adapter in staging before production migration.*

### Minimum runtime baselines

Running Payload 4 requires modern infrastructure. The minimum supported runtime versions across the v4 release branch are:

| Prerequisite | Minimum Version | Notes |
| :--- | :--- | :--- |
| **Node.js** | `>= 24.15.0` | Required for native web crypto, fetch streams, and modern ESM module resolution |
| **Next.js** (if using Next adapter) | `>= 16.4.0` | Updated minimum aligned with Next.js Turbopack stability and current server component specifications |
| **TypeScript** | `>= 6.0.3` | Required for advanced type inference and runtime schema synthesis |

For details on optimizing modern Next.js deployments, see our analysis on [Payload CMS and Next.js compatibility](/blog/payload-cms-nextjs-16-compatibility-breakthrough).

---

## 11. Jobs, localization, and operational breaking changes

Beyond core schemas and access control, Payload 4 introduces several operational refinements across background tasks, multilingual publishing, and transactional emails.

### Jobs API security and schema hardening

Payload 4 hardens the Jobs framework for enterprise queue reliability:

* **Access control enforcement**: Local API calls within the Jobs API now default `overrideAccess` to `false`. Generic CRUD access on the internal `payload-jobs` collection is denied by default.
* **Removed legacy properties**: `jobs.depth` and `jobs.runHooks` have been removed.
* **Native metrics**: Job stats and queue metadata are now enabled by default. Concurrency management fields and parent-task logging are always active.
* **Type renames**: `TaskType` and `WorkflowTypes` are renamed to **`TaskSlug`** and **`WorkflowSlug`**.
* **Atomic job claiming**: Database adapters require an `updateJobs` implementation to support atomic, race-condition-free worker claiming. SQL installations using jobs may require generated schema migrations.
* **Stricter cron validation**: Schedule parsing now uses stricter Croner validation; malformed cron strings will throw configuration errors at bootstrap.

### Localization: active-locale publishing

Editorial workflows on multilingual sites receive an important behavioral update:

* **Active-locale publication by default**: In Payload 4, clicking the primary **Publish** button on a localized document publishes only the **currently active locale**.
* **Publishing all locales**: Publishing every locale simultaneously is now a secondary action in the publish dropdown.
* **Removed options**: The legacy `localization.defaultLocalePublishOption` configuration and the old nested-localization compatibility flag have been removed.

This change prevents editors working on a regional translation (e.g., German or French) from accidentally publishing incomplete or draft content in other locales.

### Nodemailer 10 and transactional email

The `@payloadcms/email-nodemailer` adapter has been updated to **Nodemailer 10**.

* If your application configures Nodemailer using `transportOptions` or default SMTP settings, no changes are required.
* If you instantiate and pass a custom Nodemailer 9 transport instance, you must upgrade your project dependency to Nodemailer 10 and remove `@types/nodemailer` (which are now bundled natively).

---

## The Production Upgrade Checklist: 10 Critical Checks

Moving from Payload 3 to Payload 4 requires more than running an automated codemod. Use this 10-point checklist to audit your application before deploying database migrations:

```mermaid
flowchart TD
    subgraph PreUpgrade ["1. Pre-upgrade audit on Payload 3.91.0"]
        S["Complete Slate-to-Lexical migration"]
        A["Audit legacy API keys (SHA-1)"]
    end
    subgraph SchemaAudit ["2. Schema and config review"]
        L["Set overrideAccess on internal tasks"]
        V["Configure versions and readVersions"]
        W["Decide authorship: false vs true"]
        U["Configure @payloadcms/transformer-sharp"]
    end
    subgraph CodeModTrial ["3. Isolated branch trial"]
        C["Run npx @payloadcms/codemod@beta"]
        T["Type-check: npx tsc --noEmit"]
        M["Execute sizes-to-variants migration"]
        I["Verify MCP User API keys & routes"]
    end
    PreUpgrade --> SchemaAudit --> CodeModTrial
```

*Treat each phase as an explicit gate. Never run auto-generated migrations against production without testing predefined data scripts on a database snapshot.*

1. **Slate-to-Lexical pre-migration**: Complete all rich-text conversions while running **Payload 3.91.0**. Slate adapters and migration converters are completely absent in Payload 4.
2. **Audit Local API and Jobs calls (`overrideAccess: false`)**: Search your codebase for `payload.find`, `payload.create`, and Jobs invocations that omit `overrideAccess`. Add `overrideAccess: true` to background workers, seed scripts, and admin tasks.
3. **Review document versioning and `readVersions`**: Check whether collections should inherit `versions: true` (with 100 history limit) or be explicitly set to `versions: false`. Verify that publicly readable collections have an explicit `readVersions` rule to prevent historical draft leakage.
4. **Prepare for authorship fields**: Review whether `createdBy` and `updatedBy` relationships should be injected across collections, and prepare relational databases for the resulting foreign key columns.
5. **Storage transformers and `variants` rename**: Install `@payloadcms/transformer-sharp` and register it in `upload.transformers`. Update frontend code from `doc.sizes` to `doc.variants`. Run Payload's predefined `sizes-to-variants` migration rather than an auto-generated schema diff.
6. **Guard hooks against `payload.validate()`**: Review `beforeValidate` and `beforeChange` hooks to ensure third-party side effects (payments, webhooks, search indexing) check `if (operation === 'validate') return data;`.
7. **Refactor custom Admin UI imports**: Replace `next/navigation` and `next/link` imports in custom admin components with universal hooks and `<Link>` from `@payloadcms/ui`. Audit field props (`*Props`) and diff variables (`valueFrom` / `valueTo`).
8. **Migrate MCP credentials to User API keys**: Recreate legacy `payload-mcp-api-keys` as standard user API keys. Switch transport configurations to POST streamable HTTP and review collection tool exposure.
9. **Verify runtime baselines**: Ensure hosting environments, CI runners, and Dockerfiles run Node.js `>= 24.15.0`, Next.js `>= 16.4.0`, and TypeScript `>= 6.0.3`.
10. **Test database migrations on a staging snapshot**: Run generated migrations against a fresh clone of production data, verifying table creations, authorship foreign keys, and file version columns before touching live databases.

---

## Recommended upgrade path

When you are ready to evaluate the upgrade in a test environment:

### 1. Complete prerequisites on Payload 3.x
Ensure your application is upgraded to **Payload v3.92.1** or the latest patched 3.x release. If any collections use Slate rich text, run the 3.x Slate-to-Lexical converter and verify your documents.

### 2. Branch cleanly and upgrade packages
Create a dedicated migration branch:

```bash
git checkout -b feature/payload-4-beta-upgrade
```

Upgrade your `@payloadcms/*` packages to the `@beta` distribution tag:

```bash
# Update dependencies to the latest v4 beta:
pnpm up "@payloadcms/*@beta" "payload@beta"
```

### 3. Run the automated codemods
Execute Payload's upgrade codemod to perform mechanical AST rewrites:

```bash
# Interactive, agent-assisted upgrade:
npx @payloadcms/codemod@beta upgrade

# Or apply specific mechanical transforms:
npx @payloadcms/codemod@beta --transform migrate-versions-default
npx @payloadcms/codemod@beta --transform migrate-authorship-default
npx @payloadcms/codemod@beta --transform migrate-force-select
```

### 4. Run TypeScript verification
Check for API signature changes, component prop updates, and removal of `DeepRequired`:

```bash
npx tsc --noEmit
```

### 5. Apply predefined and custom migrations
Execute the official `sizes-to-variants` migration script to preserve image metadata. Then generate and inspect your schema migrations:

```bash
pnpm payload migrate:create
```

Inspect the generated migration file to ensure no unintended column drops occur, then apply it against your local database:

```bash
pnpm payload migrate
```

### 6. Validate access control and storage uploads
Run your integration test suite, verifying:
* Local API queries in background tasks return expected datasets (`overrideAccess: true`).
* Public API endpoints cannot leak unpublished version history.
* Media uploads generate correct variants and enforce the `upload.abortOnLimit` 413 ceiling.
* MCP tools properly authenticate with User API keys over POST streamable HTTP.

## Need help with the Payload 3 to 4 migration?

If you want an experienced team to audit your schemas, plugins, and custom admin extensions ahead of the stable v4 rollout, schedule a [Payload CMS audit](/payload-cms-audit) or engage an expert [Payload CMS developer](/payload-cms-developer). For larger replatforming initiatives, explore our dedicated [Payload CMS migration](/payload-cms-migration) services.

> [!TOOL]
> **Size the migration before you commit**
>
> The [Payload 4 upgrade quiz](/tools/payload-4-upgrade-quiz) gives you a readiness verdict for your site, and the [Payload CMS cost estimator](/tools/payload-cms-cost-estimator) helps you budget the wider project. If you would rather talk it through, [get in touch](/contact).

If you are not the one writing the code, send your stakeholders the [Payload 4 guide for business owners](/blog/payload-4-for-business-owners).

## Payload CMS 4 FAQ

### Is Payload CMS 4 released yet?

Payload 4 has been available to try in public beta since October 9, 2026. The latest verified prerelease is `v4.0.0-beta.5` (October 27, 2026). Start a new project with `npx create-payload-app@beta`. A stable 4.0 release date has not been confirmed.

### What are the biggest breaking changes in Payload 4?

The ones that most often affect real projects are `overrideAccess: false` by default in the Local API, `versions: true` by default across collections and globals, authorship fields enabled by default, the removal of Slate in favour of Lexical 0.52, sharp moving to `@payloadcms/transformer-sharp`, and `imageSizes` being renamed to `variants`. The sections above cover each one with migration steps.

### Should I upgrade to Payload 4 now?

For client production deployments, use the current patched Payload 3.x release (`v3.92.1` as of October 29, 2026) while v4 is in beta. Try v4 in an isolated development project, audit schemas and access control, and complete the Slate-to-Lexical migration before upgrading existing data.

### What do I need to run Payload 4?

Node.js 24.22.1 or newer, Next.js 16.4.0 or newer when using the Next adapter, and TypeScript 6.0.3 or newer.

### Is there a tool that automates the migration?

Yes. The official codemods run via `npx @payloadcms/codemod@beta`, and `npx @payloadcms/codemod@beta upgrade` starts the interactive, agent-assisted workflow. You still need to review database migrations and access control by hand.

## LLM Response Snippet
```json
{
  "goal": "Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…",
  "responses": [
    {
      "question": "What does the article \"Payload 4.0 Preview: What Developers Need to Know Now\" cover?",
      "answer": "Payload 4.0 preview: admin UI redesign, native hierarchies, DAM, Tailwind & MCP/AI updates — follow this living tracker for beta, migration guidance and…"
    }
  ]
}
```