File-backed content management
Content that stays in your repository.
prime Content Management System gives your Markdown a focused editor and an agent that drafts edits for you. Nothing it writes lands until someone reads the diff and applies it. For Astro, Next.js, SvelteKit and any Vite site.
The Posts fields, in schema order. The body lives in Write.
How it works
Three steps, and your files never move.
Point it at your content
Run primecms init. It reads the Markdown you already have, infers the fields, installs prime, and connects your framework. The typed config is one file you can adjust.
bunx @getprimecms/cli initWrite in a focused editor
Writers get a reading-width editor, real form fields and drafts that survive a closed tab. Every save is a normal file on disk.
content/posts/hello.mdReview what the agent proposes
Ask for an edit or an audit and the agent drafts a changeset. You see a readable before and after for every file, then apply all of it or just the parts you want.
1 proposal waiting
The agent
An agent that asks before it edits.
It searches, reads and checks your content, then proposes. A proposal can touch many files; you see every change as a readable diff and apply all of it, or only the parts you want.
- Knows where you are
- “This post” means the one you have open. Select a paragraph and it sees that too.
- Cannot save
- Its only write tool creates a proposal. You hold the apply button.
- Never overwrites you
- If you edit a file after it read it, the proposal is marked out of date and blocked.
- Any model
- Bring a key for Anthropic, OpenAI, Google or a local model. Built on the AI SDK and assistant-ui.
Frameworks
One admin. Whatever you build with.
prime is a single web-standard request handler. Each adapter is a few lines that mount it, so the editor, the agent and your content behave the same everywhere. bunx @getprimecms/cli init adds them for you.
import prime from "@getprimecms/astro";
import { defineConfig } from "astro/config";
export default defineConfig({
integrations: [prime()],
});Works in astro dev out of the box. Add any server adapter to deploy the admin; static builds stay static.
import { createPrimeRoute } from "@getprimecms/next";
import config from "../../../prime.config";
export const { GET, HEAD, POST, PUT, PATCH, DELETE } = createPrimeRoute(config);
export const dynamic = "force-dynamic";
export const runtime = "nodejs";One App Router route handler on the Node.js runtime, locally or on Vercel with GitHub storage.
import { primeHandle } from "@getprimecms/sveltekit";
import config from "../prime.config";
export const handle = primeHandle(config);A server hook. Combine it with your own hooks using sequence().
import prime from "@getprimecms/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [prime()],
});For React, Vue, Solid, Qwik or any Vite app. Saved content hot-reloads into the page you are looking at.
bunx @getprimecms/cli init # infers a schema, installs and connects prime
bunx @getprimecms/cli dev # admin on http://127.0.0.1:4300/primeHugo, Eleventy, Jekyll, Zola: run prime next to your generator and it edits the same files.
Primers
Start from a site that already works.
A free primer for every framework: posts, pages and settings, with a small design of its own to keep or replace. Start one with bunx @getprimecms/cli new.
Astro primer
A quiet serif journal, with the dates in the margin.
bunx @getprimecms/cli new astroNext.js primer
Notes with an index sidebar that lists every post and page.
bunx @getprimecms/cli new nextSvelteKit primer
A large headline over a grid of numbered posts.
bunx @getprimecms/cli new sveltekitVite primer
A single-column profile: a card for you, then your posts.
bunx @getprimecms/cli new viteHugo primer
A plain-text log in monospace, dates first.
bunx @getprimecms/cli new hugoJekyll primer
A classic blog, with dates kept in the file names.
bunx @getprimecms/cli new jekyllEleventy primer
A zine: an issue-numbered masthead and Didot headlines.
bunx @getprimecms/cli new eleventy
Your files
A CMS that treats Markdown like source code.
- Your formatting survives
- Comments, key order and quoting in frontmatter are edited in place, not rewritten.
- Unknown fields are kept
- Frontmatter prime does not model passes through untouched, so other tools keep working.
- No lost edits
- Saves check the file version. If someone changed it meanwhile, prime stops instead of overwriting.
- MDX is safe
- Components, imports and expressions show as blocks and are saved exactly as written. A body that does not parse is refused.
- Works without a disk
- On Vercel, Netlify or Cloudflare, GitHub storage turns every save into a commit.
- Checks in CI
- primecms check validates every entry against your schema and fails the build when one is broken.
Documentation
A guide to how prime works.
Install prime in an existing project, describe your collections, connect a model, and deploy the admin behind real authentication.
Pricing
Try any plan free for 14 days.
Pay monthly, or yearly and get two months free. Each site covers its subdomains and staging.
Solo
For your own site or a single client.
$12USD a month
Billed monthly.
Monthly price $12$10USD a month
Billed $120 yearly.Save $24 a year
1 production site
- The editor, live preview and reviews
- The agent, with your own model key
- Every update while you subscribe
or buy now: Solo, $12 a monthSolo, $120 a year
Studio
For small teams running a handful of sites.
$39USD a month
Billed monthly.
Monthly price $39$32USD a month
Billed $384 yearly.Save $84 a year
$59USD a month
Billed monthly.
Monthly price $59$49USD a month
Billed $588 yearly.Save $120 a year
5 production sites
- Everything in Solo
- Roles: writers send changes for review
- Your logo and name in the admin
- Email support
or buy now: Studio, $39 a monthStudio, $384 a yearStudio with hosted agent, $59 a monthStudio with hosted agent, $588 a year
Agency
For agencies shipping client sites every month.
$249USD a month
Billed monthly.
Monthly price $249$207USD a month
Billed $2,484 yearly.Save $504 a year
Unlimited production sites
- Everything in Studio
- One admin for every client site
- Priority email support and help setting up your first sites
Hosted agent includedNo API key needed. Starts with your first payment.
Start free trialor buy now: Agency, $249 a monthAgency, $2,484 a year
No card needed for the trial. Your content stays as files in your repository.Prices in USD, before tax. Cancel any time; your published site keeps working. Trials use your own model key, and the hosted agent starts with your first payment. How licensing works.
In your repository. Markdown and MDX stay the source of truth, so content is readable, reviewable and portable without an export step. prime never stores your content anywhere else.
Astro, Next.js, SvelteKit and any Vite app through adapters, plus a standalone admin for Hugo, Eleventy and other generators. Every plan covers every framework.
No. Its only write tool creates a proposal. You review the diff, untick anything you do not want, and apply the rest. A proposal made before someone else saved the same file is blocked.
A model prime runs for you, so there is no provider account or API key to set up. Agency includes it, and Studio can add it for $20 a month. It has a generous monthly allowance; if you reach it, you can switch to your own key until it resets. On Solo, and during trials, the agent uses your own key from Anthropic, OpenAI, Google, OpenRouter or a local model.
Yes. Every plan starts with a 14-day trial, no card needed. You get the whole plan on your machine and your domain. The hosted agent starts with your first payment.
One domain and its subdomains, so example.com covers www.example.com and staging.example.com. Local addresses like localhost never count, and any key works on them.
Any time, from the billing portal on your license page. Switch plans, move between monthly and yearly, or add the hosted agent; changes are prorated. Cancelling keeps your plan until the end of the period you paid for.
Your site keeps working. It builds from files in your repository, and prime never sits between your site and your visitors. After a 7-day grace period the admin becomes read-only, with a banner to pick a plan. You can still browse everything.
Your next edit could be a reviewed one.
Install prime in an existing project in about two minutes, and try any plan free for 14 days.