---
title: "PageWeave Documentation"
---

# Getting Started

Connect your AI agent to PageWeave and start building websites in minutes.

> **Fastest path:** paste [pageweave.dev/setup](https://pageweave.dev/setup) into your agent — it fetches the setup guide and configures itself. The manual steps below are the fallback.

## Prerequisites

- A PageWeave account — early access is by invitation. Open your invitation link and sign in at [pageweave.dev/auth](https://pageweave.dev/auth) with a one-time email link or code, or a passkey, or [request an invite](https://pageweave.dev/early-access)
- An MCP client — Claude Code, the Claude app, ChatGPT (Codex or web), Cursor, OpenCode, Antigravity, OpenClaw/Hermes/Goose, or any other MCP client. The setup guide knows every harness config shape.

## Step 1: Add the MCP Endpoint

PageWeave is a remote MCP server at `https://pageweave.dev/mcp`, authenticated with OAuth 2.1. Add the URL and your client handles discovery, registration, and the browser sign-in — no API key.

Claude Code, one command:

```bash
claude mcp add --transport http --scope user pageweave https://pageweave.dev/mcp
```

Every other client has its own add path:

| Client | How to add it |
| --- | --- |
| Claude app, Desktop, mobile, Cowork | Customize → Connectors → Add custom connector, name `PageWeave`, URL `https://pageweave.dev/mcp` |
| ChatGPT web, Dots | Plugins → + → Add custom MCP server |
| ChatGPT desktop, Codex CLI and IDE | `codex mcp add pageweave --url https://pageweave.dev/mcp` |
| Cursor | merge into `~/.cursor/mcp.json` |
| OpenCode Desktop and CLI | `opencode mcp add pageweave --global --url https://pageweave.dev/mcp`, or the `mcp.servers` block |
| Antigravity app, CLI, IDE | `~/.gemini/config/mcp_config.json` |
| OpenClaw, Hermes, Goose | the runtime's own `mcp add` and config shape |
| Anything else | a URL-only remote entry |

[pageweave.dev/setup](https://pageweave.dev/setup) carries the exact config for each harness, including the merge rules for an existing config file. Chat-only surfaces — the Claude app, ChatGPT web — can only be configured by the user: an agent cannot edit their settings.

## Step 2: Authorize

When your client first connects to PageWeave, it will prompt you to sign in through your browser with a one-time email link or code, or a passkey. This happens automatically — no manual token management required.

The client handles the full OAuth flow: discovery, dynamic client registration, PKCE authorization, token exchange, storage, and automatic refresh.

## Step 3: Create Your First Website

Tell your agent:

```
Create a website for my bakery called "Sweet Crumbs"
```

The agent will use `list_websites`, `get_website`, `create_website`, `update_website` to set up the site with a subdomain like `sweet-crumbs.pageweave.site`.

Name the subdomain as the site's permanent address — `sweet-crumbs`, not `sweet-crumbs-preview` or `demo-sweet-crumbs`. A prototype often becomes the live site; renaming later rotates every dev/release host and breaks published links. Previews and reviews use the dev environment (Step 5), and `indexable: false` keeps the site out of search until launch.

## Everything You Need, Nothing You Don't

PageWeave is **all-in-one**. You don't need external tools for hosting, databases, or deployment.

### What's Included

- **Hosting** — Your site is live immediately at `your-site.pageweave.site`
- **Database** — Built-in data tables for structured content (blogs, products, events)
- **DNS & SSL** — Automatic SSL certificates, hostname support
- **Forms** — Working contact forms with spam protection and email notifications
- **Analytics** — Privacy-first visitor stats, no cookies or trackers
- **Assets** — Image optimization, font hosting, file storage
- **Versioning** — Every change is versioned, roll back anytime
- **Environments & Releases** — Dev/staging preview surfaces and immutable release snapshots

### What You Don't Need

❌ **No GitHub** — No git repository required  
❌ **No Vercel/Netlify** — No external hosting or deployment pipeline  
❌ **No Neon/PlanetScale** — No external database service  
❌ **No separate DNS provider** — PageWeave handles DNS management  
❌ **No build tools** — No npm, webpack, or deployment scripts  

Your AI agent builds directly on PageWeave. The site is live immediately. No deploy step, no external services, no configuration headaches.

## Step 4: Build Pages

```
Create a home page, menu page, and contact page
```

The agent uses `list_pages`, `get_page`, `create_page`, `update_page`, and `discard_page` to create versioned HTML content. Discarded pages disappear immediately and remain restorable for 30 days (see [Deleting & Restoring Content](/discarded-content)).

## Step 5: Preview and Publish

- Create a dev/staging **environment** for review — every website gets additional dev/staging environments (up to 1,000) (`create_environment`, host `*.env.pageweave.site`; noindex, no analytics)
- Draft table rows render on dev environments on template pages, so you can review unpublished content
- **Release & go live** when ready: `create_release` snapshots all content versions; `update_environment` `release` freezes the environment to it. Every release has a `*.r.pageweave.site` permalink, kept while the release is retained, for sharing with your client
- Roll back anytime by attaching an older release — releases are immutable snapshots, nothing is overwritten

## Alternative: API Key Authentication

For programmatic access or clients that don't support OAuth, use API keys:

1. Create an API key in your [dashboard settings](https://pageweave.dev/settings/developer)
2. Pass it via the `Authorization: Bearer <key>` header

API keys carry coarse `read` / `write` scopes — create a read-only key for CI/CD and server-to-server use.

## Next Steps

- Read about [Core Concepts](/concepts)
- Learn about [OAuth Setup](/oauth) details
- Build multilingual sites with the [Internationalization (i18n) guide](/i18n)
- Learn the full workflow in the [PageWeave Academy](https://academy.pageweave.dev/) — German-language tutorials, starting with [Figma to PageWeave](https://academy.pageweave.dev/tutorials/figma-zu-pageweave).
