# keploy **Repository Path**: hankin92/keploy ## Basic Information - **Project Name**: keploy - **Description**: AI驱动的API/集成/单元测试自动生成 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-28 - **Last Updated**: 2026-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
🌟 The must-have tool for developers in the AI-Gen era for 90% test coverage 🌟
--- [Keploy](https://keploy.io) is a **developer‑centric API and integration testing tool** that auto‑generates **tests and data‑mocks** faster than unit tests. It records API calls, database queries, and streaming events — then replays them as tests. Under the hood, Keploy **uses eBPF to capture traffic at the network layer,** but for you it’s completely **code‑less** and **language‑agnostic**.
> 🐰 **Fun fact:** Keploy uses itself for testing! Check out our swanky coverage badge: [](https://coveralls.io/github/keploy/keploy?branch=main&kill_cache=1)
---
# Key Highlights
## 🎯 No code changes
Just run your app with `keploy record`. Real API + integration flows are automatically captured as tests and mocks. *(Keploy uses eBPF under the hood to capture traffic, so you **don’t need** to add any SDKs or modify code.)*
## 📹 Record and Replay complex Flows
Keploy can record and replay complex, distributed API flows as mocks and stubs. It's like having a very light-weight time machine for your tests—saving you tons of time!
👉 [Read the docs on record-replay](https://keploy.io/docs/keploy-explained/introduction/)
## 🐇 Complete Infra‑Virtualization (beyond HTTP mocks)
Unlike tools that only mock HTTP endpoints, Keploy records **databases** (Postgres, MySQL, MongoDB), **streaming/queues** (Kafka, RabbitMQ), external APIs, and more.
It replays them deterministically so you can run tests without re‑provisioning infra.
👉 [Read the docs on infra virtualisation](https://keploy.io/docs/keploy-explained/how-keploy-works/)
## 🧪 Combined Test Coverage
If you’re a **developer**, you probably care about *statement* and *branch* coverage — Keploy calculates that for you.
If you’re a **QA**, you focus more on *API schema* and *business use‑case coverage* — Keploy calculates that too. This way coverage isn’t subjective anymore.
👉 [Read the docs on coverage](https://keploy.io/docs/server/sdk-installation/go/)
## 🤖 Expand API Coverage using AI
Keploy uses existing recordings, Swagger/OpenAPI Schema to find: boundary values, missing/extra fields, wrong types, out‑of‑order sequences, retries/timeouts.
This helps expand API Schema, Statement, and Branch Coverage.
👉 [Read the docs on coverage](https://app.keploy.io/)
### Other Capabilities
- 🌐 **CI/CD Integration:** Run tests with mocks anywhere you like—locally on the CLI, in your CI pipeline (Jenkins, Github Actions..) , or even across a Kubernetes cluster. [Read more](https://keploy.io/docs/running-keploy/api-testing-cicd/)
- 🎭 **Multi-Purpose Mocks**: You can also use Keploy-generated Mocks, as server Tests!
- 📊 **Reporting:** Unified reports for API, integration, unit, and e2e coverage with insights directly in your CI or PRs.
- 🖥️ **Console:** A developer-friendly console to view, manage, and debug recorded tests and mocks.
- ⏱️ **Time Freezing:** Deterministically replay tests by freezing system time during execution. [Read more](https://keploy.io/docs/keploy-cloud/time-freezing/)
- 📚 **Mock Registry:** Centralized registry to manage, reuse, and version mocks across teams and environments. [Read more](https://keploy.io/docs/keploy-cloud/mock-registry/)
---
## Quick Start
### 1. Install Keploy Agent
```bash
curl --silent -O -L https://keploy.io/install.sh && source install.sh
```
> **Note:** By default, this installs **Keploy** ***with paid features*** so you can explore the full feature set. To install the OSS edition instead, append the `--oss` flag:
>
> ```bash
> curl --silent -O -L https://keploy.io/install.sh && source install.sh --oss
> ```
### 2. Record Test Cases
Start your app under Keploy to convert real API calls into tests and mocks.
```bash
keploy record -c "CMD_TO_RUN_APP"
```
Example for Python:
```bash
keploy record -c "python main.py"
```
### 3. Run Tests
Run tests offline without external dependencies.
```bash
keploy test -c "CMD_TO_RUN_APP" --delay 10
```
## Resources
### - 📘 [Installation](https://keploy.io/docs/server/installation/)
### - 🏁 [QuickStarts](https://keploy.io/docs/quickstart/quickstart-filter/)
---
## Languages & Frameworks (Any stack)
Because Keploy intercepts at the **network layer (eBPF)**, it works with **any language, framework, or runtime**—no SDK required.
> Note: Some of the dependencies are not open-source by nature because their protocols and parsings are not open-sourced. It's not supported in Keploy enterprise.