How to Compare Before and After Changes with OpenClaw

Track Lighthouse score changes with OpenClaw and ToolRouter. Before/after deployment comparison.

Tool
Lighthouse Audit icon
Lighthouse Audit

OpenClaw automates before/after Lighthouse comparisons across multiple pages, producing a structured delta report showing score changes, new failures, and resolved issues for each URL. Integrate into your CI/CD pipeline to block deployments that degrade performance and maintain an automated audit trail of every release.

Connect ToolRouter to OpenClaw

1Install the CLI
npm install -g toolrouter-mcp
2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp tools

Steps

Once connected (see setup above), use the Lighthouse Audit tool:

  1. Run a baseline audit before making changes
  2. Deploy your changes
  3. Re-run the audit and ask OpenClaw to compare results
  4. Review improvements and address any regressions

Example Prompt

Try this with OpenClaw using the Lighthouse Audit tool
Run Lighthouse on mysite.com/page now and after I deploy. Compare the scores.

Tips

  • Keep a log of before/after comparisons to track optimization progress over time
  • Ask for the percentage change in each metric, not just the raw scores
  • Use comparisons to build a case for continued performance investment