# Auto-configure

> Only available on hosted Pages CMS.

Auto-generate prepares a draft `.pages.yml`. It can reuse an existing Pages CMS configuration, convert a supported Decap or Sveltia configuration, or sample your content files and use AI to propose one. Review the draft and choose **Save** to commit it.

Every project manager can use Auto-generate on the hosted app.

## Generate a configuration

1. Open **Configuration** and choose the auto-generate action. If the editor already has content, confirm that it can be replaced.
2. You can leave while it runs. To pick up the result, reopen **Configuration** on the same repository and branch within 24 hours after generation finishes.
3. Review the draft: content paths, field types, media paths and any warnings.
4. Choose **Save** to commit `.pages.yml`.

The editor is read-only while generation runs, and you can run one generation at a time. If you return to an empty editor, it loads the result automatically. If you return to an existing draft, choose **Replace with generated** or **Keep my edits**. Once you apply or discard the result, the server clears its copy.

## What it does and doesn't do

- **Imports** Decap and Sveltia settings where they map to Pages CMS. Check anything flagged as ambiguous.
- **Generates** collections and fields from sampled files when there's nothing to import.
- **Doesn't** set up [actions](/docs/configuration/actions/), credentials or [cloud storage](/docs/guides/cloud-storage/).

## Your data

Generation sends samples of relevant files to an AI provider. It skips common secret, dependency and build paths, but check your repository for sensitive content first. It never runs code from your repository.

## Limits

- **Free:** 3 successful AI generations per account, shared across your Free projects.
- **Pro:** AI generations on Pro projects have no lifetime cap and do not use your Free allowance.

On either plan you can run one job at a time per account. The service allows up to 10 starts in a rolling hour, counting jobs started by your account or for the same project, including failed and cancelled attempts.

Imports and conversions don't use AI generations. The **Configuration** page shows what you have left.
