# Record real traffic, replay as API tests

Tusk Drift automatically covers thousands of real-world edge cases in 10 lines of code.

[Try Tusk Drift](https://docs.usetusk.ai/api-tests/setup-agent) [Talk to an engineer](https://cal.com/team/tusk/demo)

Tusk is trusted by engineering leaders at top companies

## Install and initialize in 2 commands

# Install Tusk CLI in service root
    curl -fsSL https://cli.usetusk.ai/install.sh \| sh
    # Set up Tusk automatically
    tusk drift setup

## Simulate real world traffic to  detect regressions

Our SDK records API calls made to and from your Node.js and Python service in production to cover thousands of edge cases

[How it works](https://docs.usetusk.ai/api-tests/overview)

### Run fast, idempotent API tests without a live database or cache

## Resolve regressions before they reach prod

Replay traces recorded from real traffic as tests to find unintended deviations in your PRs or locally via Tusk CLI. No need to write or maintain API tests.

## Security-first with built-in PII redaction

Configure PII redaction rules and prevent specific domains or endpoints from being recorded. Our SDK and CLI are open source for transparency.

## Run the highest-signal API tests in your CI

Tusk's AI filters recorded traces to create a high-quality API test suite. Auto-match relevant traces to your PR's code changes and run them as tests in CI.

## Get your full API test suite with 10 lines of code.

[Get Cloud access](https://docs.usetusk.ai/api-tests/tusk-drift-cloud)

### Helpful resources on AI automated testing

[Does Real API Traffic Make AI-Generated Tests Better? An A/B Evaluation of Tusk Drift](/content/resources/real-api-traffic-ai-generated-tests-evaluation/index.html)

March 9, 2026

[Scaling Parallel Agents with the Context-Verification-Harness Framework](/content/resources/scaling-parallel-coding-agents-cvh-framework/index.html)

March 8, 2026

[What if Your Production Traffic Was Your Test Suite?](/content/resources/what-if-your-production-traffic-was-your-test-suite/index.html)

February 11, 2026

[How Promptfoo Scaled Test Coverage Without Slowing Development](/content/resources/how-promptfoo-scaled-test-coverage-with-tusk/index.html)

February 2, 2026
