Regression Testing Tool that actually works!

Keploy is an open source API regression testing tool that records real API traffic and replays it as tests and mocks, so you catch breaking changes before every release.

Works with REST, gRPC and GraphQL APIs on Go, Java, Node.js, Python and Rust, and mocks Postgres, MySQL, MongoDB, Redis and Kafka.

Record Once
Mock Dependencies
Alert on Drift

Keploy regression testing: live API traffic is recorded, turned into test cases and mocks, replayed against a new build, and the response that drifted is flagged as a regression.

Step 1 of 4: Record

0requests0dependency calls00:00elapsed

Trusted in production by engineering teams globally.

Reliance
Pixis
InstaAstro
Amazon
Whatfix
Reliance
Pixis
InstaAstro
Amazon
Whatfix
Reliance
Pixis
InstaAstro
Amazon
Whatfix
Reliance
Pixis
InstaAstro
Amazon
Whatfix
Maruti Suzuki
Nutanix
LambdaTest
Leadsquare
Edureka
Maruti Suzuki
Nutanix
LambdaTest
Leadsquare
Edureka
Maruti Suzuki
Nutanix
LambdaTest
Leadsquare
Edureka
Maruti Suzuki
Nutanix
LambdaTest
Leadsquare
Edureka
90%

Less Test Maintenance

100%

Automated Test Case Generation

100%

Reduced Flakiness

100%

Faster Creation

1.2M+

Downloads

300M+

Mocks Generated

1B+

Dev Hours Saved

100K+

Bugs Caught

Open source under the Apache 2.0 license 20K+ GitHub stars

How Keploy catches regressions

Record once, replay on every change, and get told exactly which response drifted.

Step 1

Record real API traffic

Keploy captures real API calls and every dependency call they make, with no code changes.

Step 2

Turn it into test cases

Each request becomes a test case, and each dependency call becomes a mock.

Step 3

Replay it on every code change

Every build replays the recorded tests in an isolated sandbox, with dependencies answered by mocks.

Step 4

Review flagged differences

Responses that drift from the recording are flagged as regressions, with the exact field diff.

Record live traffic, turn it into test cases. Replay the existing tests to detect regressions.

  1. Keploy records real API traffic and every dependency call, with no code changes.
  2. Each request becomes a regression test and each dependency call becomes a mock, covering features already shipped.
  3. Tests replay in an isolated sandbox with dependencies mocked and time frozen.
  4. Claude Code, Codex and Cursor run the Keploy suite and fix any regression it finds.
  5. The pull request merges only when every recorded behavior still passes.

Works with every AI agent

Claude Code, Codex, Cursor, Gemini and more run Keploy tests over the CLI or MCP, so every change is checked against real traffic.

Keploy records your app's real traffic and turns it into test cases.

Real API traffic becomes a regression suite for every existing feature, with each database, cache and third-party call mocked inside a Keploy sandbox.

  1. Real API calls reach the orders-api service, which calls Postgres, Redis, a Stripe payment service and two more dependencies.
  2. Keploy starts recording the traffic, with no code changes.
  3. Keploy creates a sandbox and mocks every dependency call from the recording.
  4. Keploy generates a regression suite of test sets and test cases for the existing features.

AI writes the code and the tests. It works, but regressions still slip in.

Tests written for a new feature only check that feature. Everything it quietly changed ships untested.

  1. A developer prompts an AI coding agent such as Claude, Codex, Cursor, Gemini or Copilot: Add a feature to allow users to apply discount codes at checkout.
  2. The AI agent understands the requirements, changes the code and writes tests for the new feature.
  3. The feature and its tests pass, but regressions in existing features still ship.
  4. The new discount codes feature passes its tests. User authentication and the product catalog still work, but order history, user profile and other existing features break.

Replay the recorded Keploy tests to catch regressions.

Your AI agent replays the existing Keploy regression suites against its changes, fixes whatever broke, and replays them again until every recorded behavior passes.

  1. The developer asks an AI coding agent such as Claude, Codex, Cursor or Gemini: Replay the existing Keploy regression suites against the changes, identify the failing tests, and fix the regressions.
  2. The agent replays the existing Keploy regression suites against the changed application.
  3. The replay shows regressions: user service tests 18 of 42 and payment tests 12 of 28 fail,.
  4. The AI agent analyses the failing Keploy tests, identifies the root cause and fixes the regressions.
  5. The agent replays the Keploy suites until the regressions are fixed, and all tests pass.
  6. The new feature ships without regressions.

Integrate with your favorite AI agents

Plug Keploy into Claude Code, Codex, Cursor and more to replay every agent change against real traffic.

Automated API Regression Testing from Real Traffic

No-code regression tests from real API traffic: edge cases, error scenarios and dependency mocks from a single recording.

Keploy Logo

Ready to Generate Tests

Generating test cases • 0 completed • 0 failed

Generated Tests Through Recording
0 / 8

Initializing test generation...

Tests will start automatically

Test Summary & Analysis
Ready
0
Generated
0
Failed
0
Running

Tests generating...

Results will appear here as tests complete

When your app changes, your regression tests evolve too.

Keploy automatically detects API changes so that you can re-record new test cases in seconds. No manual rewrites, no downtime.

Tests Passing

Step 1 of 5

Test Execution Results

✓ GET /users
✓ POST /users
✓ DELETE /users

Tests

47

Pass Rate

100%

Without Keploy

Hours
  1. API changes deployed
  2. Tests start failing
  3. Manual debugging required
  4. Test code rewritten by hand
  5. Re-deploy tests
  6. Wait and pray

With Keploy

Seconds
  1. API changes detected
  2. Tests fail (expected)
  3. Click "Re-record"
  4. New tests auto-generated
  5. Instantly passing
  6. Move to next task

No Flaky Tests,Only Rock Solid, Reliable Tests

Other test case generators fail on dynamic data. Keploy automatically detects and ignores noisy fields like timestamps and random IDs.

Without Keploy

Every timestamp or random ID changes, causing test failures even though your app works perfectly

Run 1: timestamp changed
Expected: "2024-11-17T14:32:45.123Z"
Got: "2024-11-17T14:32:46.456Z"
FAILED
Run 2: timestamp changed
Expected: "2024-11-17T14:32:45.123Z"
Got: "2024-11-17T14:32:46.456Z"
FAILED
Run 3: timestamp changed
Expected: "2024-11-17T14:32:45.123Z"
Got: "2024-11-17T14:32:46.456Z"
FAILED

With Keploy

Noisy fields are automatically ignored. Tests focus on what matters

Run 1: Structure validated
userId is present
message is correct
PASSED
Run 2: Structure validated
userId is present
message is correct
PASSED
Run 3: Structure validated
userId is present
message is correct
PASSED
Raw API Response
{
"data": {
"userId": "12345",
"username": "john_doe",
"email": "john@example.com",
"timestamp": "2024-11-17T14:32:45.123Z",// NOISE DETECTED
"requestId": "req_abc123xyz789",// NOISE DETECTED
"sessionId": "sess_1234567890",// NOISE DETECTED
"createdAt": "2024-11-17T14:32:45.000Z",// NOISE DETECTED
"nonce": "n0nc3_rand0m_v4lu3",// NOISE DETECTED
"message": "User authenticated successfully"
}
}
Raw Data
Stable fields (asserted)
Noisy fields (ignored)

Fields Analyzed

5

Noise Detected

5

Test Stability

100%

Mock Dependencies Without External Services

Eliminate dependencies from API outages. Keploy automatically generates mocks from real traffic for complete test isolation.

Live Service Status

Watch what happens when services fail

Database

MongoDB
Supabase
NeonDB

Not connected but mocked by Keploy

Keploy serves recorded mocks instead of the offline service

Payment Gateway

Stripe
Razorpay
PayPal

Not connected but mocked by Keploy

Keploy serves recorded mocks instead of the offline service

Blob Storage

AWS S3
Firebase
Azure Blob Storage

Not connected but mocked by Keploy

Keploy serves recorded mocks instead of the offline service

Cache

Redis
Memcached
Upstash

Connected

Cache traffic stays live

Test Results

Tests powered by Keploy mocks

test_replays.log
$ keploy test -c "python3 app.py" --delay 10 --path "./tests"
→ Starting test suite with Keploy...
→ Loading mocks from cache...
Demo will auto-start or click the button to begin...

Smart Bug Detection Using AI

Keploy flags bugs with confidence scores and shows the exact request and response diff behind each failure, so you find the root cause fast, including in AI-generated code.

Proactive Bug Detection: AI analyzes API behavior to spot unexpected errors and inconsistent results automatically.

AI Confidence Scores: Each bug is assigned a confidence score to help you prioritize real issues first.

Smart Pattern Recognition: Learns from API patterns to identify edge cases and negative scenarios others miss.

Keploy AI bug detection and confidence scoring

Automatic Deduplication

Keploy intelligently identifies and removes duplicate test cases based on request/response patterns without manual intervention. Keeps your regression test suite lean and fast.

Hash-Based Detection

Automatic Cleanup

Faster Execution

Test Suite

Original test collection

Self-Healing Regression Tests

Keploy regenerates tests with code changes, eliminating maintenance overhead and saving hundreds of hours.

Select Maintenance Scenario

Manual Maintenance

Modify endpoint from /users/:id to /v2/users/:id - manually update all 23 test files

4.5 hours per change

Keploy Solution

Keploy detects API changes and automatically regenerates all tests in seconds

~30 seconds

ROI Calculator

See how much time your team saves with automated testing. Every change becomes faster and more reliable.

6m
1 month1 year
15
5 changes50 changes

That's 50.6 days saved for your team!

Hours Saved

405

Days Saved

50.6

Per Change

4.5h

Savings Breakdown

Time per change4.5h
Changes per month15
Time period6 months
Total time saved405 hours

Process Comparison

See how Keploy transforms hours of work into seconds

Manual Approach

Code Deployed

Tests Fail

0.25h

Investigate

1.5h

Update Tests

3h

Verify Fixes

1.25h
Total Time Required:6.0 hours
Keploy Logo

Keploy Approach

Code Deployed

Changes Detected

1.15s

Re-record Tests

1.15s

Tests Passing

5s
Total Time Required:7.30 seconds

Maintenance Scenarios

See how Keploy handles different types of changes automatically

API Endpoint Changes

Manual
4.5h
Keploy
~30s
Efficiency gain540x faster

Response Schema Updates

Manual
3.2h
Keploy
~30s
Efficiency gain384x faster

Business Logic Changes

Manual
5.8h
Keploy
~30s
Efficiency gain696x faster

Database Schema Updates

Manual
2.9h
Keploy
~30s
Efficiency gain348x faster

Keploy vs Hand-Written Regression Scripts

What changes when your regression test suite is generated from real traffic instead of written by hand.

Keploy

Hand-written scripts

Test creation

Strong:Recorded from real API traffic in minutes, no code
Weak:Written by hand, hours per endpoint

Maintenance when APIs change

Strong:Re-record or update in one step
Weak:Every affected script is rewritten manually

Mocking dependencies

Strong:Mocks generated automatically from real responses
Weak:Stubs and fixtures written and kept in sync by hand

Flaky tests from dynamic data

Strong:Timestamps, UUIDs and tokens filtered automatically
Partial:Assertions break unless each field is handled

CI setup

Strong:One command in GitHub Actions, GitLab CI or Jenkins
Partial:Test environments and seeded data to maintain

Continuous Regression Testing in CI/CD and DevOps Pipelines

Run continuous testing on every pull request with GitHub Actions, GitLab CI or Jenkins. Keploy makes your test data and test runs behave the same on your laptop and inside CI pipelines.

Problem

Tests that work locally fail in CI/CD due to environment differences and missing setup.

Keploy Solution

Keploy tests run consistently in any CI/CD environment with zero configuration.

Key Benefits

  • Works seamlessly with GitHub Actions, GitLab CI, Jenkins
  • Zero environment-specific configuration
  • Reproducible results across all environments
  • Tests run deterministically in CI pipelines
  • Built-in reporting and failure tracking
Keploy CI/CD visualization

Regression Testing Features

Everything you need for comprehensive, automated regression testing

Automatic Test Generation

Keploy records real API traffic and turns it into test cases automatically. No manual scripting needed—your regression suite is always based on actual user flows.

Integrate with your favorite AI agents

Plug Keploy into Claude Code, Codex, Cursor and more to replay every agent change against real traffic.

Join our GlobalCommunity

Connect with developers worldwide. Follow updates, ask questions, share feedback, and ship faster with other Keploy builders.

1.2M+Installs
20K+GitHub
100K+Devs
300M+Mocks
1K+Contributors
#1OSS Trending
4.9★★★★★from 500+ reviews onG2GartnerVS CodeChrome
★★★★★

“Best report of integration and API tests I've seen — which we don't get from RestAssured.”

G2
★★★★★

“Future of microservices testing. I don't write tests now!”

Mahfooz A. · G2 · 5/5
★★★★★

“An amazing product that simplifies the automation.”

Gartner · 4.0
XGitHubSlackYouTubeLinkedIn
Built by developers, for developers.Let's build the future, together.

FAQs

Give every change a verified
Digital Twin

Verify human- or AI-written code against real production behavior — deterministic tests, mocks, and production-like sandboxes, before it ships.

Need Resources?

Read Documentation

Integration Testing Simplified

Start With Keploy Open Source

Need Further Assistance?

Talk To Our Team On Slack