@agent-cms/agentcms

中文文档
0.4.0发布于 2026/11/03SEE LICENSE IN LICENSEES Module零依赖构建来源已验证近 30 天下载 3586

The static CMS your AI agent can run: a WordPress-style admin in the browser that publishes plain HTML to GitHub Pages, Cloudflare Pages, GitLab Pages or any S3-compatible bucket. Installed and managed by Claude Code, Codex, Hermes and other agents.

原始使用文档
文档目录16 节
  1. Why AgentCMS
  2. 🗂️ Nothing to run
  3. 🔑 Your data, your hosting
  4. 🤖 Agent-native
  5. Quick start
  6. With an AI agent
  7. Without an agent
  8. Features
  9. Themes
  10. How it works
  11. How AgentCMS compares
  12. The agentcms CLI
  13. Build a plugin or theme
  14. Documentation
  15. Contributing
  16. License

AgentCMS

The static CMS your AI agent can run.
A WordPress-style admin that runs in the browser and publishes plain HTML to any static host.
No server, no PHP, no database to patch.

npm version CI Node.js version Claude Code plugin License

Quick start · Features · Themes · How it works · Docs · Changelog

Watch the video tutorial on YouTube: Claude Code installs AgentCMS, puts a site online, then creates a custom theme and a plugin
▶️ Watch the 7-minute tutorial: from an empty folder to a live site with Claude Code, with a custom theme and a plugin.


Why AgentCMS

🗂️ Nothing to run

The public site is static files: HTML, CSS and images. There is no server or plugin to patch and no database to secure. It is fast everywhere, and hosting is often free (GitHub Pages, Cloudflare Pages, an S3 bucket).

🔑 Your data, your hosting

Content lives where you choose. It can be an encrypted SQLite file on your own hosting, Markdown files in git, Firebase, or this browser. There is no AgentCMS service, account or lock-in.

🤖 Agent-native

Everything the back office does is also a CLI command with JSON output, and ready-made skills cover Claude Code, Codex, Cursor and Hermes. Ask "write and publish an article about…" and your agent does it, with the same rules and the same output as the admin.

Quick start

With an AI agent

Claude Code

/plugin marketplace add fleox/agentcms
/plugin install agentcms@agentcms

Then just ask:

Install a new AgentCMS site on GitHub Pages.
Write and publish an article about our spring opening, with the photos in ~/Pictures/spring.
Switch to the magazine theme with an orange accent, then add a favicon and enable the RSS feed.

The agent asks where to store the content and where to host the site, then walks you through every token or key. Secrets never go into the chat.

A real Claude Code session: one sentence, and the agent installs an AgentCMS site on an S3 bucket with an encrypted SQLite database, checks it and gives the URLs
A real Claude Code session. The only edit is the ×8 speed-up while the agent works.

Once the site exists, the back office is a conversation:

A real Claude Code session: the agent publishes nine Markdown travel articles with their photos, then switches the site to the magazine theme
Same site, a second request: Markdown articles and photos published, then a new theme. Sped up ×16 while the agent works; it ends on the live site.

AgentSetup
Claude Codethe plugin above
Hermes Agent / Python agentshermes skills install fleox/agentcms/hermes/skills/agentcms-install (Python wrapper + task scripts, see hermes/)
Codex, Cursor, Windsurf, any other agentpoint it at AGENTS.md

Without an agent

npx -y @agent-cms/agentcms serve

This starts the admin on your computer (Node.js 20+). Open the printed URL and follow the setup wizard: data → hosting → install. The wizard can also put the admin itself on your site (/admin/), so other editors only need a browser.

More options, including a local build, a hand-made deploy and Firebase, are in docs/self-hosting.md.

Features

The AgentCMS post editor: a long-form article with its featured image, category, tags and excerpt

Writing

  • Block editor with a slash inserter, drag-and-drop, columns, embeds (YouTube, Vimeo, X, Spotify), custom HTML and theme blocks
  • Posts, pages, categories, tags, authors, menus and a media library with automatic responsive WebP variants
  • Drafts, previews, bulk actions and search, plus Markdown and WordPress import
  • Custom fields on any post or page (header-photo: true, price: 4.5…) that themes and plugins read at publish time

Publishing

  • One click renders the page in your browser and uploads only what changed (content hashing)
  • Clean URLs (/category/post.html), automatic cleanup of renamed paths, and listings kept in sync
  • Every write is one commit on git hosts, so you get one Pages build per action

SEO and reach

  • Canonicals, Open Graph and Twitter cards, per-term SEO, sitemaps (including News), robots.txt and RSS feeds
  • Multi-language sites: per-language URLs, editor tabs, menus, hreflang, sitemaps and feeds
  • Static search, archives and a favicon/PWA generator

Extensible

  • 5 themes and a dozen plugins included; install more as ZIP packages from the admin without rebuilding it
  • WordPress-style hooks (filters and actions) and a typed runtime API
  • agentcms ext scaffolds, checks, previews (with screenshots) and ships your own plugins and themes

Safe by design

  • Secrets (git tokens, S3 keys, passphrases) stay in each editor's browser or in the CLI's 0600 credentials file, never in the site or the repo
  • SQLite databases are AES-256-GCM encrypted by default
  • The admin UI is available in 7 languages: English, French, German, Spanish, Dutch, Portuguese and Korean

Themes

Every theme below is a real rendering of the bundled demo content, made by the publisher itself.

Magazine theme

Magazine: long-form journalism

Corporate theme

Corporate: lead generation and company sites

Storefront theme

Storefront: product catalogs

Portfolio theme

Portfolio: designers and photographers

Default theme

Default: a clean blog

Themes page of the admin

Colors, fonts and logo are editable per theme

How it works

Your data (SQLite file, Markdown in git, Firebase, this browser) is read and written by the admin, in the browser or the CLI; the admin renders static HTML with the theme and publishes only what changed to your hosting (GitHub, Cloudflare or GitLab Pages, Netlify, S3-compatible bucket, ZIP), which serves plain files to visitors

The admin is the only runtime. When you click Publish, it reads the content and renders the page with the active theme (renderToStaticMarkup), right in the browser. It then uploads the HTML, together with every listing that depends on it, through the selected hosting connector. The data backend (where content lives) and the hosting (where the site is served) are independent choices:

Data backendGood forAccounts
SQLite file (default)One owner, the simplest setup. Encrypted file on your own hosting.none
Markdown in gitTeams. Every change is a commit, and editors use their own GitHub / GitLab token.repository permissions
FirebaseReal-time multi-editor work. Free tier. Illustrated setup.Firebase Auth
This browserTrying things out, single user.none

Hostings: GitHub Pages, Cloudflare Pages, GitLab Pages, any git-deployed host (Netlify, Vercel…), S3-compatible buckets (AWS, R2, OVH, Scaleway…), a local folder, or a ZIP to upload yourself. See docs/publish-targets.md.

How AgentCMS compares

AgentCMSWordPressStatic site generatorsHeadless CMS
Visual admin for editors✅✅❌ (files + CLI)✅
Public site is static files✅❌✅depends on your front end
Server or database to maintain❌✅❌✅ (or SaaS)
Build pipeline to set up❌❌✅✅
Content stays on your own storage✅✅✅usually SaaS
Fully drivable by an AI agent✅partialpartialpartial

The agentcms CLI

The same engine the agents use, also available by hand: npx -y @agent-cms/agentcms help. Every command supports --json, and destructive commands print a plan until you add --yes.

All commands
CommandWhat it does
statusThis tool vs the latest release, and every registered site's admin version
optionsData backends, hostings and the install plan format
credentials set <type>:<name>Stores a token / key per account (hidden prompt, --from-gh, --from-aws-profile, --from-env)
install --plan plan.jsonInstalls a site (content store, publish target, theme assets, admin); --dry-run only checks
site list | add | use | rename | forgetThe sites this computer manages
doctor --site <alias>Health check with a fix for each problem
deploy-admin --site <alias>Updates the hosted admin to this release
serveRuns the admin locally for the setup wizard
content list | get | create | update | publish | unpublish | delete | preview | blocksPosts and pages, like the editor (Markdown, blocks, images, SEO, translations)
media list | upload | update | deleteMedia library (the admin's image pipeline, in Node)
terms, menus, settings, usersCategories & tags, menus, site settings, users and author profiles
plugins list | enable | disable | config | actionPlugins and their settings-page buttons
themes list | activate | config | logoThemes, their settings and logo
regenerate home | all | repair | assets | everythingThe admin's Regenerate menu
transfer export | import, statsContent export / import, dashboard numbers
ext new | check | preview | pack | installBuild, test and ship plugins and themes

Build a plugin or theme

Plugins and themes are standalone projects that build into a single ZIP. You install that ZIP from the admin (Plugins / Themes → Install), with no admin rebuild.

npx -y @agent-cms/agentcms ext new theme my-theme   # or: ext new plugin my-plugin
cd my-theme && npm install
npm run check      # validates it and renders a demo site through the real publisher
npm run preview    # demo site + desktop / mobile screenshots

Terminal: ext new theme, npm install, build, check and preview, ending on the rendered demo site

Guides: creating a plugin · creating a theme · runtime API. With Claude Code, the agentcms-extensions skill drives the whole loop.

Documentation

Publish targetsEvery hosting option, its setup and its limits
Self-hostingSetup wizard, local build, deploying and protecting the admin
FirebaseConsole setup step by step (screenshots), security rules and indexes
Themes and pluginsHow they work, and every built-in plugin
ArchitecturePublish pipeline, URLs, menus, images, i18n, code layout
AGENTS.mdInstructions for AI agents

Contributing

Bug reports and ideas are welcome: open an issue. Read CONTRIBUTING.md before opening a pull request. For security issues, follow SECURITY.md instead of opening a public issue.

npm install --legacy-peer-deps
npm run dev        # admin at http://localhost:5173
npm test           # Vitest
npm run build      # typecheck + admin + themes + CLI

License

Source-available under the PolyForm Noncommercial License 1.0.0. Personal, hobbyist, educational, research and other noncommercial use is free, and you can fork, modify and redistribute under the same terms.

Commercial use requires written authorization. This includes selling the software or hosting it as a paid service. For a commercial license, open an issue.

版本与发布记录

@agent-cms/agentcms 共发布 20 个版本,首次发布于 2026/10/23;过去 12 个月发布了 20 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.4.0latest2026/11/034 天前
0.3.132026/10/308 天前
0.3.122026/10/309 天前
0.3.112026/10/309 天前
0.3.102026/10/309 天前
0.3.92026/10/309 天前

关于 @agent-cms/agentcms 的常见问题

@agent-cms/agentcms 是什么?

The static CMS your AI agent can run: a WordPress-style admin in the browser that publishes plain HTML to GitHub Pages, Cloudflare Pages, GitLab Pages or any S3-compatible bucket. Installed and managed by Claude Code, Codex, Hermes and other agents.

如何安装 @agent-cms/agentcms?

在项目目录运行 npm install @agent-cms/agentcms,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agentcms,可以用 npx agentcms 直接运行。

@agent-cms/agentcms 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/agent-cms__agentcms 是否存在。

@agent-cms/agentcms 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agent-cms/agentcms 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agent-cms/agentcms 可以商用吗?

@agent-cms/agentcms 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@agent-cms/agentcms 的下载量有多少?

根据 npm 官方下载统计,@agent-cms/agentcms 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,586 次,日均约 120 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agent-cms/agentcms 还在维护吗?

最新版本 0.4.0 发布于 2026/11/03(4 天前);至今共发布 20 个版本,其中过去 12 个月发布了 20 个;首次发布于 2026/10/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。