Set up Calque

Calque scans every page of a Next.js site after each Vercel deployment. The scan runs as a GitHub Action in your own repository, so nothing runs on our servers and Calque never changes your code. Five steps, about 5 minutes.

1. Create a project

Sign in at getcalque.com and create a project for your site. Its setup screen gives you a project token and shows each of the next steps with values ready to copy.

2. Add the workflow file

Add .github/workflows/calque.yml to your repository, copied from the setup screen. It runs after each successful deployment:

  • on your production branch, a full scan of every page, stored in Calque;
  • on any other branch, a review against production, posted as one comment on the pull request and kept up to date.

The pull-requests: write permission is only used for that comment. Remove it to keep reviews in the job summary.

3. Add the settings

In your repository, under Settings › Secrets and variables › Actions:

  • secret CALQUE_TOKEN: the project token;
  • variable CALQUE_SITE_URL: your production URL;
  • variable CALQUE_PREVIEW_URL (optional): your preview URL pattern, for example https://myapp-git-{branch}-myteam.vercel.app.

4. Connect Vercel

Previews behind Vercel Deployment Protection need a way in. In the project's setup, choose Connect Vercel and pick the team that deploys the site. The integration lets Calque:

  • find the preview URL of each pull request;
  • create a protection bypass secret, noted “Calque”, on that project only.

It reads projects and deployments and never changes your settings or deployments. Without it, add a Protection Bypass for Automation secret yourself as VERCEL_AUTOMATION_BYPASS_SECRET. To disconnect, choose Disconnect in Calque or remove the integration from your Vercel team.

5. Signed-in pages (optional)

To check the pages behind your sign-in, give Calque a test account on your preview or staging environment, never production:

  • secrets CALQUE_TEST_EMAIL and CALQUE_TEST_PASSWORD;
  • the login-url, test-email and test-password lines in the workflow, uncommented.

The scanner signs in, visits the private routes it finds in your repository and never submits any other form.

Your agent

Calque has no AI of its own: your coding agent does the fixing. Add Calque as a connector in Claude, Cursor or another MCP client with the URL https://getcalque.com/api/mcp, or from the command line:

claude mcp add --transport http calque https://getcalque.com/api/mcp

Your agent can then list the issues, read where each one is and what is expected, and get your site’s design rules.

Support

Questions, bugs or a check you would like: write to amilkoff@gmail.com.