> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webstorio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use AI agents on local files

> Build and edit Webstorio sites with your own editor or AI agent — Claude Code, Codex, Cursor, Antigravity, Zed, Windsurf, Kiro, and more.

Because a Webstorio site is just local `.tsx` files, you can build it with **your
own code editor or AI coding agent** — for example Claude Code, Codex,
Antigravity, Cursor, Zed, Windsurf, Kiro, GitHub Copilot, or any tool that can
edit files on disk. Point the agent or editor at your project directory and work
as you would on any React project.

To keep generated code deployable:

* Every page module needs a **default export**.
* Import only from the
  [supported libraries](/api-reference/supported-libraries); inline
  anything else as a relative import.
* Read and write site data through the
  [`window.webstorio`](/api-reference/sdk/overview) SDK.

Preview with `webstorio dev` and ship with `webstorio push`. The server
validates and compiles authoritatively, so a stray import fails fast instead of
silently breaking your live site.

<Tip>
  Add your project's conventions (the import allowlist, the `window.webstorio`
  SDK, and the default-export rule) to your agent's rules or instructions file
  so every generation stays push-ready.
</Tip>

## Agents on the live project (MCP)

To connect an agent to your Webstorio **project** directly — CMS, forms, store,
App Data — instead of (or in addition to) editing local code, see
[Connect MCP](/developer/connect-mcp).

| Approach                      | Agent works on         | Best for                         |
| ----------------------------- | ---------------------- | -------------------------------- |
| This page (local files + CLI) | `.tsx` in your repo    | Page code, then `push` / publish |
| [MCP](/developer/connect-mcp) | Live project via tools | Content and feature data         |

See also [CLI, MCP, and SDK](/developer/cli-mcp-sdk).
