---
title: "Galley documentation · Galley"
description: "What Galley is, the two kinds of reader these pages are for, and where to start."
canonical: "https://galley.fictiontribe.com/docs/"
language: "en"
---

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](https://galley.fictiontribe.com/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](https://github.com/fictiontribe/galley). 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](https://galley.fictiontribe.com/docs/editing/tour/). Those pages use the app's own words (Publish, Proof, Discard) and never need git.

- **Edit a site**: [change a page](https://galley.fictiontribe.com/docs/editing/form/), [on the page itself](https://galley.fictiontribe.com/docs/editing/on-the-page/), [ask the assistant](https://galley.fictiontribe.com/docs/editing/assistant/), [images and video](https://galley.fictiontribe.com/docs/editing/media/), [build a page from sections](https://galley.fictiontribe.com/docs/editing/page-builder/), [check and publish](https://galley.fictiontribe.com/docs/editing/proof-and-publish/), [undo a publish](https://galley.fictiontribe.com/docs/editing/history/).
- **Look after a site**: [forms](https://galley.fictiontribe.com/docs/editing/forms/) and [the inbox](https://galley.fictiontribe.com/docs/editing/inbox/), [Google Analytics and other scripts](https://galley.fictiontribe.com/docs/editing/scripts/), [redirects](https://galley.fictiontribe.com/docs/editing/redirects/), [the brand](https://galley.fictiontribe.com/docs/editing/brand/), [search and AI checks](https://galley.fictiontribe.com/docs/editing/search-and-ai/), [putting the site online](https://galley.fictiontribe.com/docs/editing/online/), [moving from WordPress](https://galley.fictiontribe.com/docs/editing/wordpress/), [many sites](https://galley.fictiontribe.com/docs/editing/many-sites/).

**If you set Galley up or look after a site's code**, start with the [Quickstart](https://galley.fictiontribe.com/docs/getting-started/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](https://galley.fictiontribe.com/docs/concepts/prompt-proof-publish/), [the working tree as the draft](https://galley.fictiontribe.com/docs/concepts/working-tree/), [surgical edits](https://galley.fictiontribe.com/docs/concepts/surgical-edits/), [detection](https://galley.fictiontribe.com/docs/concepts/detection/), [modes](https://galley.fictiontribe.com/docs/concepts/modes/), [never guessing](https://galley.fictiontribe.com/docs/concepts/never-guess/).
- **Your Astro site**: what Galley reads, the preview, making a site easy to edit, [the site kit](https://galley.fictiontribe.com/docs/astro/site-kit/), [forms](https://galley.fictiontribe.com/docs/forms/), [scripts](https://galley.fictiontribe.com/docs/scripts/), [what Arrange needs](https://galley.fictiontribe.com/docs/visual-builder/), [the starters](https://galley.fictiontribe.com/docs/astro/starters/).
- **Configuration**: [`galley.config.json`](https://galley.fictiontribe.com/docs/configuration/), for correcting what detection found.
- **Extend Galley**: [adapters](https://galley.fictiontribe.com/docs/adapters/), [plugins](https://galley.fictiontribe.com/docs/plugins/), [MCP](https://galley.fictiontribe.com/docs/integrations/mcp/), [Shopify](https://galley.fictiontribe.com/docs/plugins/shopify/).
- **Run Galley**: the [desktop app](https://galley.fictiontribe.com/docs/running/desktop/), [self-hosting](https://galley.fictiontribe.com/docs/running/hosted/), [settings and secrets](https://galley.fictiontribe.com/docs/running/settings/), [security](https://galley.fictiontribe.com/docs/running/security/), [deploying](https://galley.fictiontribe.com/docs/running/deploy/).
- **Reference**: [command line](https://galley.fictiontribe.com/docs/reference/cli/), [config file](https://galley.fictiontribe.com/docs/reference/config/), [HTTP API](https://galley.fictiontribe.com/docs/reference/api/), [environment variables](https://galley.fictiontribe.com/docs/reference/environment/), [messages](https://galley.fictiontribe.com/docs/reference/messages/), [troubleshooting](https://galley.fictiontribe.com/docs/reference/troubleshooting/), [glossary](https://galley.fictiontribe.com/docs/reference/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

sh

```
$ 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 ~/sites
```

That opens a copy of the Caddow starter in your browser. The [quickstart](https://galley.fictiontribe.com/docs/getting-started/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.
