---
title: Where tests run
description: The same YAML suite runs locally, in Shiplight-hosted CI, or on your own CI infrastructure. How to choose.
---

# Where tests run

<div class="view-markdown-wrapper">
<ViewMarkdown />
</div>

A Shiplight suite is plain YAML plus a Playwright project in your repo, so it is not tied to any one machine. The same tests run on your machine and in any CI, and moving between them changes a workflow file, not your suite.

|                 | Your machine                             | Shiplight-hosted CI                                      | Your own CI                                                 |
| --------------- | ---------------------------------------- | -------------------------------------------------------- | ----------------------------------------------------------- |
| How             | `bun run shiplight test`                     | GitHub Actions with a `shiplight-*` runner label         | Any CI provider's runners, such as GitHub's `ubuntu-latest` |
| Best for        | Authoring, debugging, verifying a change | Managed CI setup                                         | Checks on every change, nightly runs                        |
| Browser install | You (or your agent) once                 | Preinstalled                                              | You, in the job                                             |
| Credentials     | `.env` in your project                   | Configured by Shiplight for the run                      | You store secrets in your CI                                |

## Your machine

Local runs are where suites are authored and repaired: `/shiplight create-yaml-tests` to write tests, `bun run shiplight test` to run them, the [visual debugger](/local/run-locally#fix-it-yourself-the-visual-debugger) to hand-tune. You need Node.js 22 or newer, Bun, a browser, and an LLM key for AI-powered steps: your own provider key, or a Shiplight API token via the [LLM proxy](/local/local-testing/llm-providers#shiplight-llm-proxy). See [Run Locally](/local/run-locally).

## Your own CI

The `shiplight` CLI runs on any pipeline with Node.js 22 or newer and Bun: GitHub's own runners, GitLab, CircleCI, Jenkins, Buildkite, Azure DevOps, or your self-hosted machines. You install the browser in the job and supply LLM credentials for AI-powered steps (your own key, or a Shiplight token via the proxy).

For Shiplight-managed GitHub Actions runners, see [CI Runners](/cloud_v2/ci-runners).

What needs a Shiplight account:

- **Running tests with your own provider key doesn't.** Deterministic steps call no model, and AI-powered steps call your provider directly.
- **Uploading results does.** With `SHIPLIGHT_API_TOKEN`, `shiplight test` uploads its completed report from any machine by default; `SHIPLIGHT_REPORT_TO_CLOUD=0` keeps it local. The organization needs an active plan; see [Billing](/cloud_v2/billing). [Shiplight Cloud](/cloud_v2/) dashboards don't care where the run happened.
- **The proxy and the shared action cache do.** With `CI=true` and a `SHIPLIGHT_API_TOKEN` that has action-cache access, healed locators from passing tests persist to Shiplight Cloud for later runs. To keep the cache in your own CI instead, select `SHIPLIGHT_ACTION_CACHE_BACKEND=local` and persist it with [CI cache storage or Git commits](/local/ci/action-cache).

Provider templates: [CI/CD](/local/ci).

## How to choose

- **Start local.** Authoring and debugging happen on your machine either way.
- **Add CI on the provider you already use.** On GitHub, start from the [GitHub Actions guide](/local/ci/github-actions) or run `/shiplight ci`.
- **Cost-sensitive at scale**: cached deterministic steps call no model, so a mature suite is cheap to run anywhere; bringing your own LLM key is the biggest lever.

## Related

- [Run Locally](/local/run-locally): project structure, configuration, the debugger
- [CI/CD](/local/ci): wiring a provider, auto-triage, agent setup
- [LLM Providers](/local/local-testing/llm-providers): key options, including the Shiplight proxy
