A quick guide to configuring Playwright CLI to use your system-installed Chromium browser instead of downloading its own, plus enabling skills for both OpenCode and Claude Code.
By default, Playwright downloads its own browser binaries. But on Omarchy (and many Linux setups), you already have Chromium installed at /usr/bin/chromium. Why download another 100MB+ when you can use what you have?
Playwright CLI automatically loads config from ~/.playwright/cli.config.json:
{
"browser": {
"browserName": "chromium",
"launchOptions": {
"executablePath": "/usr/bin/chromium"
}
}
}The key is browser.launchOptions.executablePath — this tells Playwright exactly which browser binary to use.
Playwright CLI comes with excellent AI agent skills. Install them for both your coding agents:
# Install skills (goes to ~/.claude/skills/ for Claude Code)
playwright-cli install --skills
# Symlink for OpenCode
ln -s ~/.claude/skills/playwright-cli ~/.config/opencode/skills/playwright-cliNow both Claude Code and OpenCode can use commands like:
playwright-cli open https://example.complaywright-cli snapshotplaywright-cli click e5
- Save disk space — No duplicate browser downloads
- Faster setup — Skip the 174MB download
- Consistency — Use the same browser your system uses
- AI-powered browsing — Your coding agents can now navigate, screenshot, and interact with web pages
# Should use your system Chromium
playwright-cli open https://playwright.dev --headedNo downloads, no waiting — just works with what you have.
Setup tested on Omarchy Linux with Chromium at /usr/bin/chromium