keploy

Active
GitHub Go Apache-2.0

Description

Keploy is an open-source sandbox platform for API and E2E testing that records and replays real traffic inside an isolated environment to generate test cases.

Key Features

  • Traffic record-and-replay - capture real API calls including requests, responses, and dependencies as runnable test cases
  • Dependency mocking - intercept databases, HTTP calls, and Kafka topics and replace them with deterministic mocks
  • Time freeze and clock control - freeze system time inside the test sandbox for time-sensitive logic
  • Multi-language SDKs - Go, Java, Node.js, and Python libraries for the most common web frameworks
  • CI-native integration - run regressions zero-config in GitHub Actions, GitLab CI, and Jenkins
  • Kubernetes Operator - keploy-operator manages test sandboxes centrally inside a K8s cluster

Use Cases

💡 Auto-generate regression suites for microservice APIs and run them in parallel inside CI
💡 Sample production traffic and replay it deterministically in staging
💡 Run new DB migration scripts inside a sandbox and diff the outcome automatically
💡 Provide isolated, replayable test environments for AI agents that hit external APIs
💡 Test cron jobs, scheduled tasks, and time-sensitive billing flows with time frozen

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (18.4k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (4 years in production)

Quick Start

# Launch the Keploy sandbox on Linux via the prebuilt binary
curl -O https://raw.githubusercontent.com/keploy/keploy/main/keploy_linux_amd64.tar.gz
tar -xvzf keploy_linux_amd64.tar.gz

# Record real traffic from a Node.js app
keploy record -c "node app.js"

# Replay inside the sandbox and generate the test report
keploy test -c "node app.js" --goCoverage

# Or try it through Docker Compose
git clone https://github.com/keploy/keploy.git
cd keploy
docker compose up

Related Projects

landrun

2.3k · Go
Normal A

landrun is a lightweight, Landlock-based Linux process sandbox that runs any program under tight capability isolation without requiring root.

sandboxlandlocklinux +2
  • · Landlock kernel isolation - leverages Linux 5.13+ Landlock LSM for filesystem access control
  • · No-root deployment - regular users can launch sandboxes without sudo or privileged containers
  • · Fine-grained policy - declare readable, writable, and executable directory sets from the CLI

Daytona

71.8k · Unknown
Normal A

Daytona provides secure development-environment infrastructure for coding agents and automation workflows, serving as a runtime base for remote execution tasks.

dev-environmentsandboxcoding +1
  • · Sandboxes - fully isolated compute units with dedicated kernel, filesystem, network stack, and allocated vCPU/RAM/disk
  • · Sub-90ms startup - sandboxes spin up in under 90ms from code to execution, supporting Python/TypeScript/JavaScript
  • · Multi-language SDK - Python, TypeScript, Go SDKs plus REST API and CLI for programmatic control

CubeSandbox

11.7k · Go
Active A

A high-performance, secure sandbox service for AI agents by Tencent Cloud, built on RustVMM and KVM with hardware-level isolation, sub-60ms cold start, <5MB memory overhead, and E2B SDK compatibility.

sandboxcode-executionrust +2
  • · Blazing-fast cold start: sub-60ms end-to-end sandbox creation via resource pool pre-provisioning and snapshot cloning
  • · Ultra-low memory overhead: less than 5MB per instance, enabling thousands of sandboxes on a single machine
  • · True kernel-level isolation: each agent runs with its own dedicated Guest OS kernel based on RustVMM and KVM

Wuying AgentBay SDK

1.1k · Python
Normal A

Wuying AgentBay SDK is a cloud sandbox built for AI agents, providing secure isolated execution environments for agents to safely run code and operations in the cloud, suitable for production-grade agent applications requiring sandboxed execution.

sandboxcloud-executionsecurity +1
  • · On-demand cloud sandboxes with second-level startup — create, use, and destroy isolated environments instantly
  • · Four capability modes: browser automation, desktop app control, mobile UI testing, and code execution
  • · Multi-language SDKs: Python, TypeScript, Golang, and Java — full coverage