Keploy

Keploy is an open source API test case and data mock generation tool specifically designed for developers to facilitate end-to-end testing....

Last verified:

Visit Keploy

What is Keploy?

Keploy is an open-source, AI-powered testing platform that automatically generates test cases, dependency mocks, and production-like sandboxes from real API traffic. It uses eBPF technology to capture live API calls, database queries, and streaming events at the Linux kernel socket layer, then replays them as deterministic regression tests requiring zero code changes. The tool supports any programming language including Go, Java, Python, Node.js, Rust, PHP, and Ruby, making it language-agnostic and framework-agnostic.

Key features include automatic test generation from real user traffic, production-like sandbox environments, dependency virtualization for databases and external APIs, AI-powered noise detection for flaky test elimination, infrastructure mocking for message queues and APIs, time freezing for deterministic replay, combined test coverage in CI/CD pipelines, and support for complex API flows including CRUD operations. Keploy generates functional tests, edge case tests, performance tests, security tests, and dependency tests automatically. It has native integrations with unit-testing libraries like go-test, jUnit, jest, and pyTest.

Keploy is designed for developers, QA engineers, and engineering teams who need faster testing than traditional unit tests. It is particularly valuable for teams working on backend API testing, integration testing, end-to-end testing, legacy application testing without code changes, and migration regression testing against production baselines. The tool is trusted by engineering teams with 17,000+ GitHub stars and over 1,000 contributors, rated 4.6/5 on Gartner Peer Insights, 4.9/5 on G2, and 4.9/5 on Capterra.

The platform enables teams to ship with AI-driven code velocity while maintaining release confidence. Tests can be run locally on CLI, in CI pipelines, or across Kubernetes clusters. Keploy automatically mocks external dependencies like databases, Redis, Kafka, Twilio, Shopify, and Stripe without requiring data dumps or manual stub creation.

Keploy pricing

Pricing model: Free

Keploy offers four tiers: (1) Open Source - Free forever, self-hosted, Apache 2.0 license with Node/Go/Java/Python support, MySQL, HTTP(S)/gRPC/GraphQL, GitHub/GitLab/Jenkins CI/CD; (2) Playground - Free forever cloud tier with 30 test suites/month, 100 tests/month, 5,000 integrations/month, 5 AI credits for bug detection and self-healing, automated CI/CD integration, schema coverage dashboard, community support; (3) Pro - $19/user/month plus additional usage, includes $19 usage credit, 100 test suites/month, 400 test runs/month, 20,000 test+sandbox runs/month, 20 AI credits/seat, contract testing, load testing, team collaboration with free viewer seats, faster generation with no queues, email and chat support, overage rates of $0.16/test gen, $0.22/test run, $10/10,000 test+sandbox runs; (4) Enterprise - Custom pricing with all Pro features plus guest/team access controls, SCIM/directory sync, SOC2/GDPR/HIPAA/ISO readiness, record-replay in Kubernetes plus staging/prod capture, 99.99% SLA with priority incident response, dedicated engineer support, advanced support, unlimited viewer seats, IP whitelisting, marketplace integration on AWS.

Keploy pros

  • Auto-generates tests and mocks from real API traffic
  • Zero code changes required for integration
  • eBPF-based code-less instrumentation at network layer
  • Language-agnostic support for Go, Java, Python, Node.js, Rust, PHP, Ruby
  • 17,000+ GitHub stars with 1,000+ contributors
  • Generates functional, edge case, performance, security, and dependency tests
  • Automatic dependency mocking for databases and external services
  • AI-powered noise detection eliminates flaky tests
  • Time Freezing enables deterministic test replay
  • Works with complex multi-step API flows and CRUD operations
  • Native integrations with go-test, jUnit, jest, pyTest
  • Runs tests locally, in CI, or on Kubernetes clusters
  • No idempotency guarantees required in application
  • Supports HTTP/HTTPS, gRPC, GraphQL, WebSockets, Kafka protocols
  • Open source under Apache 2.0 license with free self-hosting

Keploy cons

  • eBPF requires Linux kernel support
  • Deduplication for high-traffic environments is experimental
  • Open Source version has basic noise filtering only
  • Playground limited to 30 test suites and 100 tests per month
  • Pro plan additional usage costs beyond included credit
  • Local recording only in Open Source and Playground tiers
  • No record-from-staging/prod traffic in lower tiers
  • Enterprise features require custom pricing negotiation
  • Limited to 5 AI credits on free Playground tier

Frequently asked questions about Keploy

What is Keploy?

Keploy is an open-source, AI-powered testing platform that captures real API traffic with eBPF and replays it in CI as deterministic regression tests, auto-generated mocks, and production-like sandboxes with zero code changes. It supports any language including Go, Java, Python, Node.js, Rust, PHP, and Ruby and any framework. Keploy records live API calls at the Linux kernel socket layer and replays them as tests.

Is Keploy open source?

Yes. Keploy's core platform is open source under the Apache 2.0 license with 17,000+ GitHub stars and over 1,000 contributors. Advanced features like SSO, team dashboards, audit logs, and enterprise support are available through the managed cloud at app.keploy.io. The OSS core remains free to self-host indefinitely.

What pricing plans does Keploy offer?

Keploy offers a free Playground tier with 30 test suites/month, 5 AI credits, and community support; Pro at $19 per user/month with 100 test suites/month, 400 test runs/month, 20 AI credits/seat, contract testing, load testing, and email/chat support; and Enterprise with custom pricing featuring SOC2/GDPR/HIPAA/ISO readiness, 99.99% SLA, dedicated engineer support, staging/prod capture, and unlimited viewer seats. The Open Source version is free forever for self-hosting.

What types of API tests can Keploy generate?

Keploy automatically creates Functional Tests for CRUD operations and endpoint validation, Edge Case Tests for invalid payloads and error responses, Performance Tests for response time checks, Security Tests for input sanitization and auth validation, and Dependency Tests for mocked external service calls.

How does Keploy handle authentication in API tests?

Keploy supports JWT, OAuth2, API Keys, and Basic Auth. It auto-renews tokens as needed, uses separate auth contexts per test for test isolation, and stores credentials securely using environment variables with no raw credentials stored.

What protocols and formats does Keploy support?

Keploy supports HTTP/HTTPS with JSON and XML formats, gRPC with Protocol Buffers including code generation, WebSockets with JSON and Binary for session testing, and GraphQL with Query/Mutation and schema validation. Open Source supports GraphQL, while Pro and Enterprise also support Kafka. Enterprise adds RabbitMQ support.

How does Keploy handle stateful APIs?

Keploy handles stateful workflows by capturing session cookies and headers, detecting request dependencies, creating cleanup/teardown steps, and isolating test contexts. For example, it can handle multi-step flows like POST /cart → GET /cart → POST /checkout → GET /order/{id}.

Does Keploy use my data to train AI models?

No. Keploy does not use your API data, requests, responses, or logs to train any AI model—internal or external. Your code or test data is never used to train models. Keploy never mines or analyzes your test data for AI training or marketing.

How does Keploy use AI for API testing?

Keploy combines multiple AI models including Gemini 2.5 Pro from Google for reasoning and flow understanding, GPT-4 from OpenAI for robust coverage and complex scenario handling, and other LLMs added based on task fit. It uses smart routing to select the best model, validates and cleans up tests before output, and filters out weak or redundant tests.

What privacy controls do I have with Keploy?

You can delete your test data at any time, all logs requests and test artifacts are encrypted, and Keploy gives you full visibility and control. No data is shared with third parties, test data is used only for your tests, and there is full transparency about data handling.

Categories

Use cases

Browse all AI tools on NeedAnAI