This add-on installs @playwright/cli globally in the DDEV web container along with its bundled Chromium browser, and automatically installs Claude Code skills on container start.
Playwright CLI is a token-efficient command-line tool designed for AI coding agents such as Claude Code, GitHub Copilot, and Cursor. It lets agents interact with Playwright browsers through simple shell commands instead of writing full test scripts.
What this add-on does:
- Installs
@playwright/cliand Chromium at Docker build time viaweb-build/Dockerfile.playwright-cliwith Docker build cache for fast rebuilds - Runs
playwright-cli install --skillsautomatically via a post-start hook to install Claude Code skills
ddev add-on get e0ipso/ddev-playwright-cli
ddev install-playwright-cliThe ddev install-playwright-cli command copies the Dockerfile into your build
directory and restarts the web container. This opt-in step keeps the add-on
lightweight for projects that install it but aren't ready to use it yet.
After installation, commit the .ddev directory to version control.
All Playwright CLI commands are available through ddev exec playwright-cli:
# Open a URL in the browser.
ddev exec playwright-cli open https://example.ddev.site
# Take a snapshot of the current page (returns an accessibility tree).
ddev exec playwright-cli snapshot
# Click an element, fill a field, etc.
ddev exec playwright-cli click --selector "text=Log in"
ddev exec playwright-cli fill --selector "#edit-name" --value admin| Command | Description |
|---|---|
ddev exec playwright-cli --version |
Check the installed version |
ddev exec playwright-cli --help |
View available commands |
ddev exec playwright-cli install --skills |
Manually (re-)install Claude Code skills |
Contributed and maintained by @e0ipso