# Galley > Galley is an open-source AI CMS for Astro: change a page in a form, on the page or by asking, check every change beside the live site, then publish it to your own git repository. Pre-release 0.1.0, Apache-2.0. Each page below is linked to its markdown version: the page's own text, with no scripts or layout. Everything in one file: https://galley.fictiontribe.com/llms-full.txt. ## Pages - [Galley — the open-source AI CMS for Astro](https://galley.fictiontribe.com/index.md): Galley is an open-source AI CMS for Astro. Change a page in a form, on the page or by asking, check every change beside the live site, then publish it to your own git repository. - [AI-first websites · Galley](https://galley.fictiontribe.com/ai-first.md): A website people and AI assistants can both read. Your pages are already plain files in git; Galley is adding a script-free copy of every page for AI agents, and checks that find what search engines and assistants miss. - [Galley and Astro · Galley](https://galley.fictiontribe.com/astro.md): Galley is built for Astro. It reads your content collections and zod schemas without running them, previews with your own astro dev, and adds nothing to your build. - [Galley Cloud · Galley](https://galley.fictiontribe.com/cloud.md): Galley Cloud is coming — the same editor and your published site, run by Fiction Tribe on your domain. No date or price yet; the open-source product stays whole. - [Community · Galley](https://galley.fictiontribe.com/open-source.md): Galley is open source under Apache-2.0 and built in the open with Astro developers. How to take part, the rules of the project, and who makes it. - [Starters · Galley](https://galley.fictiontribe.com/starters.md): Three complete Astro sites built from sections, each in three looks — Caddow for a fashion label, Ferrow for B2B software, Lowfield Studio for a small business — ready to edit with Galley. - [Team · Galley](https://galley.fictiontribe.com/team.md): Galley is made by Fiction Tribe, a creative agency in Portland, Oregon — James Rice, who leads the company, and the engineers who build Galley. - [Leave WordPress, keep editing it yourself · Galley](https://galley.fictiontribe.com/wordpress.md): Move your WordPress posts, pages, images and SEO details to a fast static site, then change it in a form, on the page or by asking, and check every change before it goes live. ## Galley documentation · Galley - [Galley documentation · Galley](https://galley.fictiontribe.com/docs.md): What Galley is, the two kinds of reader these pages are for, and where to start. - [Adapters · Documentation · Galley](https://galley.fictiontribe.com/docs/adapters.md): How frameworks plug into Galley, the adapters that ship with it and what each one finds, and how a site loads one of its own. - [Writing a Galley adapter · Documentation · Galley](https://galley.fictiontribe.com/docs/adapters/writing.md): The adapter API in full — the hooks, the helpers, what the engine fills in, the conformance kit, using and publishing an adapter, and the trust model. - [What Galley reads from an Astro project · Documentation · Galley](https://galley.fictiontribe.com/docs/astro/content-collections.md): The Astro adapter reads astro.config, the content config and its zod schemas, and src/pages — statically, never running them. Which zod shapes become which fields, how discriminated unions become page sections, and what it can't read. - [Making an Astro site easy to edit · Documentation · Galley](https://galley.fictiontribe.com/docs/astro/editable-sites.md): Schema, routing and component habits that let Galley detect everything without configuration — the conventions the Astro starter follows. - [The preview and astro dev · Documentation · Galley](https://galley.fictiontribe.com/docs/astro/preview.md): How Galley runs your site's own dev server, fronts it with a proxy that keeps hot reload and adds the click-to-edit overlay, and sets the deployed site beside it. - [The site kit · Documentation · Galley](https://galley.fictiontribe.com/docs/astro/site-kit.md): @galley/astro: forms, managed scripts with consent, email links, the agent-readable version of the site and the dev toolbar app — how a site gets it, every option, and what it adds to a build. - [Starters · Documentation · Galley](https://galley.fictiontribe.com/docs/astro/starters.md): The four Astro sites `galley new` can copy — Caddow, Ferrow, Lowfield Studio and the Caddow storefront — what each holds, their looks, and what every starter must do. - [Detection and schema inference · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/detection.md): How Galley works out a site's framework, commands, collections, fields, page sections, URLs and media without running any of its code — and the precedence config > schema > inferred. - [Modes and the write surface · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/modes.md): Content mode and build mode, the writable globs each one gets, the deny-list no mode can cross, and how paths are contained to the site folder. - [Never guess · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/never-guess.md): When something is ambiguous, Galley asks or declines. How a click on the previewed page is traced back to one value in one file, what happens when several match, and how the assistant handles ambiguous requests. - [Prompt, proof, publish · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/prompt-proof-publish.md): The loop at the centre of Galley — the three ways to make a change, what the proof shows, what Publish does — and the git that does the work underneath. - [Surgical edits · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/surgical-edits.md): Changing one value changes those bytes and nothing else. How Galley splices YAML scalars at their byte range, what survives an edit, what happens to structural changes, and what it refuses. - [The working tree is the draft · Documentation · Galley](https://galley.fictiontribe.com/docs/concepts/working-tree.md): Galley keeps no draft database. A pending change is an uncommitted change in the checkout, the proof is git diff, Discard restores the file, Publish commits. What that means for developers, command by command. - [galley.config.json · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration.md): When you need a config file, how galley init writes one, how it merges over detection, and what happens when it has a mistake in it. - [Assistant instructions and build mode · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration/assistant.md): The ai and writable settings: files the assistant reads before every request, whether build mode is offered, and exactly which paths each mode may write. - [Collections and fields · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration/collections.md): Correcting or adding collections, fields and page-section types in galley.config.json, and the 17 field types. - [Media · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration/media.md): Where Galley saves new images, which folders the media library shows, how files on disk map to the paths written into content, and the upload rules. - [Publishing · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration/publishing.md): Which branch and remote a publish goes to, commit or pull-request mode, pushing, the live addresses the proof compares with, and every message a publish can end with. - [White-label · Documentation · Galley](https://galley.fictiontribe.com/docs/configuration/white-label.md): Rename and recolour the app for a deployment with a brand file or two environment variables — what they change, what they don't, and how they are validated. - [Ask the assistant · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/assistant.md): Ask for a change in plain words; the assistant makes it in the same files the form edits, tells you exactly what it changed, and leaves it waiting in Proof. - [Set up the brand · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/brand.md): Write the site's look and voice down — read from the site itself or from guidelines, logos and screenshots — so the assistant works inside it. - [Change a page in the form · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/form.md): Retype any field of a page, add and reorder its sections, and make new pages — every change saved as you type and waiting in Proof. - [Make a form · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/forms.md): Build a contact, sign-up or enquiry form in the form builder, choose where its submissions go, and put it on a page. - [Undo a publish · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/history.md): Version history lists every published version of the site; undoing one adds a new version that reverses it, so nothing is ever erased. - [See who wrote in · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/inbox.md): Read, search, export and delete what visitors send through the site's forms, get an e-mail when they do, and know when the inbox can receive from the live site. - [Look after many sites · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/many-sites.md): Add every site you look after in one go, file them by client, see what each is waiting on, switch between them, and give a client's site its own keys. - [Add images and video · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/media.md): Upload pictures, videos and documents, make an image or a video from a description, and use them on a page. - [Change text on the page · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/on-the-page.md): Click text on the page itself and retype it where it sits; when the same words appear in two places, choose which one you meant. - [Put the site online · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/online.md): Give the site a real address on Cloudflare or Vercel in four steps, put published versions live, and share a preview link before you publish. - [Build a page from sections · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/page-builder.md): Arrange a page on the page itself — select a section, drag it, add new ones from pictures of the site's own sections, and switch their options. - [Check and publish · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/proof-and-publish.md): Proof lists every change waiting to be published, marked up beside the live site; put back what you don't want, then publish the rest. - [Move a page without breaking links · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/redirects.md): Add redirects one at a time or a whole list at once, let the checks catch loops and chains, try any old address, and keep the host's redirect file in step. - [Add Google Analytics · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/scripts.md): Add Google Analytics, Tag Manager or another script to every page, decide what waits for the visitor's consent, and check where each one loads. - [Check how search and AI see the site · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/search-and-ai.md): Search & AI checks titles, headings, images, links, indexing and structured data, fixes what it safely can as changes in Proof, and lets you choose which AI crawlers may visit. - [Find your way around · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/tour.md): The screens you'll use to change a site — the sites list, Site home, the editor and Proof — and where everything else lives. - [When something goes wrong · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/troubleshooting.md): The situations editors meet most — the preview stopped, a change didn't save, publishing didn't finish — what each means and what to do. Your work is almost always safe. - [Bring a site over from WordPress · Documentation · Galley](https://galley.fictiontribe.com/docs/editing/wordpress.md): Move a WordPress site's posts, pages, images and SEO details into a Galley site in four steps, as changes you check before anything goes live. - [Forms, for developers · Documentation · Galley](https://galley.fictiontribe.com/docs/forms.md): How a Galley form works on a site — one JSON file and one component — its destinations, the capture endpoint behind the inbox, and running the inbox where visitors can reach it. - [Connect the assistant · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/assistant.md): Add an Anthropic API key, choose a model and an effort, and know what the assistant can and cannot do, what it sends where, and how image generation works with or without a key. - [Open a site from a git repository · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/clone.md): Clone a site from GitHub or any git host from the Sites screen, where the copy goes, which credentials are used, and what each failure means. - [Hand a site over to an editor · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/handover.md): A checklist for the developer or agency setting Galley up for someone else — names and labels, the live address, where publishes go, what the assistant may touch, and how they will run it. - [Start a new site from the starter · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/new-site.md): galley new copies the Astro starter into a new folder, records a first version with git, installs its dependencies and opens it. What the starter contains, and what to change first. - [Quickstart: Galley on your Astro site · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/quickstart.md): Clone Galley, open your Astro site (or a starter) in it, change a page, check the change in Proof and publish it as a commit. About ten minutes. - [Moving a WordPress site to Galley · Documentation · Galley](https://galley.fictiontribe.com/docs/getting-started/wordpress.md): What comes across from WordPress and what doesn't, the guided move in the app and the command, the report, rebuilding page-builder pages, keeping your search rankings, and the go-live checklist. - [Galley over MCP — use your own AI tool · Documentation · Galley](https://galley.fictiontribe.com/docs/integrations/mcp.md): Connect Claude Desktop, Claude Code, Cursor, VS Code or any MCP client to a site: setup per client, stdio or HTTP, modes and safety switches, and every tool. - [Plugins · Documentation · Galley](https://galley.fictiontribe.com/docs/plugins.md): What a plugin can add to Galley — image and video generators, form destinations, scripts, importers, hosts, tools for the assistant — how to add one, and how to write one in a single file. - [Shopify · Documentation · Galley](https://galley.fictiontribe.com/docs/plugins/shopify.md): The Shopify plugin — product and collection pickers, store tools for the assistant, a publish check, a product-copy switch — and the storefront starter that runs a shop's pages from Galley. - [Contributing to the docs · Documentation · Galley](https://galley.fictiontribe.com/docs/project/contributing.md): How a documentation page is wired, the checks that keep the docs true to the code, and the house rules for writing one. Code contributions are in CONTRIBUTING.md. - [FAQ for developers · Documentation · Galley](https://galley.fictiontribe.com/docs/project/faq.md): Straight answers to what developers ask before putting Galley on a site — what it changes, what it costs, what leaves the machine, and when it isn't the right fit. - [Release process and versioning · Documentation · Galley](https://galley.fictiontribe.com/docs/project/releases.md): What a Galley release produces, how versions are numbered, and the checklist for cutting one — including the one-time work the first release still needs. - [HTTP API · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/api.md): Every route the Galley server answers — what it does, what it takes and returns, who may call it — with authentication, the error shape and the live event stream. Generated from ApiRoutes. - [Command line · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/cli.md): Every galley command and option, with its real help text and exit codes. Generated from the CLI. - [Config reference · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/config.md): Every key galley.config.json accepts, with its type, its default and what it does. Checked against the engine's JSON Schema on every build of this site. - [Environment variables · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/environment.md): Every environment variable Galley reads — the server, the CLI, the engine, the plugins, the site kit and the desktop app — with its default. Checked against the source on every build of this site. - [Glossary · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/glossary.md): The words editors see in Galley and what they are underneath, for developers explaining the product, writing support answers or reading the code. - [Messages in the app · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/messages.md): The messages an editor can meet in the app, grouped by situation — what each one means and what to do. For whoever supports the people who edit. - [Troubleshooting for developers · Documentation · Galley](https://galley.fictiontribe.com/docs/reference/troubleshooting.md): Every error a developer can hit starting, configuring and running Galley — the exact message, what it means and what to do. - [Deploying, for developers · Documentation · Galley](https://galley.fictiontribe.com/docs/running/deploy.md): How Galley puts a site online on Cloudflare or Vercel — what is built, the upload protocols, redirects and headers, settings and keys, the CLI, and adding a host. - [Desktop app · Documentation · Galley](https://galley.fictiontribe.com/docs/running/desktop.md): The native shell around the same server and web UI — how it starts and stops, what it adds over a browser tab, how to build it, and what hasn't been done or verified yet. - [Hosting Galley for a team · Documentation · Galley](https://galley.fictiontribe.com/docs/running/hosted.md): Run Galley on a server behind a password with galley serve or the container, put HTTPS in front, and know the one thing that doesn't work behind a proxy yet — the preview. - [Security model · Documentation · Galley](https://galley.fictiontribe.com/docs/running/security.md): Who can reach Galley and how they sign in, the Host and Origin checks, what the app can write and serve, whose code it runs, and exactly what it sends to which third party and when. - [Settings, secrets and the Galley home · Documentation · Galley](https://galley.fictiontribe.com/docs/running/settings.md): What Galley keeps in its home folder, how API keys are stored and which one wins, and where the environment variables are listed. - [Scripts, for developers · Documentation · Galley](https://galley.fictiontribe.com/docs/scripts.md): How a site's analytics and tags are kept in one file and written into every page by the site kit — placement, timing, consent, Google Consent Mode, the editor's preview and Content Security Policy. - [What Arrange needs from a site · Documentation · Galley](https://galley.fictiontribe.com/docs/visual-builder.md): The two attributes that let editors arrange a page's sections on the page itself, what happens without them, and the pictures and descriptions the section panel shows. ## Optional - [Changelog · Galley](https://galley.fictiontribe.com/changelog.md): Every release of Galley, newest first, generated from the CHANGELOG.md in the repository. - [Privacy and notices · Galley](https://galley.fictiontribe.com/privacy.md): This site sets no cookies, runs no analytics and loads nothing from anyone else. What that means, what Galley itself sends when you use it, and the trademark notes.