Introduction
Self-hosted Percy alternative
Moving from Percy to CirCI, an open source tool you host yourself: how the two differ, when each fits, and how to port Playwright, Cypress and Storybook setups.
Percy and CirCI both take the screenshots of your UI from CI, compare them with approved ones and ask your team to review what changed. Percy is a hosted service, part of BrowserStack. CirCI is open source software (GPL-3.0-only) that you run on your own servers, and there's no hosted version of it.
This page is for teams weighing a move from Percy to CirCI: what's different, when Percy is still the better fit, and how each kind of Percy setup maps to CirCI. Facts about Percy come from its public documentation, read on November 23, 2026, and Percy can change after that. Prices and plan limits are left out because they change: check BrowserStack's pricing page. For Chromatic and Argos too, see Compared with Chromatic, Percy and Argos.
At a glance
Section titled “At a glance”| CirCI | Percy | |
|---|---|---|
| Where it runs | On your own servers: one Docker image, Postgres and file storage (Requirements) | Percy's hosted service, a BrowserStack product |
| Self-hosting | The only way to run it | Not mentioned on the pages read |
| License | GPL-3.0-only | The service's license isn't stated on the pages read; the SDKs are public repositories on GitHub |
| What gets compared | The PNG files your tests write. CirCI doesn't render pages | The SDK captures the page's DOM in your test browser, and Percy renders it into screenshots in its own browsers and at the widths you choose |
| Browsers | Whatever your tests run. Upload one build per browser to keep them apart | Chrome, Firefox, Edge and Safari, plus Safari on iPhone and Chrome on Android, rendered by Percy |
| How a run uploads | circi upload after the tests, or a plugin for Cypress, Storybook or Vitest |
Tests run inside percy exec --, with a PERCY_TOKEN |
| Review and merge gate | Approve or reject in the dashboard or on the pull request; checks on GitHub, GitLab and Bitbucket (Integrations) | Review in Percy's dashboard; Percy updates the commit status on the pull request (source control integrations) |
When CirCI fits
Section titled “When CirCI fits”- Screenshots can't leave your network. Every image, build and review stays in your own Postgres and storage (Security, Storage).
- You want free software with nothing to buy. All of CirCI is GPL-3.0-only.
- Your tests already take the screenshots. Playwright, Cypress, Storybook or any tool that writes PNG files works, and what your tests render is exactly what gets compared.
- You want to review from your git host. A check per build on the pull request with Approve and Reject buttons, review rules, and flaky screenshot triage.
When Percy fits
Section titled “When Percy fits”- You don't want to run a server. With CirCI, updates, backups and uptime are yours (Upgrades and migrations, Backups).
- You want one test run rendered in many browsers. Percy renders a captured DOM in several browsers and widths on its own infrastructure. With CirCI you run each browser in your own CI and upload a build per browser.
- You need a mature product today. CirCI is pre-1.0, and parts of it are verified only against fakes.
Moving from Percy
Section titled “Moving from Percy”There's no import of Percy builds and no Percy-compatible API. The move is to let your tests write PNG files and send them to CirCI. Your test code mostly stays as it is: the Percy snapshot calls become screenshot calls.
Set up CirCI and the token
Section titled “Set up CirCI and the token”-
Run a CirCI server (Run it locally to try it, then Docker Compose, Kubernetes or Terraform for real use).
-
Create a project and copy its CI token (Create a project).
-
In your CI's secret store, replace
PERCY_TOKENwithCIRCI_TOKEN(the project's token) and addCIRCI_API_URL(your CirCI address). -
Drop the
percy exec --wrapper from your test command. CirCI uploads after the tests, as below.
Playwright
Section titled “Playwright”Percy's percySnapshot(page, 'name') from @percy/playwright becomes Playwright's own screenshot, written to a folder:
import { expect, test } from '@playwright/test'
test('home page', async ({ page }) => { await page.goto('/') // Was: await percySnapshot(page, 'Home page') await expect(page).toHaveScreenshot('home.png', { fullPage: true })})Set snapshotPathTemplate and updateSnapshots: 'all' in playwright.config.ts so the screenshots land in ./screenshots on every run, then upload the folder:
npx playwright test && npx @circi/cli upload ./screenshots --waitThe full configuration, naming rules and tips for stable screenshots are in Playwright. Percy rendered each snapshot at several widths; in Playwright, use one project per viewport or device, and each one writes its own folder.
Cypress
Section titled “Cypress”cy.percySnapshot('name') from @percy/cypress becomes Cypress's own cy.screenshot('name'), and @circi/cypress uploads what Cypress writes when cypress run ends:
npm uninstall @percy/cli @percy/cypressnpm install --save-dev @circi/cypressIn your Cypress support file (cypress/support/e2e.ts in current Cypress; Percy's README still names the older cypress/support/index.js), replace import '@percy/cypress' with import '@circi/cypress/support', and add setupNodeEvents: circi({ name: 'cypress' }) to the Cypress config. Then rename the calls:
it('looks right', () => { cy.visit('/') cy.screenshot('home') // was: cy.percySnapshot('Home')})Run npx cypress run with CIRCI_TOKEN and CIRCI_API_URL set. Unlike Percy, where the name defaults to the test's title, CirCI uploads only screenshots that have a name. Details are in Cypress.
Storybook
Section titled “Storybook”percy storybook ./storybook-static from @percy/storybook becomes @circi/storybook, which screenshots every story with Playwright in your CI and uploads them:
npm uninstall @percy/cli @percy/storybooknpm install --save-dev @circi/storybook playwrightnpx playwright install chromiumAdd circi({ name: 'storybook', viewports: ['1280x720'] }) to addons in .storybook/main.ts, then in CI:
npx storybook buildnpx circi-storybook upload --waitPercy's per-story percy parameter has a CirCI counterpart, parameters.circi: skip, viewports, selector, padding and delay. See Storybook.
Baselines
Section titled “Baselines”Old Percy builds aren't imported. The first build of each name has nothing to compare with, so every screenshot is new: approve it once on your default branch and it becomes the baseline for later builds (First review, Baselines and ignore regions).
Pull request checks
Section titled “Pull request checks”Link the project to its repository and every build shows on the pull request as a check, with Approve and Reject buttons and a summary comment: GitHub, GitLab, Bitbucket. Make the check required in branch protection to block merging until the changes are reviewed. Without a linked git host, --wait makes the CI job itself the gate: it exits 1 while changes need review (How a build flows). A complete workflow is in the GitHub Actions guide.
Where this page comes from
Section titled “Where this page comes from”- Percy SDK and screenshot capture workflow: the SDK captures the DOM and Percy renders it in its browsers and widths.
- Browser compatibility and maximum page dimensions: the browsers Percy renders in.
- Integrate Percy with Playwright and percy/percy-playwright:
percySnapshot(page, name),PERCY_TOKEN,percy exec. - Integrate your Cypress tests with Percy and percy/percy-cypress:
cy.percySnapshot(), the support file import, the name defaulting to the test title. - percy/percy-storybook and Storybook advanced topics:
percy storybook, the per-storypercyparameter. - The Percy product page.
New to CirCI? Start with What is CirCI? or the FAQ.