Nexus Cloud: sync, team permissions, cloud runs and your own runner
Nexus Cloud keeps a copy of your workspace for your team. You choose what goes up: test code only, run summaries, or evidence. Nothing syncs by itself: Push and Pull are clicks. This page covers pairing a Studio, sync and conflicts, editing on the web, permissions, cloud runs, evidence, zip export and import, your own runner, CI tokens, visual baselines, and the AI draft.
Last updated:
Status: Nexus Cloud is in a private test, by invitation. A plan without Nexus Cloud gets PLAN_HAS_NO_CLOUD. Isolated mode in the Studio turns every action on this page off, and the Studio says why.
Pair a Studio
Pairing uses a device code. The Studio asks, and you approve on the web with the account that belongs to the team.
- In the Studio, open the Where tests run page (the menu bar entry for this PC, container, SSH host and CI), find Sync with Nexus Cloud and click Pair this Studio.
- The Studio shows a code and a link. Copy code and Copy link copy them. The code lasts 10 minutes.
- Approve the code on the web. The Studio polls and shows Waiting for you to approve it on the web… until you do.
- When it is approved, the card shows the member email, the role and the organization name.
The device token (nxd_…) is stored in the Studio's own home folder, never inside the workspace, and the server keeps only its SHA-256. Unpair on the card removes it from this Studio. An admin, or the member who owns the device, can also revoke it through the API (DELETE /v1/devices/:id). If the server revokes the token, the Studio drops it, keeps your local work as it is, and says so. A paired Studio can only reach the sync, preflight, run-report and run routes of the workspace API: environment variables, approvals, schedules, deleting a workspace and export answer 403 DEVICE_SCOPE.
To tie a local workspace to a cloud one, use Link to existing…. If the cloud already has a workspace with the same name, the Studio offers Link to it (no duplicate); it never creates a duplicate without a click. The link file (.nexus-studioqa/cloud-link.json) holds no secrets. If the cloud workspace was deleted, the Studio shows it as orphaned.
Push, Pull and conflicts
The sync table lists every test and synced file against the cloud. It compares three versions: this Studio, the cloud, and the last version both agreed on. The state of each row:
| State | What you can do |
|---|---|
| In sync | Nothing. |
| Local ahead | Push. |
| Cloud ahead | Pull. |
| Local only | Push. |
| Cloud only | Pull. |
| Deleted here | Push, to mark it deleted in the cloud for your team. The Studio asks first. |
| Deleted in cloud | Pull. Your local copy moves to .trash; it is never deleted outright. |
| Conflict, Delete conflict | Keep mine, Take cloud, Keep both (tests only, not files), or View diff. |
Push and Pull work on one row or on all the rows that can use them (Push (n), Pull (n)). Nothing is merged for you.
What syncs: tests (automation-scripts/tests, api-tests, features), playwright.config.js, package.json, .npmrc, the test order, flags and API environments files, and visual baselines. Selenium tests sync as local-only: they are stored, never run in the cloud. What never syncs: .env files, ticket configuration, extension pairings, recordings, evidence videos and HAR files, node_modules, .trash, and the link file. A path that leaves the workspace, a symlink or invalid UTF-8 is rejected for that item only. Limits: 200 KB per item, 50 MB and 2,000 tests per workspace.
Conflicts on the web. Every save carries the revision you opened. If a teammate saved first, the API answers 409 REV_CONFLICT and the web shows Someone changed this test with both versions line by line. Choose Keep editing, Reload theirs (drops your edit) or Overwrite with mine. The same code protects visual baselines.
Privacy per workspace. The same card lets you choose a profile: Fully private (nothing leaves except the license check), Private team (code and run summaries sync, evidence stays), Own runner, or Full cloud. You can then set the evidence that goes up (None, Summary, Summary + failures without video, Everything), report your runs (verdicts only) to the team history, and tell the web which tests have unpushed changes (hashes only).
Edit on the web
The Test cases screen edits name and folder, and either the steps or the code. Save writes a new revision. Versions lists the revisions; View shows one and Restore brings it back as a new revision. Delete asks for confirmation. The quick check form creates a test from a page URL, an optional button and the text to expect. The Extension inbox turns browser-extension recordings into tests.
The cloud accepts free Playwright JavaScript or TypeScript. Such a test is stored as custom. A custom test runs without the workspace secrets until someone approves that exact revision, and editing it removes the approval (see the permissions below).
Permissions per member
Roles are owner, admin, member and viewer. On top of the role, an admin can switch single permissions on or off for a member. The server enforces them; the web only hides buttons.
| Permission | What it allows | Default |
|---|---|---|
sync.push | Push from a Studio; import a zip together with tests.write; report runs and unpushed hashes. | On for members; an admin can turn it off |
tests.write, runs.start | Create and edit tests; start cloud runs. | On for members |
tests.approve | Approve a custom test revision (so it receives the secrets), and approve or reject a visual baseline. | Admin and owner; off for members until an admin grants it |
env.manage | Workspace variables, allowed origins, and the AI switch. Tests that read credentials are for these members. | Admin and owner; grantable to members |
runners.manage | Approve and remove runners; create and revoke CI tokens. | Admin and owner |
schedules.manage, members.manage, billing.view, billing.buy | Schedules, team, usage and minute purchases. | Admin and owner; schedules, billing.view and billing.buy are grantable to members |
Viewers read everything but change nothing; an admin can grant a viewer billing.view. A member who wrote a custom test cannot approve it unless they also hold env.manage: another member with tests.approve, or an admin, approves it (SELF_APPROVAL). Per-member switches are set with PATCH /v1/members/:id/perms; the Team screen does not have a screen for it yet.
Run in the cloud
On Run, choose tests, a folder or all, then Run selected, Run all or Run a folder. A preflight (Before this run) lists what would go wrong first: variables the tests read but the workspace lacks, a BASE_URL on a private network (the run is refused), a custom test without approval (it runs without secrets), tests that only run on your machine, and an empty minutes pool. Cloud runs use Chromium only. Selenium and other local-only tests stay on your machine, and so do tests that import local helper files (the API refuses them with UNSUPPORTED_IMPORTS). If the plan has no minutes left, the run is refused with Not enough cloud minutes. Schedules need at least 15 minutes between runs.
Evidence and the Trace Viewer
Evidence Locker and History list runs by origin, status and test. A run's evidence is one signed archive: the web downloads it, unpacks it in your browser and shows logs, screenshots and the verdict. Open in Trace Viewer opens Playwright's Trace Viewer in a new tab, served from the same site; the trace stays in your browser. The archive is kept for the retention days of your plan (7 by default), then the run shows expired. Verdicts and history stay. Triage notes let the team mark what they found.
Export and import a workspace
Download workspace exports a zip (nexus-workspace/1); any member, a viewer too, can export. Upload as new workspace or Import tests into <workspace> imports one (up to 56 MB) and needs tests.write and sync.push. A zip never carries the .env, only the variable names, and an import never accepts it, nor pairings or tokens. Importing a visual baseline needs tests.approve. Files the import refuses are listed with a reason.
Your own runner and CI tokens
An own runner runs signed tests on a machine you control. It opens no inbound port, uses no cloud minutes, and is not billed. The tests run with that machine's own .env, and only custom tests whose revision was approved are sent to it.
- On the machine:
node cloud/runner/self-hosted.mjs register --api URL --name NAME. It prints a code to approve; approving needsrunners.manage. - Start it with
node cloud/runner/self-hosted.mjs run. Options:--evidence none|all(default none),--allow-host a.example,*.b.example,--once. - Start a run on it with
POST /v1/workspaces/:id/runner-runs, or from a CI token.
The runner only reaches the host of your BASE_URL plus the hosts you allow. It is not an operating-system jail: use a dedicated user or a container on the host. A job nobody takes in 30 minutes ends as RUNNER_OFFLINE. Runners and CI tokens also have a web screen: Runners, in the Org group of the sidebar.
A CI token (nxc_…) is created by a member with runners.manage with POST /v1/ci-tokens and shown once. It can only start and read runs of its own workspace, acts as the member who made it (it stops working if that member loses runs.start), and a workspace holds up to 20. Bound to a runner, the run is free and executes there; without a runner it is a normal cloud run. In a pipeline:
NEXUS_CI_TOKEN=nxc_… nexus cloud-run TC0001,TC0002
The token is read from the environment only, never from arguments. Exit codes: 0 all passed, 1 a test failed or the run did not finish, 2 usage, 3 the token or account.
Visual baselines
On Visual, a member proposes a new screenshot (PNG, up to 5 MB, a path of up to three folders ending in .png, with a note). A member with tests.approve reviews Baseline, Proposed and Difference, then approves or rejects. Approving writes the baseline as a new revision, so the next sync shows it as cloud ahead. If the baseline changed while you looked, you get REV_CONFLICT and compare again.
Test Adapter and AI drafts
Test Adapter converts a test (from the workspace or pasted, up to 200 KB) to Playwright with rules first and shows a review before anything is saved. Save as the next version of this test or Create test saves the result as a custom test that needs approval.
The AI is off for every workspace until a member with env.manage turns it on. It uses your own key: set TEST_AI_PROVIDER (anthropic or openai) and TEST_AI_KEY as workspace variables first. While it is on, the code you send goes to that provider. Write with AI returns a draft you read; Create test from this draft saves it as a custom test that receives no secrets until an admin approves it. The AI key never reaches a run. The filter that checks a draft is not a security boundary: read the code before you approve it.