Installing Keploy on Windows
Keploy uses eBPF to intercept API calls on network layer and generates test cases and mocks/stubs. Keploy does not natively support Windows. However, you can still run it using Wsl or Docker.
👉 Choose your preferred method:
Option 1: Install Keploy with WSL
If you already have WSL, Go to Step 2.
-
Enable WSL
Make sure you’re on:
- Windows 10 (version 2004 or later, build 19041+)
- Windows 11
Run the following command in PowerShell (as Administrator):
wsl --install -d <Distribution Name>
👉 We recommend using Ubuntu-22.04 for the best experience. (You can choose a different distribution if needed.)
-
Install Keploy Binary Inside your WSL terminal, run:
curl --silent -O -L https://keploy.io/install.sh && source install.sh
-
Verify Installation
keploy version
✅ If you see the version number, Keploy is installed successfully!
What's Next?
🎬 Start Capturing Test Cases
Begin recording your API calls and automatically generate test cases with Keploy.
Option 2: Install Keploy with Docker
-
Make sure Docker is installed You’ll need Docker Desktop running on Windows.
-
Create a Docker bridge network
docker network create keploy-network
-
Install Keploy
curl --silent -O -L https://keploy.io/install.sh && source install.sh
-
Verify the installation
keploy version
✅ If the version shows up, Keploy is installed successfully!
What's Next?
🎬 Start Capturing Test cases
▶️ Record
keploy record -c "docker run -p 8080:8080 --name <containerName> --network keploy-network <applicationImage>" \
--container-name "<containerName>" --buildDelay 60
🧪 Test
keploy test -c "docker run -p 8080:8080 --name <containerName> --network keploy-network <applicationImage>" \
--delay 10 --buildDelay 60
🎉 Congratulations!
You’ve successfully set up Keploy on Windows using either WSL or Docker.