Documentation › Start here
Galley documentation
What Galley is, the two kinds of reader these pages are for, and where to start.
Galley is an open-source AI CMS for static sites, built for Astro first. A site's content stays as files in its own git repository. People change pages three ways — typing in a form, clicking the words on the page, or asking the assistant — and every change waits in Proof, marked up beside the live site, until someone presses Publish.
| Step | What the person does | What happens underneath |
|---|---|---|
| Prompt | Edits a field, retypes text on the page, or asks the assistant | The site's files change on disk, only the bytes that need to |
| Proof | Checks each change beside the live site; puts back what they don't want | A diff against the last commit, shown in the site's own words |
| Publish | Presses Publish | A git commit, and a push — or a branch and a pull request |
Galley is pre-release, version 0.1.0. It isn't on npm yet: it runs from a clone of the repository. Where something is new or still being built, the page says so.
Link to this section: Two kinds of reader
If you edit a site — write, update pages, look after forms and analytics — start with Find your way around. Those pages use the app's own words (Publish, Proof, Discard) and never need git.
- Edit a site: change a page, on the page itself, ask the assistant, images and video, build a page from sections, check and publish, undo a publish.
- Look after a site: forms and the inbox, Google Analytics and other scripts, redirects, the brand, search and AI checks, putting the site online, moving from WordPress, many sites.
If you set Galley up or look after a site's code, start with the Quickstart. Those pages use git, files and configuration freely.
- Set up: the quickstart, a new site from a starter, an existing repository, the assistant's key, handing a site to an editor, moving from WordPress.
- How it works: prompt, proof, publish, the working tree as the draft, surgical edits, detection, modes, never guessing.
- Your Astro site: what Galley reads, the preview, making a site easy to edit, the site kit, forms, scripts, what Arrange needs, the starters.
- Configuration:
galley.config.json, for correcting what detection found. - Extend Galley: adapters, plugins, MCP, Shopify.
- Run Galley: the desktop app, self-hosting, settings and secrets, security, deploying.
- Reference: command line, config file, HTTP API, environment variables, messages, troubleshooting, glossary. The command line, config and API pages are generated from or checked against the code on every build of this site.
Link to this section: The quickest way in
$ git clone https://github.com/fictiontribe/galley.git galley && cd galley
$ corepack enable && pnpm install && pnpm --filter @galley/web build
$ node packages/cli/bin/galley.js new my-site --starter astro-editorial --dir ~/sitesThat opens a copy of the Caddow starter in your browser. The quickstart goes through it, and through opening your own Astro site.
Link to this section: What it costs
Galley is free and open source (Apache-2.0). The assistant runs on the site owner's own Anthropic key, billed by Anthropic per request; image and video services, and hosts such as Cloudflare or Vercel, bill their own accounts. Without any key, everything but asking the assistant works.
Link to this section: This site is a Galley site
Every page here is a markdown file in apps/site/src/content/docs/ of the repository, and the whole site is an Astro project Galley can edit. Edit this page on GitHub, at the bottom of each page, takes you to its file.