Open-Source AI Content Agent for Payload CMS
Your editors ask. The agent drafts. A human publishes.
verified November 2026Payload Content Agent is an MIT plugin that puts an AI content agent inside the Payload admin. An editor describes the task - fill the missing alt text, translate an excerpt, replace a link across hundreds of posts - and the agent changes the existing fields and blocks for your team to review. Bring your own Anthropic or OpenAI key.
From request to reviewed change, in the Payload admin
Find images with no alt text, fill only those
Ask which images have no alt text, then let the agent write the missing descriptions. It looks at each image and leaves existing alt text as it is.
Approve the scope of a bulk edit
When an edit touches more than five documents, the chat first shows how many there are and what the edit will do. The list of documents is fixed before you click.
No drafts in a collection? The chat asks first
The media library has no drafts, so an edit would go straight to the site. The card shows which files the agent picked and what it will write to each. The write starts only after your click.
Review before and after, then publish
A translated excerpt is saved as a draft. The review panel shows the old and the new version side by side, and a human decides what to publish.
Rules enforced in code, not left to a prompt
Drafts where drafts exist
Where drafts are enabled, the agent writes only to the draft, and readers see the page as it was until a human publishes. In a collection without drafts, the chat asks for confirmation before it edits a document.
No publish or delete tools
Even if the model decides to publish a page or delete a document, there is nothing for it to call.
You approve the scope
When an edit touches more than five documents or removes content, the chat shows what it is about to do and waits for your click.
Checked before it saves
Code compares the result with what the edit was meant to do and sends the work back for a fix, up to three times.
Article text is material, not a task
The agent reads a document as content to work on. In our test, it did not follow an instruction hidden inside an article in three runs out of three.
Why not just connect Claude to Payload MCP?
| Your own agent + the plugin's MCP tools | Payload Content Agent chat |
|---|---|
| Your model decides the order of steps and when the task is done | The plugin runs the editorial task end to end |
| Planning and edits run on the model your client uses | A strong model plans, a light one edits |
| Your prompts and skills guide the model | The editorial order of work is already set up |
| On a destructive edit, the tool refuses and explains why | On a destructive edit, the chat stops and asks you |
What each person does with it
Editors ask.
- Edits in everyday language Update alt text, meta descriptions, links, testimonials, and nested blocks.
- Bulk edits and translation Change one field or hundreds of documents. Literal replacements run directly in code without a model.
- Pages from existing blocks The agent knows your block library and copies approved blocks unchanged.
- Sources at hand Pull context from web pages, article imports by URL, images, PDF, DOCX, and XLSX.
Content leads review.
- Editorial instructions Brand voice, glossary, and review checklist set once, attached to every conversation
- Review panel With memory enabled: everything that changed in a conversation, with before and after
- Publish or roll back A rollback undoes the agent's edits and keeps a colleague's later change
Developers set it up.
- Any Payload schema with Lexical No schema reference to write for the model: the agent reads collections, globals, fields and blocks itself
- Access you scope One MCP key covers collections; globals follow the user's own Payload permissions
- Your key, your models Anthropic or OpenAI, paid directly with no markup; change models in the settings
- Your database History, memory and usage for every step live in your PostgreSQL
- MIT license and a public SDK Add your own tools and instructions as modules
Payload Content Agent Pro: three ready-made modules.
The open package is extensible through a public SDK. You can build modules on it yourselves, take the three ready ones, or ask us to build a tool for your team.
External MCP servers
Connect Ahrefs, for example: an editor checks demand for key phrases and fixes the meta title in a Payload draft in the same chat. You choose the server's tools and the allowed parameters.
Activity Log
What the agent changed, what people edited, and how much of the agent's text reached the site.
Custom Tools
A ready way to give the agent a tool your team builds. It could be semantic search across your articles or a request to your internal API.
Try the Payload content agent yourself: start with one read-only question
You need Payload CMS 3.61 or later with the Lexical editor, Node.js 22 or later, and your Anthropic or OpenAI API key. Write access can come later.
- Install the package from npm
- Add your provider key and create a key for the agent with read-only access to the media library
- Ask: Which images in the media library have no alt text?
FAQs about Payload Content Agent
What does Payload Content Agent cost?
The plugin is open source under MIT. You pay Anthropic or OpenAI directly for model usage, with no markup. In FocusReactive's November 2026 runs, the default OpenAI pair had a median cost of about 0.65 cents per task. A five-week pilot with two content managers cost about $20. Pro is a separate paid package.
If the plugin is free, what do we get from a conversation with FocusReactive?
The open package is enough to start on your own. A conversation is for the part around it: we take one page and one edit from your site and work out what to hand to the agent, where the editor should keep the last word, and whether the open package covers it or Pro is worth adding.
Can the agent publish or delete content?
No. The agent has no publish or delete tools, so there is nothing for it to call. Where drafts are enabled, it writes only to the draft. In a collection without drafts, people create new documents, and the chat asks for confirmation before it edits an existing one.
What do we need to install Payload Content Agent?
Payload CMS 3.61 or later with the Lexical editor, Node.js 22 or later, and an Anthropic or OpenAI API key. Memory and conversation history need PostgreSQL. You don't have to describe your schema for the model: the plugin reads it by itself.
Which models should we choose?
If you're choosing on results and price, start with the OpenAI default: GPT-6.1 Terra for planning and GPT-6 Luna for edits. It passed all 69 runs in each of two series at the lowest median cost per task. If your company works with Anthropic, use Claude Sonnet 5.5 with Claude Haiku 5.5. Keep prompt caching enabled on the provider side.
Can we use only the MCP tools, without the chat?
Yes. Your agent keeps working in the client you already use, such as Claude Code, and the plugin's tools check the changes and save them as drafts. Your model decides the order of steps and when the task is done.
Where does our data go?
Payload and the database stay with you, and conversation history, memory and telemetry live in your PostgreSQL. Chat messages and the content a task needs go to the AI provider you chose, under your key. The agent's search queries go to DuckDuckGo. If you enable vector search over memory, memory text goes to the embedding model you chose. Requests to MCP servers or custom tools you connect go to those services. The plugin has no analytics of its own and sends nothing to us.
Who can use the chat, and with which permissions?
You decide who gets the chat and which collections and globals the agent works with. In collections the agent acts within one shared MCP key, not within each editor's role, so open the chat to people you trust with such edits. Globals go through Payload's regular access control with the user's own permissions. On publish and rollback, Payload checks the permissions of the person who clicked the button.
How does it compare to Sanity Content Agent?
Sanity Content Agent is part of the Sanity platform. Payload Content Agent is an MIT plugin for a CMS you host yourself. We ran both agents on 31 real editorial tasks from our content managers: read the full comparison.
What does Pro add, and how do we get it?
Payload Content Agent Pro adds three ready-made modules to the open-source plugin: external MCP servers, an activity log and custom tools. It's a separate paid package, and the package is private: get in touch and we'll open access.
Tell us about one editorial task. We'll walk through it on your content.
- One page and one edit from your site
- What to hand to the agent, what stays with the editor
- Open package or Pro: what fits your team