Quick start
1. Create a project
Sign in at visualci.com with GitHub, create an organization and a project, and create a project token on the project's Tokens tab. Project tokens start with vci_.
A coding agent can do this step for you over MCP, with create_organization, create_project and create_project_token. See Coding agents.
To get a GitHub check on pull requests, link the project to its repository on the project's Settings tab and install the VisualCI GitHub App on that repository.
2. Install the CLI
On Linux (x86_64 or arm64) or macOS:
curl -fsSL https://visualci.com/install.sh | sh
It installs to /usr/local/bin, or to $VISUALCI_INSTALL_DIR, and checks the download's SHA-256. On Linux x86_64 it downloads from visualci.com, so CI runners don't need to reach GitHub. On Linux arm64 and macOS it downloads the latest GitHub release. Anywhere else with Rust, build it from source:
cargo install --git https://github.com/DocSpring/visualci visualci-cli
3. Send a build
Set VISUALCI_TOKEN to the project token in your CI provider's secrets. Then, in the CI job:
export VISUALCI_BUILD_ID=$(visualci build create)
# run your tests, then:
visualci upload spec/artifacts # PDFs, screenshots, .json, .html and .txt files
visualci upload --from auto src tests # snapshot files from Jest, Vitest, insta, syrupy or rspec-snapshot
visualci build finalize
Snapshot names come from file paths. visualci build create reads the commit, branch and pull request from your CI provider's environment, or from git. See Other CI providers for the variables.
4. Review the changes
A build with nothing to compare against is approved automatically and becomes the baseline. After that, each build is compared with the approved build of its nearest ancestor commit, or the default branch's latest approved build.
When something changed, the CI job still passes and the GitHub check stays pending. Your agent reads the changes with get_build and get_snapshot, then approves them with review, or fixes the code and pushes again. Approved snapshots become the baseline for later builds on that branch.