Etch Connector
Etch Connector lets an AI coding agent — like Claude Code or Codex — work directly in a live Etch builder tab. Once it's connected, you can ask the agent to build pages, add styles, create components, and more, and it makes those changes in the browser tab you have connected.
Under the hood it does this by running small scripts and leveraging Etch's Public API. You don't have to write those scripts — the assistant does. The connector is just the link that lets it reach your open tab.
It's published as a free, open-source npm package, @digital-gravy/etch-connector, with source at Digital-Gravy/etch-connector.
Quickstart
Copy the following prompt, and send it to your AI agent:
I'd like your help to work in Etch. Read the documentation page at https://docs.etchwp.com/etch-connector/usage and https://docs.etchwp.com/etch-connector/ai-agent-guide to learn how it works, run `npx @digital-gravy/etch-connector serve`, and guide me.
How it works
There are three pieces:
- Your Etch tab — a normal builder page open in your browser.
- The connector — started by pasting
npx @digital-gravy/etch-connector serveinto your AI agent's chat. The agent runs it; you don't have to manually install anything. - Your AI agent — a tool that lets an LLM model run commands on your machine, like Claude Code.
You connect by clicking the AI sparkles button in the builder, then pasting the connector command in chat. Once the agent confirms the connection, it can send changes through the connector and they appear live in your tab.
Get started
- Usage — turn on the AI Connector, open your builder, and connect from chat. Start here.
- CLI Reference — the commands your AI agent runs, for reference.
- AI Agent Guide — a few notes for the AI agent driving Etch.
- Security — what runs where, and how to stay safe.