opencode

Connect OpenCode to Google PageSpeed

Give an AI agent your Pagespeed node as a tool and it can measure a page's real performance itself instead of guessing at it. It can analyze a URL on mobile or desktop, pull the Performance, SEO, Accessibility, and Best Practices scores, read Core Web Vitals and lab metrics, and list the exact opportunities to fix, calling each one as a tool while it works. Wire it into a hosted coding agent in NoClick and it can audit a page, act on what it finds, and re-check the score afterward.

Loading preview…
Opens a workflow with 15 tools ready to use.

Tools OpenCode gets

Pick the operations you want and each becomes a tool the agent can call directly while it works.

Google PageSpeed

15 tools
Run Analysis (Full)

Run a full Lighthouse + CrUX analysis and return the complete report.

Analyze (Mobile)

Run the analysis using the mobile crawler/emulation profile.

Analyze (Desktop)

Run the analysis using the desktop profile.

Performance Score

Run with the PERFORMANCE category and extract the 0-100 Lighthouse score.

Accessibility Score

Run with the ACCESSIBILITY category and extract the score + audits.

SEO Score

Run with the SEO category and extract the SEO score + failing audits.

Best Practices Score

Run with the BEST_PRACTICES category and extract the score + audits.

All Category Scores

Run all four Lighthouse categories in one call and extract every score.

Core Web Vitals (URL)

Extract real-user Core Web Vitals (CrUX field data) for the specific URL.

Origin Core Web Vitals

Extract aggregated CrUX field data for the entire origin (whole site).

Lab Metrics

Extract lab metrics (FCP, LCP, Speed Index, TBT, CLS, TTI) from Lighthouse.

Get Audit Details

Extract a single named Lighthouse audit (score + details).

Get Opportunities

Extract performance opportunity audits with estimated ms/byte savings.

Get Screenshot

Extract the final rendered screenshot (base64 data URI) of the page.

Localized Report

Run with a specific result locale for localized audit text.

What you can build

Every morning, run a full analysis on your homepage and post the Performance score and Core Web Vitals to Slack so regressions get caught early.
When a deploy webhook fires, analyze the key landing pages on both mobile and desktop and flag any page whose Performance score drops below your threshold.
Pull the list of opportunities for a slow page, hand them to an AI step, and open a ticket with the ranked fixes.
On a weekly schedule, collect All Category Scores for a list of URLs and append them to a Google Sheet to track SEO and Accessibility over time.
Compare lab metrics against Origin Core Web Vitals for a URL to see whether real users experience the same speed your tests report.
Capture a screenshot and the Best Practices score for each new marketing page before launch and attach both to the review.

About OpenCode

OpenCode is an open, model-agnostic command-line coding agent. In NoClick it runs hosted and gains your apps as tools, so it can act on real systems rather than just edit files. Wire an integration into the agent and OpenCode can use that app’s operations directly while it works. It is a flexible choice when you want an open agent with broad model support and real tool access.

Open and model-agnostic
Flexible across many underlying models
Good general-purpose tool use
Lightweight to point at a focused task

Frequently asked questions

Open your OpenCode agent in one click

NoClick runs OpenCode for you with Google PageSpeed wired in as tools. Connect your account and run.