Lighthouse JSON Reports for OpenAI Codex
Feed stripped AIReport JSON (<50KB) from PageSpeed Insights into OpenAI Codex CLI or cloud tasks. Prioritized scorePlan culprits without 2MB raw PSI bloat.
Loading…
Loading...How to use Lighthouse JSON with OpenAI Codex
- 1
Run a live Lighthouse audit on your public or preview URL at speedexporter.com
- 2
Click "Download AIReport (JSON)" to save the stripped <50KB report into your project root
- 3
Open OpenAI Codex CLI (or attach the file to a Codex cloud task)
- 4
Paste the scorePlan-focused prompt below referencing the AIReport file
- 5
Review Codex's diff, verify the build passes, and deploy your preview branch
- 6
Re-scan the deployed URL in PageSpeed Exporter to confirm every lab metric hits targetFor90
Ready-to-use prompt for OpenAI Codex
Copy this prompt, attach your stripped AIReport JSON, and send it to OpenAI Codex:
Read @aireport.json (a stripped PageSpeed Exporter AIReport for [your-site.com]). 1. Check scorePlan and pick the lab metric with the highest pointsAtRisk 2. Trace each culprit in details (selector, script URL, source module, LCP subpart) to our repo files 3. Implement the minimal code or config diff to move that metric to targetFor90 (do not rank by savings.ms) 4. Skip passedAuditIds and run our test/build command to verify the patch
Run live audits in OpenAI Codex via MCP
/api/mcpOpenAI Codex CLI also supports remote HTTP MCP servers in `~/.codex/config.toml` — point it at `https://speedexporter.com/api/mcp` with your `Authorization: Bearer` token from `/dashboard`, or attach the <50KB AIReport JSON directly.
Frequently asked questions
Why should I give OpenAI Codex an AIReport instead of raw PSI JSON?
Raw PageSpeed Insights JSON is 500KB–2MB of base64 screenshots and passing audits that waste Codex context and slow down reasoning. AIReport strips that to under 50KB while keeping scorePlan, fixLocation, and exact culprit selectors/modules.
Does PageSpeed Exporter work with Codex cloud sandboxes?
Yes. Commit or attach the <50KB AIReport JSON to your task so Codex has full Lighthouse lab metrics, CrUX field data, and StackPack hints even when the sandbox has no outbound network access.
How many reports can I run for iterative Codex fixes?
Anonymous visitors get 2 preview reports per 30 days, a free account gives 5 reports/month, Starter ($9/mo) gives 50 reports/month with desktop/both strategies, and Pro ($29/mo) gives 200 reports/month.
Also works with
Need more reports? View pricing plans starting at $9/month.