Install and Prepare
The LocalWP Devkit expects you to bring a working Local site and the runtime plugins you own. It is not a Local site import, a Local Blueprint, or a bundle of premium plugin files.
Prerequisites
Install these on your machine before creating a project:
| Requirement | Notes |
|---|---|
| LocalWP | Creates and runs the WordPress site. The devkit finds Local and its sites on macOS, Linux, and Windows without extra settings. |
| Node.js 20 or newer | Required by the devkit package engine and related JavaScript tooling. |
| Bun | Runs devkit package scripts. Use the version declared by the devkit packageManager field when possible. |
| PHP 8.1 or newer on the command line | project:check lints the project PHP and compiles the site definition on your machine, and sync checks that the prepared plugin copy loads before it publishes it. |
| Composer | Installs the project's locked PHP dependencies, including the Builder package, into the plugin copy on every sync and ZIP build. If project:check reports missing dependencies, run the exact composer install --working-dir=... command it prints. |
zip | Used by build:zip to write the project plugin ZIP. |
| Git | Recommended for tracking the long-lived devkit workspace and each project under projects/<slug>. |
| The devkit ZIP | Download oh-my-idetch-localwp-devkit-<version>.zip from your OhMyEtch account. |
| User-owned runtime plugins | Etch, Etch Theme, OhMyEtch, AutomaticCSS, ACF Pro, WooCommerce, or other project dependencies as needed. |
LocalWP provides the WordPress runtime, PHP, MySQL, WP-CLI Site Shell, SSL, Mailpit, and the bound local domain. The devkit does not replace those services; it runs checks and syncs project source into the Local site.
The devkit can continue without optional browser automation. When available, browser automation lets agents open the bound LocalWP site, inspect pages, and capture screenshots after sync. The devkit uses agent-browser for this, an optional open-source tool from Vercel Labs. It is not made by Etch, OhMyIDEtch, or your AI provider, and the agent asks before installing it.
Extract the Devkit
Extract the ZIP into a durable working directory:
oh-my-idetch-localwp-devkit/
Then install dependencies:
bun install
Initialize your own Git history for the devkit workspace:
git init
git add .
git commit -m "Initial LocalWP devkit"
The devkit ships with a .gitignore, but it does not ship with your repository history.
Prepare a Local Site
Create or reuse a LocalWP site. Install and activate the runtime dependencies this project needs in that Local site. At minimum, an Etch site normally needs Etch and Etch Theme. If the project uses OhMyEtch components, AutomaticCSS, ACF Pro, WooCommerce, or other plugins, install and license them in Local before expecting the devkit to use those capabilities.
Keep the Local site outside folders that a cloud client syncs, such as iCloud Drive, Dropbox, OneDrive, Google Drive, or Desktop and Documents when iCloud syncs them. Cloud sync creates conflict copies of the plugin folder (oh-my-idetch 2) and can remove files while WordPress runs. Local's default ~/Local Sites folder is fine. localwp:doctor warns when a site sits in a synced folder.
If the site already has pages, templates, a static front page, or a posts page, read Binding a Site That Already Has Content before the first sync.
You can save a private Local Blueprint after the site is configured:
- Create a clean Local site.
- Install and license your user-owned runtime plugins.
- Confirm the site is ready with
localwp:doctorafter binding a project. - In Local, save the site as a Blueprint for your own future work.
That Blueprint remains private to you. It is not part of the Oh My IDEtch devkit.
Open the Right Folder
Open the devkit root in your agent:
oh-my-idetch-localwp-devkit/
Do not open the synced plugin directory inside the Local site as your working source:
~/Local Sites/<site>/app/public/wp-content/plugins/oh-my-idetch
That directory is output from localwp:sync. Your editable project source lives under projects/<slug>.
Update the Devkit Later
When a newer devkit ZIP is released, plan the update with a dry run:
bun run devkit:update -- --zip /path/to/oh-my-idetch-localwp-devkit-<version>.zip
Apply the update after reviewing the plan:
bun run devkit:update -- --zip /path/to/oh-my-idetch-localwp-devkit-<version>.zip --apply
The updater never changes projects/**, .git/**, .env*, node_modules/**, dist/**, or var/**. It updates only the devkit commands, the generated agent skills and instructions, and the project template. Do not copy or extract a newer ZIP over the devkit or over projects/**.
If your devkit is so old that it has no devkit:update command, extract the newer ZIP somewhere else and run its updater against your current devkit. --baseline-zip must be the ZIP your current devkit was created from, not the newer one:
bun /path/to/new-devkit/scripts/localwp/devkit-update.mjs --target /path/to/current-devkit --baseline-zip /path/to/current-devkit-baseline.zip --zip /path/to/oh-my-idetch-localwp-devkit-<version>.zip
Update Existing Projects
Updating the devkit does not update your projects. Each project keeps the plugin files it was created with and its own Composer lock, so a project does not pick up devkit fixes or features by itself.
Devkit 1.1.0 needs etch-builders 2.1.1 in the project. A project created with Devkit 1.0.x keeps its old behaviour until you migrate it. It gets the live-site deploy registration, hand-over to editors, adoption, orphan reporting, and the WPML configuration only after migration.
1. See what the project is missing
After the devkit update, run doctor for each project:
bun run localwp:doctor -- --project <slug>
Doctor lists which project files and which Builder version are out of date. Typical warnings after an update from 1.0.x:
| Doctor warning starts with | Meaning |
|---|---|
project Plugin.php predates the deploy-keyed production lock | A deployed ZIP still needs the old manual step, and a failing live registration reruns on every request. |
project src/ is missing template files | Files that check, sync, or verify load are missing from the project. |
project Site/SiteRegistrar.php predates etch-builders 2.1.0 | Every sync recreates page and template styles, and --retire-orphans is unavailable. |
project Site/SiteRuntimeVerification.php predates ... | Verify reports handed-over content as drift, or PHPStan 2.x reports errors in a file you did not write. |
project composer.lock pins honestlydesign/etch-builders <version> | The project still runs an older Builder. |
project has no wpml-config.xml | On a WPML site, translations copy the Builder's ownership details. |
Each warning names the step in the migration skill that fixes it.
2. Run the migration skill
Take a Local site export first, so the change is easy to undo. Then ask your agent, from the devkit root:
/migrate-legacy-project
The skill ports the updated project files from the project template, keeps your own pages, components, patterns, and templates, moves the project to etch-builders 2.1.1, and finishes with project:check, localwp:sync, localwp:verify, and localwp:doctor.
A plain composer update is not enough. The project pins the reviewed Builder package: one of its own files names the exact Builder version and source that the checks accept, and the updated project files call Builder 2.1 features. The Composer package and the project files have to move together, which is what the skill does.
3. Expect one round of style updates
The first sync after the migration reports each project style as updated once. That is expected: etch-builders 2.1.1 stores project class styles where the Etch builder looks for them. Later syncs report them as unchanged again. The first live deploy of a migrated project shows the same one-time update.