Environment

Setting Up WordPress Studio for Local AI-Assisted Development

⏱ 13 min

An AI coding agent working on a WordPress plugin or theme is going to make changes you didn’t ask for, run a migration that goes wrong, or generate a whole block theme you’ll throw half of away. None of that is a problem on a local site you can rebuild in seconds. It’s a serious problem on a shared staging server or, worse, production. This lesson sets up Studio, Automattic’s free local WordPress development app, as the disposable environment every other lesson in this course assumes you have running.

What you'll learn in this lesson
What Studio actually is
A local WordPress environment built on the WordPress Playground engine, not a Docker wrapper.
Installing it and creating a site
The real steps from developer.wordpress.com/studio, no container runtime required.
Why disposability matters here specifically
An AI agent iterates faster than a human, and needs an environment that tolerates that.
Blueprints
Capturing a reproducible starting point so a bad AI-generated change is one site-recreate away from gone.
The one-way door to production
Why Studio's sync feature is something you trigger, never something an agent triggers for you.
Prerequisites

A macOS, Windows, or Linux machine with enough disk space for a WordPress install and a browser. No prior local environment tooling required, and specifically no Docker.

Step 1: understand what Studio is (and isn’t)

Studio is a free desktop app from Automattic, downloadable at developer.wordpress.com/studio. It’s built on the same WebAssembly PHP engine that powers WordPress Playground, which is why it spins up a working WordPress site in seconds rather than the minute-plus you’d wait for a Docker-based stack to pull images and boot containers.

Don't confuse this with 'Local'

A different company makes a similarly-purposed local WordPress app called “Local by WP Engine.” It’s a real, separate product from a different vendor. This lesson is specifically about Studio, made by Automattic.

As of this writing, Studio’s download page offers builds for macOS, Windows, and Linux. Platform support for local development tools does shift over time, so confirm what’s currently offered on the download page itself before you commit to it as your only environment.

Step 2: install Studio and create a site

Getting a local site running
1
Download Studio
From developer.wordpress.com/studio, grab the build for your OS.
2
Install and open it
No separate database server, web server, or container runtime to install first, Studio brings its own.
3
Create a new site
Give it a name, Studio provisions WordPress core, a default theme, and a working wp-admin login in seconds.
4
Open the site and confirm wp-admin loads
You should be looking at a normal WordPress dashboard, indistinguishable from a hosted install for development purposes.
# Context: there's no CLI step here, Studio is a desktop app,
# this is just the shape of what you now have running locally
Site name:     ai-agent-sandbox
Local URL:     http://localhost:8887 (port varies per site)
wp-admin:      http://localhost:8887/wp-admin

Every Studio site gets its own local URL and its own isolated WordPress install, files included, so you can run several sandboxes side by side without them touching each other.

Step 3: why this matters more when an agent is doing the editing

A human developer making a risky change usually pauses, at least a little, before running a destructive migration or overwriting a theme file. An AI coding agent doesn’t have that instinct built in unless you build it in. It will happily generate and apply a database schema change, register a custom table, or rewrite a theme’s functions.php in one pass, because you asked it to move fast.

That’s fine, as long as “fine” includes an environment where undoing it costs nothing. Studio sites are disposable by design: delete one and recreate it from scratch in under a minute. Treat that speed as a feature you actively rely on, not just a nice side effect. If an agent’s change makes the site unusable, the right response is usually “delete this site and start the last Blueprint again,” not “spend twenty minutes manually reverting.”

Step 4: capture a reproducible starting point with a Blueprint

Studio supports Blueprints, a way to bundle a theme, a set of plugins, demo content, and site settings into a single reusable definition. Instead of manually reinstalling the same three plugins and re-creating the same test content every time an AI agent’s changes leave a site in a state you don’t want to keep, spin up a fresh site from the Blueprint instead.

// File: my-agent-sandbox-blueprint.json
{
  "landingPage": "/wp-admin/",
  "preferredVersions": {
    "php": "8.3",
    "wp": "latest"
  },
  "features": {
    "networking": true
  },
  "steps": [
    { "step": "login", "username": "admin", "password": "password" },
    { "step": "installTheme", "themeZipFile": { "resource": "wordpress.org/themes", "slug": "twentytwentyfive" } }
  ]
}

This is illustrative of a Blueprint’s shape (Blueprints are a WordPress Playground concept Studio builds on), the exact steps you’ll want depend on your own baseline plugin set. The point isn’t memorizing this schema, it’s having any one-command way back to a known-good starting point, so an agent’s mistake is never more than a recreate away from undone.

Step 5: test it

Confirm your sandbox actually behaves like a real WordPress install before you point an AI agent at it.

Signs your Studio site is ready
wp-admin loads and you can log in
Basic proof the local install is functional.
You can create and view a post on the front end
Confirms rendering, not just the admin, works.
You know the site's local file path
You'll point Claude Code or Cursor's working directory at this exact folder.
You've recreated the site from a Blueprint at least once
So you know the "undo everything" path actually works before you need it under pressure.
Don't let an agent trigger Studio's sync feature

Studio can push or pull changes between a local site and a connected WordPress.com or Pressable production site. That’s a genuinely useful feature for a human developer promoting finished work. It is not something you want an AI agent doing on your behalf mid-task. Treat sync as a manual, human-initiated action you run yourself after reviewing what changed, never a step you describe to an agent as part of its workflow.

Recap

Studio gives you a fast, disposable, Docker-free local WordPress environment built on the WordPress Playground engine, exactly the kind of environment an AI coding agent needs since it will make changes faster and more casually than a human would. Blueprints turn “start over” into a one-step operation, and Studio’s sync-to-production feature stays a manual, human-only action, never something an agent runs itself. With a sandbox running, the next lesson connects Claude Code, Cursor, and Claude Cowork to it.

Resources & further reading

Configuring MCP for Claude Code, Cursor, and Claude Cowork →