Publish from your laptop

A gallery doesn't need a CI run. If you take your screenshots on your own machine (a Playwright script, a native app's screenshot export, a design tool's export), push the folder with visualci publish. The push is a build like any other, in the project's builds list: review it, approve it, and the gallery serves the new screenshots.

1. Name the files

Each file's path in the folder, without its extension, is its screenshot's name, so name them by the gallery's naming rules:

screenshots/
  billing/1440-light.png
  billing/1440-dark.png
  billing/390-light.png
  billing/390-dark.png

VisualCI keeps a set of screenshots per environment, because the same screen drawn on two machines differs in its pixels. Name yours in visualci.yml, with the gallery's groups:

gallery:
  environment: laptop
  groups:
    - name: App
      include: ["billing/**", "settings/**"]

environment is lowercase letters, digits and dashes. Without it, a gallery shows ci, the environment CI runs send. Turn the gallery on in the project's Settings tab, as for any gallery (Choose what's public).

3. Push

Install the CLI, sign in with visualci login (or set VISUALCI_TOKEN to a project token), and from your checkout of the default branch:

visualci publish screenshots

publish sends everything in the folder as one full build: a screenshot you no longer send shows as removed. It runs in the gallery's environment from visualci.yml (--environment <name> to choose another), as a suite of its own called gallery (--name to change it), so it never mixes with your CI builds. It takes the commit and branch from git. Outside a git repository, give them: VISUALCI_BRANCH=main VISUALCI_COMMIT=$(date +%s) visualci publish screenshots.

It waits for the result and prints the build's link. The first push on the default branch has nothing to compare against, so it's approved as it is and published at once. After that, a push that changes something waits for review: approve it on the build's page, or let your coding agent review it over MCP. Once it's approved, the gallery serves the new screenshots.

It doesn't wait for the review itself, whatever the project's ci_mode, and it posts no GitHub check: the commit may never have been pushed. A screenshot that CI's suite also publishes is served from whichever suite built it last.

publish exits 0 when the build completed, changed or not, 1 when it failed, 2 on an error (no gallery section in visualci.yml, nothing in the folder, a refused request), 3 when the result didn't come in time and 4 when the organization is out of credits.

From an agent, without the CLI

An agent with VisualCI's MCP server can do the same with create_build (environment set to the gallery's, name: gallery, mode: ci, on the default branch, and config with the gallery section, since the groups come from it), upload_snapshots with the images as base64, and finalize_build.