Components
The admin is a set of screens. They are copied into your app as source, built on your shadcn/ui parts, so you own them. The admin of this site uses them as they are, with a different theme.
npx shadcn add https://agent-cms-docs.vercel.app/r/cms-shell.json https://agent-cms-docs.vercel.app/r/cms-doc-list.json https://agent-cms-docs.vercel.app/r/cms-doc-editor.jsoncms-shell
Admin layout
Sidebar with collections, API keys and audit log, plus extraNav for your app's own screens. A sheet menu under 768px. Shows "Media" when the app has a media library.
cms-empty
Empty collection
New document, and how to write with an agent instead (CLI one-liner, MCP URL, API key link).
cms-doc-list
Document list
State tabs with counts, category and author filters, search, 7-day views, selection with bulk publish, unpublish, hide, unhide and delete. Cards with long-press selection on phones.
cms-merge
Merge after a conflict
Three-way merge when someone saved first: what merged automatically, and theirs, mine or both for each conflict.
cms-media-picker
Media picker
The dialog that chooses a file from the media library (search, type tabs, folders, upload), the upload logic (straight to the storage, parts for large files, retry of what is missing, browser-made thumbnails) and the tiles and upload panel shared with the media library.
cms-doc-editor
Document editor
Info form generated from the collection schema, markdown with live preview, autosave and restore, problems on the fields, agent change review (accept, revert), save, publish, preview links. Image and file fields and "Insert media" open the media picker when the app has a media library.
cms-block-editor
Block editor
A Notion-style block editor for the document body, written for agent-cms (no editor library). The body stays markdown: opening a document never changes it, untouched blocks keep their exact text, and what has no block of its own (HTML, columns, tables, toggles) is drawn as it will look and edited as markdown in place. Slash menu, markdown shortcuts, a toolbar over selected text, links, drag handles, block selection, copy and paste as markdown, image paste and drop into the media library, its own undo, IME input. Pass it as `slots.blockEditor`.
cms-media
Media library
Stores and folders, files as a grid or a list, search and type tabs, a panel with one file's alt text, tags and the documents that use it, uploads with progress, and delete with a look at where the file is used. Needs `createCms({ media })`.
cms-files
File manager
A storage bucket as it is, folder by folder, also files nobody uploaded through the CMS: move, download, share links and delete for several files at once. Needs `createCms({ media })`.
cms-trash
Trash
Deleted documents and files: restore them, or delete them forever (admins). Shown when `createCms({ trash })` keeps deleted things, which is the default (30 days).
cms-releases
Releases
Documents that are published (or unpublished) together: the list of releases and one release with its documents, the version of each, what blocks it, publish now or at a set time.
cms-preview-comments
Preview comments
For your public page when it shows a draft through a preview link made with "Allow comments": the comments on the draft and a box for someone without an account to add one. Needs no provider.
cms-versions
Version history
Versions with author, note and changed fields; compare any two side by side or unified with word highlights; restore or publish a version.
cms-keys
API keys
Keys with scopes, collections, last use and expiry; revoke; create with the secret shown once and MCP and CLI setup to copy.
cms-webhooks
Webhooks
Webhooks with their events and state; a test delivery, the signing secret, the delivery history with send again, edit and delete.
cms-audit
Audit log
Who did what through which channel, filtered by action, who and result.
cms-command
Command menu
Cmd+K or Ctrl+K: find documents (drafts included) across collections and open, publish or start a new one.
cms-dashboard
Dashboard
Documents by state, changes per day by people and by agents, the most read documents and the latest activity.
cms-automations
Automations
When this happens, if these hold, do that: the list, the form, a dry test against one document and the run history.
cms-roles
Roles
Roles with what they may do per collection (write, publish, delete, HTML), templates to start from, and the people in them, found by name or email.
cms-transfer
Import and export
Import an export file or markdown files after seeing what each would change; export every document as markdown.
cms-login
Sign-in pages
The CMS's own sign-in pages: passkey, single sign-on, email and password with two-step codes; first admin setup; accepting an invitation; password reset.
cms-people
People
People of the CMS's own sign-in: invite by email, roles, how each person signs in, switching accounts off, the two-step policy.
cms-account
My account
Name, theme and language, passkeys, password, two-step sign-in with recovery codes, and signed-in devices.