Overview
Beryl is an agentic testing platform for web apps on desktop and mobile browsers, and for Android and iOS apps. Beryl's cloud agent writes the tests, and an MCP server and CLI let your coding agent ask for tests, run them, and maintain them from the editor you already work in. The MCP server is hosted at api.beryl.so/mcp, so it plugs into Claude Code, Claude Desktop, claude.ai, ChatGPT, Cursor, VS Code, opencode, and any other client that speaks MCP.
Tests are durable, plain-language plans, not selector scripts, and they live on beryl.so: versioned, run in real cloud browsers, Android emulators and iOS simulators, scheduled, diffed, and healed when your UI drifts. Signup, email OTP, and magic-link flows are self-contained through durable test accounts with real inboxes, and your tests stay portable as standard Playwright.
Quickstart
One command wires Beryl into your coding agent. From then on your agent asks Beryl to create durable end-to-end tests from a document, and runs them in Beryl's cloud.
- 1
Set up: run in your repo
npx @beryl-so/cli@latest initSigns you in, asks which agent to wire the
berylMCP server into, and installs the beryl-test skill. Nothing goes in your app code. The per-agent flags, and manual setup for any other MCP client, are in MCP setup. - 2
Approve the sign-in
Your browser opens
beryl.so/cli/connect. Confirm the code shown in the terminal. No browser handy? Press Enter for an emailed 6-digit code; a new email gets an account created automatically. - 3
Ask your agent for tests
"Create tests for the checkout flow on https://example.com"Your agent starts a job (
beryl jobs create): Beryl follows your prompt, reads any document you attach, explores the site, and authors one test per flow. The prompt and document are sent to the LLM that drives Beryl. - 4
Run them
beryl runs trigger --watchRuns your tests in Beryl's cloud browsers;
--watchstreams progress and exits 0 when no counted test failed (a quarantined test's failure is reported, not counted).
Signing in
beryl login (run by init too) signs in via the browser: the CLI opens beryl.so/cli/connect, you approve the code shown in the terminal, and a personal access token is stored in ~/.config/beryl/config.json. Nothing else is persisted.
beryl login| Fallback | When to use it |
|---|---|
| Press Enter at the prompt | Emails a 6-digit code instead. A brand-new email gets an account created automatically, with no separate signup. |
beryl login --otp | Skip the browser entirely and go straight to the emailed code. |
beryl login --token | Use an existing token from beryl.so, Settings, Access tokens. |
BERYL_API_KEY | Environment variable for CI and headless machines, with no login command at all. |
The full flag reference, including the non-interactive --email --code flow for agents, is on the CLI page.
How Beryl works
Durable tests, not scripts
A Beryl test is a JSON action plan: the steps to take, each carrying its intent in plain language. There are no selectors or XPath to maintain. When the UI shifts, the recorded intent lets Beryl heal the step instead of you hand-fixing a script.
Every test is authored by Beryl, from a document a human writes (beryl jobs create), so all plans are built one way. Your own agent stays in the loop over the beryl MCP server: it triggers runs, reads failures, and fixes a test by editing its plain-JSON plan and submitting it with beryl tests recompile, which proves the change with a replay before it saves. The beryl-test skill installed by init teaches it the plan shape; beryl guide prints the same guide.
Sign-in flows are self-contained: authenticated tests sign in as durable test accounts, and their email (OTP codes, magic links) arrives at the project's own inbox, so signup and sign-in flows run with no human in the loop. A job signs in the same way, as the environment's default test account or the one --account names, and the tests it saves sign in as that test account.
What init sets up
| Piece | What it does |
|---|---|
beryl MCP server | Every CLI command as a tool, at https://api.beryl.so/mcp. The config holds no token: your agent signs in to Beryl the first time it connects. |
| beryl-test skill | The test guide, installed to ~/.agents/skills/ and ~/.claude/skills/. |
The default scope is per-user (matching where your login token lives), so the setup follows you into every repo. beryl init --scope project writes a committed .mcp.json and repo-local skills for teammates instead. Re-running is safe: it refreshes the skill to the CLI's version and skips whatever is already configured. Which files it touches for each agent is listed in MCP setup.
Cloud runs & CI
Your tests run in Beryl's cloud browsers with beryl runs trigger. --watch streams progress and exits 0 when no counted test failed (a quarantined test's failure is reported, not counted), so one line gates a deploy.
beryl runs trigger --watchIn CI, authenticate with a project-scoped CI token (created in the project's Schedules and CI page; it can upload builds, create tests, and trigger, read and cancel that project's runs) stored as a secret:
env:
BERYL_TOKEN: ${{ secrets.BERYL_CI_TOKEN }}
run: |
npx @beryl-so/cli runs trigger --watchToken setup, the full flag vocabulary, exit codes, and uploading a fresh Android or iOS build before the run are covered in CI integration.
Mobile apps and builds
Beryl tests Android and iOS apps from builds you upload, on Android emulators and iOS simulators in its cloud. Turn the app platforms on for the project:
beryl projects surfaces --add android --add iosEach environment has an app id per platform: the Android package or iOS bundle id its tests install. The first ready build fills it in. Set it by hand only when the project has several apps, such as flavours: beryl envs update <env-id> --app-id android=com.acme.app.
What to upload
| Platform | Accepted | Refused |
|---|---|---|
| Android | A universal .apk, or an .aab that Beryl converts to an APK | Split APKs, native code only for ABIs the emulators can't run, a minSdk above the emulators' API level |
| iOS | A simulator build: the .app folder, a .zip of it, or EAS's .tar.gz | An .ipa, an .xcarchive, or any other build for real iPhones, and builds with no Apple-silicon (arm64) slice |
Builds can be up to 1 GB. iOS tests need a simulator build, so build one with your toolchain:
| Toolchain | Command | Upload |
|---|---|---|
| Xcode | xcodebuild -scheme <Scheme> -sdk iphonesimulator -configuration Release build | Release-iphonesimulator/<App>.app |
| Expo EAS | eas build --platform ios --profile <profile>, with "ios": { "simulator": true } in the profile | The .tar.gz it produces, as is |
| React Native CLI | npx react-native run-ios --mode Release | ios/build/Build/Products/Release-iphonesimulator/<App>.app |
| Flutter | flutter build ios --simulator | build/ios/iphonesimulator/Runner.app |
Upload a build
In the dashboard, open the project's Environments page and click Upload build under App builds. Drag the file in (or the .app folder, which your browser zips) and pick which environment it is for. From the CLI:
beryl config files upload ./app-release.apk
beryl config files upload ./build/Release-iphonesimulator/MyApp.app
beryl config files upload ./MyApp.zip --kind ios_buildA .zip or .tar.gz of an iOS build needs --kind ios_build; without it the CLI stores the file as a test fixture.
--env <env-id> pins a build to one environment; without it the build is project-wide. An APK is checked at once. An .aab is converted on an Android worker and the command waits until it is ready; --no-wait returns at once and beryl config files get <file-id> shows when it is ready. To upload from a pipeline, use the Beryl GitHub Action or EAS workflow job, or see Upload the build, then run.
Upload a build from a URL
A build that already sits in Expo EAS, Firebase App Distribution or a storage bucket doesn't need downloading first. Pass a link Beryl can download with a plain GET, such as an EAS artifact URL or an S3 presigned URL:
beryl config files upload --url https://expo.dev/artifacts/eas/abc123.apk
beryl config files upload --url "$PRESIGNED_URL" --kind ios_build --env <env-id>Beryl downloads the build (up to 1 GB, following redirects, never from a private or internal address) and checks it exactly like an uploaded file. The kind comes from the URL path: .apk and .aab are Android, .zip, .tar.gz and .tgz are iOS; pass --kind when the path doesn't say. The command waits until the build is ready, and a link that fails to download, is too large or isn't a valid build fails with the reason. A coding agent on the MCP server uploads the same way with the config_files_upload tool and a url.
A run installs the newest ready build pinned to its environment, or the newest project-wide build when none is pinned. Beryl keeps the newest 5 builds per app per environment.
Signing an .aab
An APK keeps your signature. A converted .aab is signed with Beryl's key for the project, unless you set your own keystore with beryl config signing set. If the app uses Google Sign-In, Firebase or Play Integrity, register the key's fingerprints there:
beryl config signing getWhen an upload is refused
| Message says | What to do |
|---|---|
| A split APK | Upload a universal APK: ./gradlew assembleRelease, flutter build apk without --split-per-abi, or an EAS profile with "buildType": "apk". An .aab works too. |
| Native code only for some ABIs | The emulators run arm64-v8a and x86_64. Include one of them, or upload a universal APK. |
| Needs a newer Android API | The app's minSdk is above the emulators' API level (named in the message). Lower minSdk for the test build. |
| An .ipa, or built for real iPhones | Build for the simulator with one of the commands above and upload that. |
| No Apple-silicon (arm64) slice | Build for the arm64 simulator, the default on Apple-silicon Macs and in EAS. |
Test accounts
Tests that need a sign-in sign in as a test account. If your app has a dedicated user with an email and password, add it as an Email and password test account and it is usable at once; the password is stored encrypted and never shown again:
beryl accounts create --email qa@example.com --password '<password>'Or let Beryl sign up a test account itself (Signed up by Beryl) at the project's inbox (beryl accounts create --type provisioned --login-method otp), so OTP and magic-link email reach it with no human involved. --label admin adds a second test account, such as an admin, that tests can name.
Each test account stores a sign-in plan that runs replay once before the tests. An app platform signs in on its own screens, so Android and iOS tests get their own sign-in plan beside the web one. A job saves it when it meets the app's sign-in screen; beryl accounts set-login <account-id> --surface android (or --surface ios) replaces it, and beryl accounts check <account-id> proves it against the live app.
Groups
Groups name a slice of your tests, such as Smoke or Checkout, so you can run or schedule just that slice. A test can be in several groups.
beryl groups create Smoke
beryl tests add-groups <test-id> <test-id> --group Smoke
beryl runs trigger --group Smoke --watch
beryl schedule add --groups "Smoke" --frequency daily --hour 6 --tz UTCDeleting a group keeps its tests; a schedule that targets only that group is removed with it.
Files for upload steps
A test that uploads a file, such as an avatar or a CSV import, attaches a file stored in the project. Upload it once, project-wide or for one environment with --env, from the CLI or with the File button under Files on the project's Environments page:
beryl config files upload ./fixtures/avatar.pngberyl config files list shows what is stored. Tests attach the newest upload of a name, and a copy pinned to an environment wins over the project-wide one there.
Scheduling & healing
Put your tests on a schedule and Beryl re-runs them in the cloud, diffs each run against the previous one, and shows what changed, so a test that passed yesterday and fails today surfaces immediately.
beryl schedule add --frequency daily --hour 6 --tz UTCWhen a step breaks but the flow still works, Beryl heals the test from its recorded intent instead of paging you. Every run produces a report: pass/fail per test, timing, and history over time (beryl projects report).
Quarantine for flaky tests
A quarantined test still runs and its result is still recorded, but its failure no longer fails the run or the CI exit code. After 5 clean passes in a row (the default) it reports as ready to release; off releases it.
beryl tests quarantine on <test-id>beryl projects quarantine on turns on auto quarantine: a test that keeps failing with passes in between (by default 3 failures in 7 days) is muted on its own and released after enough passes in a row. A test that fails every time is a regression and is never quarantined.
Site Health
Site Health grades how your site reads to search engines and visitors: content, speed, links, security, and a visual check of layout at phone, tablet and desktop sizes. A check runs on its own when an environment gets its URL, and you can run one any time:
beryl health run --wait
beryl health getConnect Linear and Site Health files its findings as tickets, updates them and closes them once fixed. Start with beryl health tracker connect, then pick a team with beryl envs update <env-id> --tracker linear --tracker-team <team-id> (--tracker-threshold sets the lowest severity it files). beryl health intended <key> marks a finding as intended so it stops counting against the grade.
Apps that can't sign themselves in
Most apps sign in with a test account Beryl drives itself. When the only way in is Google, SSO or another OAuth provider, give Beryl a signed-in session instead: sign in once in Chrome and save it with the Beryl extension. A job that hits such a login wall pauses as Needs input and resumes by itself once a session is saved, keeping every test it already created.
- 1
Install the extension
Add the Beryl extension from the Chrome Web Store.
- 2
Connect it to your project
When Beryl asks for a test account in your project's chat, the Test account tab beside it shows the Saved from Chrome steps: click Connect there. Nothing to copy. You can also click the extension on any tab and paste a token from Settings, Account, General.
- 3
Sign in and save
Sign in to your app in Chrome with a dedicated test account, then click the extension on that tab and save the session. Chrome asks for access to that one site for the save and Beryl gives it back right after. The extension looks for an element on that page that only shows when signed in, such as a Sign out control; if it can't pick one, choose one or type your own selector. It shows up on your project's Test accounts page as a Saved from Chrome test account.
- 4
Beryl checks it works
beryl accounts set-login <account-id> --signed-in-check check.jsonBack in the chat, Beryl opens that page in a fresh browser and confirms the element shows, so a dead session never runs your tests signed out. A test account saved without a check can't be confirmed signed in: click Add signed-in check on Test accounts to give it a page and an element. From the CLI, set it with the command above and run
beryl accounts check <account-id>. - 5
See it on Test accounts
The Saved from Chrome test account shows Last checked once the check passes. Tests that need a sign-in now use this session. Click Check there any time to prove it again.
From the CLI, beryl tokens create makes the token and beryl accounts check <account-id> runs the check.
AUTH_EXPIRED: save the same label again from Chrome to replace it. Every passing check keeps the stored session fresh. Beryl never shows a saved session back to anyone, including Beryl staff.The web app
Everything lives at beryl.so too: projects, tests, runs, replays, diffs, reports, and team management. Login-gated apps work through durable test accounts and the project's own inbox.
FAQ
What do I need installed?
Node 20.19+. init handles the rest: the beryl MCP server wiring and the beryl-test skill. Nothing is added to your application code, and tests run in Beryl's cloud, not on your machine.
Do I write test code?
No. Beryl authors JSON action plans from a document you write, with each step's intent in plain language. There are no selectors or XPath to maintain.
Can it test flows behind a login?
Yes. Authenticated tests sign in as durable test accounts, and sign-up or OTP email arrives at the project's own inbox, so magic-link and verification flows run without a human.
My app only has Google or SSO login. Can Beryl test it?
Yes. Sign in once in Chrome and save it with the Beryl extension; tests then sign in with that Saved from Chrome test account. See Apps that can't sign themselves in, above.
Can Beryl test my mobile app?
Yes. Beryl tests web apps on desktop and mobile browsers, and Android and iOS apps on its own emulators and simulators. Turn on the Android or iOS platform, upload an .apk, .aab or iOS simulator build from the dashboard, the CLI or CI, and tests install the newest build. See Mobile apps and builds, above.
How do regressions get caught?
Scheduled cloud runs diff each run against the last, so real failures surface immediately, while healable breaks (a moved button, a renamed label) are healed from the test's recorded intent instead of failing the run.
Support
Browse the Support Center or reach the team at support@beryl.so. We respond within one business day.
