> ## Documentation Index
> Fetch the complete documentation index at: https://e2e.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Security rules

> Reference for every security rule the e2e runner enforces on model input, tool calls, secrets, redaction, sessions, the replay cache, artifacts, and network connections.

The [Security](https://e2e.com/docs/security) guide explains the trust boundary. This page
lists the rules behind it, as the code enforces them.

## Reference

| Section | Covers |
| --- | --- |
| [Model input](#model-input) | What the model reads in each step |
| [Tool calls](#tool-calls) | Built-in and project tools, node ids |
| [Policy denials](#policy-denials) | Calls that fail with `POLICY_DENIED` |
| [Navigation](#navigation) | URL schemes per entry point |
| [Request credentials](#request-credentials) | `headers`, `basicAuth` |
| [Site check](#site-check) | Child frames |
| [Secret fills](#secret-fills) | `type_secret`, `fill(secret)` |
| [Screenshots after a secret fill](#screenshots-after-a-secret-fill) | What masking covers |
| [Secrets in engine options](#secrets-in-engine-options) | `basicAuth` and other engine options |
| [Redaction](#redaction) | Model input, reports, downloads, output |
| [Where redaction stops](#where-redaction-stops) | Transformed values, video, `command.log` |
| [Downloads](#downloads) | Files the app served |
| [Sessions](#sessions) | Saved authentication state |
| [Cache trust](#cache-trust) | Replay cache files and `cache.store` |
| [Artifacts](#artifacts) | Files under the output directory |
| [Outbound connections](#outbound-connections) | Destinations the runner connects to |
| [MCP and explore](#mcp-and-explore) | MCP sessions, the explorer's sign-ins |

### Model input

The model reads app content as quoted evidence, kept apart from runner policy
and trusted project context. App content can't grant tools, credentials, or a
larger budget. [How agent steps work](https://e2e.com/docs/agent-steps) explains a step in full.

| In the prompt | Form |
| --- | --- |
| Your instruction and params | Quoted inside `<instruction>` and marked as data. A `Secret` param shows only its name and purpose. |
| The screen | An accessibility tree with node ids, roles, names, text, test ids, link targets, and states, cut at a size limit. No selectors. A link's query and fragment show only as `?…` and `#…`. Secure fields show as `value=<secure>`, unless [a page script hides one](#where-redaction-stops). |
| The location | The current URL, redacted, without userinfo. A judgment gets it as a path on the app's origin and as the whole URL elsewhere, cut at a size limit. On a device, the app and screen title. |
| A screenshot | When needed or requested, and only if the engine proves secure fields are masked. |
| Prior steps | `agent.act` receives bounded records from the same test or serial group. Judgments use only the current screen, its location, the instruction and its params, and the agent's context. |

### Tool calls

- Built-in tools have closed schemas and appear only when the engine
  supports them. A tool that declares fields rejects a key it does not
  declare. A tool with no fields drops extra keys and runs.
- Project tools must use `defineTool` with an `execute` and can't replace a
  built-in name. A project tool keeps the schema given to `defineTool`, so
  whether it strips or rejects an undeclared key is up to that schema.
- Only read-only project tools may request an observation.
- A call to a tool the step doesn't offer, or with an undeclared argument
  on a built-in tool that declares fields, never runs. The model reads the refusal
  as the call's result and tries again.
- The runner never evaluates model text as code, selectors, shell commands,
  or config. The one exception is the MCP server's
  [`run_code`](https://e2e.com/docs/reference/mcp#run_code): it runs a coding agent's JavaScript
  in the server's Node process, unconfined, with the authority of a test
  file. What `run_code` returns has the exact value of each configured
  secret redacted. That is not a boundary: the code can read every
  configured secret and credential, from the config file, the environment, or
  the app, and can return one in a changed form. Don't connect an agent you
  don't trust with the project's files and secrets. A client that confines
  the agent's shell may still run this server outside it. `run_code` is on
  by default, and no flag turns it off: a client that approves the server's
  `call` tool approves `run_code` with it.

| Fails with | When |
| --- | --- |
| `CONFIG_LOAD_FAILED` | A `defineTool` without an `execute`, at config load. |
| `INVALID_CONFIG` | A tool not created with `defineTool`, or one named after a built-in or harness tool. |
| `LOCATOR_NOT_FOUND` | A node id that isn't on the current screen. The action fails, and the model reads the failure and acts again. |

### Policy denials

These calls fail with `POLICY_DENIED`.

| Denied | Why |
| --- | --- |
| Navigation to any scheme but `http:` and `https:`, other than `about:blank` | `file:`, `data:`, `javascript:`, and wrappers such as `view-source:file:` would load local or inline content. |
| A `request` call to any scheme but `http:` and `https:`, `about:blank` included | It sends an HTTP request; nothing else has an answer to read. |
| On a target whose `app.url` is a file: navigation to a file outside that file's directory, or to a directory | The agent could open any file you can read, and carry it to an http(s) address. |
| On such a target: an agent step's observation once the page itself has gone to a file outside the directory, or to a directory | The screen is withheld from the model, the trace, and the failure evidence. |
| A malformed URL | Nothing is repaired. |
| A `Secret` reaching a JSON sink | Handles carry no value, and no value may be serialized. |
| Reading a value, text, or attribute from a secure field, with a getter or a `toHaveValue`, `toHaveText`, `toContainText`, or `toHaveAttribute` matcher | Assert the outcome, not the secret. A withheld value is redacted, not empty or absent. |
| `type_secret` with an undeclared name | Only secrets in the step's params can be filled. |
| `type_secret` into a disabled or non-editable node | Sinks are `textbox`, `searchbox`, and `combobox`. |
| A password into a field that isn't a password field | Purpose must match. A generic secret fills any editable input. `run_code`'s code is not held to this. |
| A mutating project tool requesting an observation | Observe in a separate call. |
| `vision: 'only'` when pixels are withheld | There is nothing to fall back to. |
| `browser.setCookies` with a cookie URL that isn't `http:` or `https:` | Only a web origin holds cookies. |
| `toHaveScreenshot()` when the engine can't prove every secure field is masked | The screenshot isn't kept. |
| An agent, executor, or MCP `upload` of a file outside the project root, a hidden file, or a file under a hidden directory | Only project files, and the sample files e2e ships (`sample:photo.png` and the rest), can leave the computer through a form. |
| An MCP `screenshot` `path` outside the project root, hidden, or under a hidden directory | A session writes only project files, and never over `.git` or `.e2e`. |

### Navigation

| Entry point | Accepts | Refuses |
| --- | --- | --- |
| `app.open`, `browser.goto`, the agent's `navigate` verb | `http:`, `https:`, and the exact `about:blank` | Every other scheme |
| The [`request`](https://e2e.com/docs/reference/request) fixture | `http:` and `https:`, with no credentials in the URL | Every other scheme, `about:blank` included |
| `app.open(path)` on a device target with `app.linkBase` | The joined link, or an absolute link: an app's custom scheme, or `http:` and `https:` | `file:`, `data:`, `javascript:`, `view-source:`, `blob:`, `filesystem:` |
| `device.openLink` | Any absolute URL: an app's custom scheme, or `http:` and `https:` | `file:`, `data:`, `javascript:`, `view-source:`, `blob:`, `filesystem:` |
| `device.openApp`, the `open_app` tool | An app id | A link |
| The browser `e2e login` opens | `http:` and `https:` | Every other scheme; the link is printed instead, for you to open yourself |

- The runner doesn't re-check redirects or attach to popup pages. Register
  `browser.onDialog` to handle browser dialogs.
- On a file target, a link or a script in the page can still take the
  browser to any file it can read. No model observation, trace screen, or
  failure screen text is taken there. Your test's own reads
  (`textContent()`, `screen.tree()`, `app.screenshot()`) still work, as test
  code is trusted.
- No screenshot of a file app is sent to a model or kept on its own.
  `agent.assert` and a failure keep none, and `vision: 'only'` is
  `POLICY_DENIED`.
- A [`video`](https://e2e.com/docs/reference/config#video) you turn on records the browser
  wherever it goes, a file outside the directory included.
- The directory of the app's file is the whole readable scope. In a project
  root that includes `.env` and `.git`.

<Warning>
There is no origin allowlist. The agent can follow the app to other sites
and use the step's secrets there.
</Warning>

### Request credentials

The browser engine scopes configured request credentials to exact origins:
the scheme, host, and port of `app.url`, plus the extras `credentialOrigins`
lists.

| Option | Goes to |
| --- | --- |
| `headers` | Every request that starts at an allowed origin |
| `basicAuth` | The answer to a `401` challenge from an allowed origin |

- Another port on the same host, a subdomain, and a sibling host under a
  shared domain such as `vercel.app` are other origins. A request that
  starts there carries no `headers`, and a `401` from there gets no answer,
  except as the next bullets note.
- `headers` follow the origin a request starts on. A request to an allowed
  origin keeps them through every redirect, to any origin. A request that
  starts elsewhere gets none, even when it redirects to an allowed origin.
- `basicAuth` answers the origin that sends the `401`. A redirect to another
  origin, such as `http:` to `https:` or the apex to `www`, gets no answer
  unless you list the origin it lands on.
- On WebKit, `basicAuth` answers a `401` from any origin when an allowed
  origin is on its scheme's default port (`https://staging.example.com`) or
  has an IPv6 host.
- An extra is an `http:` or `https:` origin with no path, query, or
  fragment, such as `https://api.example.com`. Anything else, a `*` in the
  host, and port `0` are `INVALID_CONFIG` at config load.

### Site check

Observations leave out child frames from other sites, and `data:` frames.
The browser engine compares hostnames without a public suffix list, so a
shared hosting domain such as `vercel.app` counts as one site.

### Secret fills

A `Secret` is an opaque handle with no plaintext accessor. Three sinks accept
one: a locator's `fill`, the params of an agent step, and an engine option
that declares it.

```ts title="tests/stripe.e2e.ts"

test('connect Stripe', async ({ screen, agent }) => {
  await screen.getByLabel('Secret key').fill(secrets.get('stripe-key'));
  await agent.act('Connect Stripe with the given key', {
    params: { apiKey: secrets.get('stripe-key') },
  });
});
```

| Fill | Checks before the value resolves |
| --- | --- |
| Model-directed (`type_secret`) | The step declared the secret. The secret is configured. The target is an enabled, editable input on the newest observation. A password goes into a password field. Replay repeats these checks. |
| Deterministic `fill(secret)` | None on the field: test code chose it. The value is still registered for redaction. |

The model never sees or picks the value.

### Screenshots after a secret fill

A secret fill doesn't turn screenshots off. The model, the pixel tools, and
the artifacts the runner keeps get the same masked screenshots before and
after a fill.

<Warning>
A screenshot masks secure fields only. A generic secret filled into a plain
input is in the image, and so is a value the app shows anywhere else, such
as behind a show-password toggle. The model provider gets the image too. Use
test credentials, and treat screenshots like [videos](#where-redaction-stops).
</Warning>

### Secrets in engine options

A secret in an engine option, such as
`web({ basicAuth: { password: secrets.get(name) } })`, isn't a fill.

```ts title="e2e.config.ts"

export default {
  targets: [
    {
      engine: web({
        basicAuth: { username: 'preview', password: secrets.get('previewPassword') },
      }),
      app: { url: 'https://staging.example.com' },
    },
  ],
  secrets: { previewPassword: () => process.env.PREVIEW_PASSWORD ?? '' },
} satisfies E2EConfig;
```

- The runner resolves it on the host when each attempt starts.
- It registers the value for redaction, together with what the engine
  derives from it. For basic auth, that is the base64 `user:password` in the
  `Authorization` header.
- It's redacted from reports, `screen-at-failure.txt`, trace pages, what the
  model and an `e2e mcp` session read, and text downloads.
- Screenshots and the model's pixels stay on. A page that shows the password
  on screen isn't masked in pixels.

### Redaction

The runner replaces every registered secret value with `<secret:name>` in:

- model input, including project tool results, structured text fields, and tool or engine error messages,
- reports and trace pages, including skip reasons and AI trace tool results,
- text downloads,
- what your code prints during `e2e run`: tests, the top-level code of the
  config and test files, test filters, and reporters.

It also redacts a value passed as a plain string instead of a
`secrets.get()` handle: test and `describe` titles, step labels (an
`app.open` URL, a locator's text), a `fill`, an `agent.act` or `agent.assert`
instruction, the strings in `agent.act` params, `agentContext`, the built-in
agent's `system`, and an `e2e explore` goal.

| Rule | Detail |
| --- | --- |
| Forms matched | As written, JSON-escaped, HTML-escaped, and percent-encoded, in any letter case (so CSS `text-transform` doesn't hide it), and with whitespace collapsed. |
| Cut text | Text cut at a length limit is masked when it ends with the first 8 or more characters of a value, or half of a value shorter than 16, as written or whitespace collapsed. |
| Observed screen | Every string (names, text, values, test ids, attributes, selectors, frame paths) is redacted once, before the model, an executor's tree, a replay cache descriptor, or an end anchor reads it. |
| Titles | Redacted when the runner collects the test file. The test id, `--grep`, reporters, and artifact and failure-page file names see `<secret:name>`. Two titles that differ only in a secret value are a duplicate title path. |
| Executors | A custom executor's `ctx.step` and the built-in agent's prompt carry the marker, so only a handle can type the real value. |
| Config output | Output printed while the config loads appears after it loads. If the load fails, it's withheld. |
| Minimum length | A static value shorter than 6 characters is `INVALID_CONFIG`. A provider that returns one fails the fill. |
| Assertions | Unaffected. Redaction rewrites only what the runner reports. |
| Cache entries | Secret values and their cut parts never enter them. |

### Provider keys

The keys your model provider or coding agent signs in with are redacted from
the terminal, reports, trace pages, and what the run sends the model of
the screen, tool results, the model's own prose, and a `system` text a config writes, of the built-in agent or of `acp()`. Each shows as `<secret:NAME>`.

| Source | Name in the marker |
| --- | --- |
| The key variable of each [model provider](https://e2e.com/docs/models), such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `AI_GATEWAY_API_KEY`, and `OPENROUTER_API_KEY`, plus `ANTHROPIC_AUTH_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN`, `CODEX_API_KEY`, `LLM_API_KEY`, `OPENCODE_API_KEY`, and `VERCEL_OIDC_TOKEN`, in the environment of the run or of an `acp()` agent | The variable |
| A [subscription login](https://e2e.com/docs/subscriptions) the run sends | `<provider>.access-token`, `<provider>.refresh-token` |
| The login `codex()` finds in `auth.json` under the agent's `CODEX_HOME`, or `.codex` in its home | `codex.api-key`, `codex.id-token`, `codex.access-token`, `codex.refresh-token` |
| The API key in an explicit `DEFAULT_AUTH_REQUEST` that `codex()` sends to its adapter | `codex.api-key` |
| A key you register with [`registerProviderKey`](https://e2e.com/docs/executors#provider-keys) | The name you give |

| Rule | Detail |
| --- | --- |
| Whole keys only | A key matches as a whole, in the forms above. Cut short at a length limit, it matches when at least half of it is there, and no fewer than 16 characters. Any other part of one isn't a match. |
| Length | A value shorter than 20 characters, such as the placeholder `ollama` for a local model server, is left alone. Name a shorter real key under [`secrets`](https://e2e.com/docs/reference/config#secrets). A value longer than 8,192 characters is left alone too. |
| Output | The run holds back the end of an unfinished line that could still become a key, as it does for a secret. A prompt printed without a newline shows with the next output, and is lost if the test then blocks the process until it is stopped. |
| Keys loaded during a test | The named provider variables are read again before each step is recorded. A key loaded in `beforeEach` is covered by the following steps. |
| Downloads | An app can serve a runner key passed through `inheritEnv`. To cover a key supplied only through `command.env`, also declare its value under `secrets`. See [Downloads](#downloads) for scan limits. |
| Errors | When a step throws `MODEL_PROVIDER_FAILED`, `CONTEXT_OVERFLOW`, or `MODEL_OUTPUT_INVALID`, the caught error has redacted text and omits the provider SDK's raw cause. Match by `error.code`. |
| Sessions | A provider key is never added to a [session](#sessions)'s saved secrets. What the app keeps in its own state, such as browser storage, is saved as the app wrote it, encrypted. |
| A key that is also a secret | Stays your secret: its name, and its parts are matched too, as for any secret. |

These keys are not redacted:

- a key passed in code, such as `createOpenAI({ apiKey })`, unless you
  register it or name it under [`secrets`](https://e2e.com/docs/reference/config#secrets),
- a key in another variable, such as a custom provider's,
- a key spelled into a test or `describe` title, a skip reason, or an
  `e2e explore` goal. Name it under `secrets`,
- `command.log`, as for every secret,
- a login a coding agent keeps in the OS keyring, and Claude Code's own
  login file,
- the model's reasoning and the arguments of its own tool calls when
  they are sent back to the model. Its prose is redacted,
- a JSON service key or a key file, such as `AICORE_SERVICE_KEY` and
  `GOOGLE_APPLICATION_CREDENTIALS`,
- in what Node prints when `NODE_DEBUG` names `child_process` or `net`,
  every token and password that isn't a secret of the run or a provider
  key above. The run [warns](https://e2e.com/docs/reference/environment#diagnostics) and goes on.

### Where redaction stops

Redaction matches strings. These pass through:

- a transformed value, such as its last four characters,
- a value encoded as a whole, such as a hash, or base64 outside a text
  [download](#downloads) and a test filter's `redact`,
- a value in another Unicode normalization form, such as decomposed accents
  where the secret has composed ones,
- text that drops the whitespace inside the value. Text that widens it passes
  through too, except on the observed screen, where a field whose collapsed
  form holds the value stays collapsed and masked,
- a value spread over several nodes, such as one character per cell on a PIN
  pad,
- a yes or no about a value: an `e2e mcp` `locate` count says whether the
  screen matches the text the agent passed, `exact: false` included, as an
  assertion in a test does,
- a case mapping that changes length (`ß` shown as `SS`), for the cut-text
  rule,
- a value a secret provider returns, in titles, in what a test filter sees
  or sends, and in an `e2e explore --changed-since` brief, since all three
  are redacted before any provider runs,
- console output of tests that run in the runner's own process, when an
  embedding host passes the config or tests in memory,
- on the web engine, a password field that a page script hides from e2e, for
  example by replacing `Element.prototype.matches`. e2e reads it as a plain
  field: the observed screen and `inputValue` show its value, and a failed
  `toHaveValue` prints it. `getAttribute` and `toHaveAttribute` do the same
  when the HTML `value` attribute holds it. A configured secret's value is
  still `<secret:name>`. Screenshots still mask the field, unless it is in a
  closed shadow root and the page also replaces `querySelectorAll`,
- a screenshot, including one sent to the model: it masks secure fields
  only, so a value the app shows elsewhere is in the image,
- video: it masks nothing and is labeled `redaction: "incomplete"`. A
  recording a hosted browser or device service keeps stays with that
  service, and the report holds only its URL,
- in an `e2e explore --changed-since` brief, a run of fewer than 8
  characters of a value, such as a short last line of a multiline key that
  git prints on a line of its own,
- `command.log`: the runner captures your app's output as written.

### Downloads

The runner scans UTF-8 text downloads (`.txt`, `.csv`, `.json`, `.html`, or
`.htm`) when the session knows an app secret or a [provider key](#provider-keys).
When only provider keys are known, it scans files up to 16 MiB. The scan
runs after saving, so a read immediately after `waitForDownload` can see
the original bytes. The scan replaces the following with `<secret:name>`:

- every whole occurrence of a value,
- for a secret, any run of 8 or more of its characters, whitespace collapsed
  or not, so unrelated text that shares 8 characters with a value is masked
  too; a provider key matches only whole,
- a base64 or base64url run that decodes to either.

A successful scan with an app secret labels the download
`redaction: "complete"`. A provider-key-only scan keeps the label
`redaction: "incomplete"` even when it replaces a key. Skipped or failed
scans leave the download as served and label it `incomplete`.

### Sessions

A saved session holds authentication state. It also carries, in the same
ciphertext, the secret values the setup test resolved from a provider. The
test that restores it redacts those values. The envelope holds, unencrypted
but authenticated, the secret names.

| Property | Value |
| --- | --- |
| Location | `sessions/<runId>/` under the [output directory](https://e2e.com/docs/reference/config#output) (default `.e2e/sessions/<runId>/`), directory mode `0700`, files `0600` |
| Cipher | AES-256-GCM |
| Key | 32 random bytes generated per run and held in memory, never written to disk or the environment. |
| Bound to | Run id, target, engine name and version, platform, and app identity, all authenticated as additional data |
| Lifetime | At most 24 hours, sooner if the saved state declares an earlier expiry |
| Cleanup | The directory is removed when the run ends |

The runner refuses an invalid, expired, missing, or mismatched session. See
the [session errors](https://e2e.com/docs/reference/errors).

### Cache trust

Cache entries replay actions without a model and aren't signed.

| Rule | Detail |
| --- | --- |
| Validation | Every entry is validated before use. An invalid entry is a miss. |
| File name | A hash of the expected key. A file larger than 1 MiB is refused. |
| Key | Holds the agent's context only as a hash of its redacted text. |
| Contents | Actions and a redacted summary. Replay runs only the actions. Other typed values are stored verbatim. |
| Secret fills | Store a name and authorize the fill again on replay. |
| Agent | An entry recorded by one agent never replays for another. |
| Start screen | An entry that doesn't start with a navigation replays only on the route where it was recorded: the same path and query, with generated ids ignored. A route on the app's own origin matches on any deployment that shares `app.identity`. A route on another origin keeps that origin. See [Caching](https://e2e.com/docs/cache). |
| CI | A cache mode you didn't set becomes `read-only`, unless you configure a `cache.store`. |
| Git | `e2e init` ignores `.e2e/cache/`. If you [commit recordings](https://e2e.com/docs/cache#commit-the-replay-cache), review their actions and typed values. |
| `cache.store` | Receives every recorded entry and supplies every replayed one. What comes back is validated again. |

### Artifacts

A run writes under `.e2e/` by default. The
[`output`](https://e2e.com/docs/reference/config#output) option or `--output` moves it. The
replay cache stays at `cache.dir`, and `command.log` goes to the
project-relative path you configure.

| Path | Contents | Redaction |
| --- | --- | --- |
| `report.json` | The run record. Errors, reasoning excerpts, and action summaries pass the redactor. | complete |
| `results/<test>/trace.md` | Trace pages, written from the redacted report. | complete |
| `results/.../*.png` | Screenshots, with secure fields masked. | complete |
| `results/.../*.webm`, `*.mp4` | Video, opt-in through `video` or `--video`. | incomplete |
| `results/.../downloads/*` | Files the app served. See [Downloads](#downloads). | complete or incomplete |
| `results/.../screen-at-failure.txt` | The redacted tree at the moment of failure. | complete |
| `ai-trace.json` | Every model call except a test filter's, opt-in through `--ai-trace`. Prompts are the redacted ones the model saw. Inline image bytes are replaced by their size. | as the prompt |
| `sessions/<runId>/` | Encrypted sessions, deleted at cleanup. | encrypted |
| `videos/<session>/*.webm`, `*.mp4` | Videos an `e2e mcp` session recorded with `start_recording`, kept until you delete them. Never handed to `artifacts.store`. | none |
| `cache.dir` (default `.e2e/cache/`) | Replay cache entries. | secret-free by construction |
| The path in `command.log` | Your app's stdout and stderr, verbatim. Must be inside the project root. | none |

An `artifacts.store` receives each artifact's bytes as they're produced,
after download redaction, with the `redaction` label the report records.

### Outbound connections

| Destination | When |
| --- | --- |
| `eu.i.posthog.com` | One telemetry request per CLI invocation or per `run()` or `explore()` from `e2e/runner` that returns a report, plus at most one per session `e2e mcp` serves, unless you opt out ([Telemetry](https://e2e.com/docs/telemetry)). One request per `e2e feedback` report sent: none under `--dry-run` or `E2E_TELEMETRY_DEBUG`, for a bug without `--repro`, or under `E2E_TELEMETRY_DISABLED` or `DO_NOT_TRACK`. |
| Your model provider | Agent steps that call a model. Deterministic tests and fully replayed steps make no model call. |
| A subscription provider's sign-in and model-list endpoints | `e2e login` and `e2e models` ([Subscriptions](https://e2e.com/docs/subscriptions)). |
| The app's `readyUrl` | Readiness probes for an app the runner starts. |
| Playwright's browser download | One time, when the browser is missing. |
| The DevTools endpoint in `web({ connect })` | Every run of that target. |
| The GitHub API | Only from the `@e2e-dev/github` reporter. |
| The provider of the `model` you pass | Only from [`decisionFilter()`](https://e2e.com/docs/filters): the diff of what the commits change (a file only the working tree changes, by name alone), the test files, and the setup files that save their sessions, redacted as a [text download](#downloads) is, except a value a secret provider returns. |
| `registry.npmjs.org` | At most one request a day from a CLI command run on a terminal, to check for a newer e2e release. Skipped in CI, when stderr is piped, for `e2e mcp` and `e2e upgrade`, and under `E2E_UPDATE_CHECK_DISABLED`, `NO_UPDATE_NOTIFIER`, `E2E_TELEMETRY_DISABLED`, or `DO_NOT_TRACK`. One request per `e2e feedback` you run, skipped with `--allow-outdated` and under `E2E_TELEMETRY_DISABLED` or `DO_NOT_TRACK`. One request per `e2e` or `@e2e-dev/*` package the project lists with a registry version, each time you run `e2e upgrade`, to `npm_config_registry` instead when the package manager sets it; then the package manager installs from its own registry. |
| `api.limrun.com` (or `LIMRUN_BASE_URL`) and its devices | Only from [`limrun()`](https://e2e.com/docs/integrations/limrun). It signs in with `LIMRUN_API_KEY`. |
| The Kernel API and its hosted browsers | Only from [`kernel()`](https://e2e.com/docs/integrations/kernel). |
| `api.notte.cc` (or `NOTTE_API_URL`) and its hosted browsers | Only from [`notte()`](https://e2e.com/docs/integrations/notte). It signs in with `NOTTE_API_KEY`. The session's console link goes to the log; its token-bearing viewer URL never does. |
| TestMu AI's CDP hub and its hosted browsers | Only from [`testmuBrowsers()`](https://e2e.com/docs/integrations/testmu#run-web-targets-in-browsers). The username and access key travel only in the CDP URL, never in a log line. |
| `mobile-hub.lambdatest.com`, `mobile-api.lambdatest.com` (or `TESTMU_API_ENDPOINT`), and `manual-api.lambdatest.com` | Only from [`testmu()`](https://e2e.com/docs/integrations/testmu#run-mobile-targets-on-devices). It signs in with `LT_USERNAME` and `LT_ACCESS_KEY`. A local `app` is uploaded to `manual-api.lambdatest.com`. |
| `hub-cloud.browserstack.com` and `api-cloud.browserstack.com` (or `BROWSERSTACK_API_ENDPOINT`) | Only from [`browserstack()`](https://e2e.com/docs/integrations/browserstack). It signs in with `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY`. A local `app` is uploaded, and the API fetches an `https` `app` itself. |
| `backend.revyl.ai` (or `REVYL_API_URL`) | Only from [`revyl()`](https://e2e.com/docs/integrations/revyl) and [`revylBrowsers()`](https://e2e.com/docs/integrations/revyl#run-web-targets-in-browsers). Both sign in with `REVYL_API_KEY`. The Revyl device downloads the `https` `app` itself. For an attempt that records video, `revylBrowsers()` downloads the recording from the signed storage URL Revyl returns. The CDP URL never goes to the log. |
| `api.e2b.app` and its sandboxes (or `E2B_DOMAIN`, `E2B_API_URL`, `E2B_SANDBOX_URL`) | Only from [`e2b()`](https://e2e.com/docs/integrations/e2b#run-android-targets) and [`e2bBrowsers()`](https://e2e.com/docs/integrations/e2b#run-web-targets-in-browsers). It signs in with `E2B_API_KEY`. The engine reaches each sandbox's agent-device or Chromium through a tunnel on `127.0.0.1` ([How the sandboxes stay private](https://e2e.com/docs/integrations/e2b#how-the-sandboxes-stay-private)), and `e2b()` sends the `.apk` through it. Each Android sandbox downloads Node from `nodejs.org` if Node is absent, and installs agent-device from npm. |
| The Expo API and the simulators' agent-device daemons | Only from [`expoSimulators()`](https://e2e.com/docs/integrations/eas), or its deprecated alias `easSimulators()`. It signs in with `EXPO_TOKEN`, or falls back to the eas-cli login in `~/.expo/state.json`. On a CI runner, set `EXPO_TOKEN` or keep that login out of the runner's home. |
| `mcr.microsoft.com` | Only from [`smol()`](https://e2e.com/docs/integrations/smol), to pull the Playwright image. The machines then have unrestricted network access, and reach every port on your computer's loopback through `host.smolvm.internal`, not only `hostPorts` ([Set up the provider](https://e2e.com/docs/integrations/smol#set-up-the-provider)). |
| The package registry | When `e2e init` installs dependencies. |
| The app under test | Every run, plus whatever the app itself loads. |

<Note>
There is no crash reporting.
`--ai-trace` writes a local file and doesn't upload it. Your test code,
plugins, and app can make more connections.
</Note>

### MCP and explore

| Command | Rule |
| --- | --- |
| `e2e mcp` | Uses stdio and the same action authorization as a test run. Four open sessions by default ([`--max-sessions`](https://e2e.com/docs/reference/mcp), 1 through 16). Closes idle sessions. `open_session {engine}` loads the installed packages the agent names and calls the exports it names. That code runs with the server's full authority, like a config's imports. `engine` names packages only, never a path or a URL, and the server installs nothing. |
| `e2e explore` | Offers every configured credential to every step. The explorer sees account names and usernames. Passwords stay handles and need an engine that supports sensitive fills; without one, the explorer skips them. With no credentials, it may sign in with made-up test credentials, typed as plain text. |
| `e2e explore --changed-since` | Sends the commit messages, the changed files' names, and the committed patches since the base to the model, cut to fit its context. In a GitHub Actions `pull_request` or `pull_request_target` job, or a GitLab merge request pipeline, it also sends the pull request's title and description. A file no commit changed, such as one CI wrote, and a committed file's later local edits go by name only, never read. Secret values the config gives as strings, and runs of 8 or more of their characters, are redacted from all of it. A secret provider's value, and a secret committed to the repository that the config doesn't name, reach the model. |
