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

# Migrating from Evalite

> Drop-in evalvcr/evalite-compat shim and automated CLI codemod.

`evalvcr` provides two paths to migrate existing `evalite` suites to deterministic VCR replay:

## Option 1: Drop-In Compatibility Import

Replace your `evalite` import with `evalvcr/evalite-compat`:

```ts theme={null}
// Before
// import { evalite } from "evalite";

// After
import { evalite } from "evalvcr/evalite-compat";
import { exactMatch } from "@evalvcr/scorers";

evalite("my-eval", {
  data: async () => [{ input: "ping", expected: "pong" }],
  task: async (input) => (input === "ping" ? "pong" : ""),
  scorers: [exactMatch()],
});
```

`evalvcr/evalite-compat` supports `evalite()`, `evalite.each()`, `evalite.only()`, `evalite.skip()`, `createScorer`, `reportTrace`, `trialCount`, `scoreThreshold`, and `columns`.

## Option 2: Automated CLI Codemod

Preview changes with `--dry-run`, then apply with `--write`:

```bash theme={null}
npx evalvcr migrate-evalite ./evals --dry-run
npx evalvcr migrate-evalite ./evals --write
```

After migrating, run once in `auto` mode to record scrubbed `.evalvcr.json` cassettes and switch CI to `--mode strict`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.