Vercel Analytics in VS Code and Cursor
Install the read-only Lookout extension: the open project's visitors, speed grade and top pages in VS Code or Cursor, and a hint above each Next.js page.
Last updated November 21, 2026
What the extension shows
The Lookout extension shows Vercel Web Analytics and Speed Insights for the project in the folder you have open. It has three parts:
- Status bar: the site's visitors for the last 7 days, the change against the week before, and the speed grade (A to D). Click it to open the panel.
- Side panel: visitors with a small chart, the speed grade with LCP, INP and CLS, the three busiest pages, the last deploy, and a link to the site in Lookout. Click a page to open its file.
- Code hint: one line above a Next.js page's code with that page's visitors, change and LCP.
Install it
VS Code
- Open the Lookout for Vercel Analytics page on the Visual Studio Marketplace.
- Click Install. Or run this command in a terminal:
code --install-extension lookoutstats.lookout-vercel-analyticsCursor
- Download the
.vsixfile from the latest release on GitHub. - In Cursor, open the Extensions view.
- Open the … menu and choose Install from VSIX….
- Select the file.
Sign in
- Click Lookout in the status bar. The panel opens.
- Click Sign in to Lookout. The panel shows a code, and the browser opens lookoutstats.com.
- Sign in to Lookout in the browser if it asks. Then make sure the page shows the same code as the panel.
- Click Approve. Only a workspace owner can approve.
The editor gets a read-only key for the workspace that is open in the browser. The editor keeps the key in its secret storage. Settings › API & MCP in Lookout lists the key with the computer's name, and you can revoke it there. Without a Lookout account, the same button lets you create one.
How it finds your site
The extension reads the folder's Vercel link, the file .vercel/project.json that vercel link writes. In a monorepo it also reads .vercel/repo.json (from vercel link --repo) and the links in apps/* and packages/*, and it uses the project that holds the open file.
A folder without a link shows Which site is this folder? with your workspace's sites. Pick one, and the extension remembers it for that folder. Vercel adds .vercel to .gitignore, so a fresh clone has no link: run vercel link or pick the site once.
The code hint
The hint sits above a page's export default. The extension matches the file to its address the way Next.js does: app/pricing/page.tsx is /pricing, route groups such as (marketing) are left out, and app/blog/[slug]/page.tsx adds up the visitors of every /blog/… page. The LCP figure appears for the slowest routes that Speed Insights reports. Turn the hint off with the setting lookout.codeHints.
Settings
lookout.range:24h,7d(default) or30d.lookout.codeHints: show the code hint (default on).
Troubleshooting
- “This folder's Vercel project isn't in your Lookout workspace”: the link names a project of a Vercel team that isn't connected to this workspace. Connect the team in Lookout, or pick a site from the list.
- The panel signs you out: someone revoked the key, or it belongs to a workspace you left. Sign in again.
- No code hint: the file isn't a Next.js page, the page had no visits in the period, or the hint is off.
The extension is open source (MIT): lookoutstats/lookout-dev. For the terminal, see Vercel Analytics from the command line.
Common questions
Can the extension change my Vercel projects?
No. It signs in with a read-only Lookout key. The key reads your sites' numbers in Lookout and nothing else. It cannot deploy or change settings.
Which frameworks get the code hint?
Next.js, with the App Router (app/**/page.tsx) and the Pages Router (pages/**). The status bar and the side panel work for every framework.
Why does the panel show no speed grade?
The grade comes from Vercel Speed Insights. Vercel shares those numbers with other apps only for projects with Speed Insights Plus. A site with fewer than 50 page loads in the period also gets no grade, because a few slow visits would change it.
Does it work in Cursor?
Yes. Until the extension is listed in Cursor's gallery (Open VSX), install the .vsix file from GitHub: in Extensions, open the … menu and choose Install from VSIX.