Installing Keploy on Windows
Keploy runs natively on Windows — you can record and replay an app that runs directly on Windows, with no WSL and no Docker. There is no eBPF on Windows, so Keploy instruments the application it starts and intercepts its network calls in user space. No driver loads and you do not need Administrator.
Native Windows support covers apps in Go, Node.js, Python and Java, and understands their HTTP/HTTPS, MySQL and MongoDB calls; calls to other services — PostgreSQL, Redis, Kafka, gRPC and the like — are captured only as raw bytes and usually don't replay. If your app runs in containers, or depends on one of those other services, use Docker. WSL is available too, and is the route on Windows on ARM.
keploy record and keploy test sign you in before they run. The first time you use either, Keploy prints a URL and opens your browser at app.keploy.io to sign in; the session is then cached in %USERPROFILE%\.keploy\tokens.yaml and reused.
- No browser available (a remote shell, a container): run with
--manual-loginand paste an API key from your Keploy dashboard when prompted. - CI, or any non-interactive run: set
KEPLOY_API_KEY(or pass--api-key) and Keploy skips the sign-in prompt entirely. - Offline: the local mock loop —
keploy mock record --localandkeploy mock replay --local— is the one pair that runs without signing in. While you are signed out it logs a harmlessfailed to validate user roleline and then runs normally. This is the mock loop, not a replacement forkeploy recordandkeploy test— see Mock your tests.
A free account is enough to record and replay. Free-tier runs are subject to a usage allowance.
👉 Choose your preferred method:
Option 1: Run Keploy natively
-
Install Keploy. Run this in PowerShell — a normal one, not as Administrator:
$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$dir = "$env:USERPROFILE\.keploy\bin"
New-Item -ItemType Directory -Force $dir | Out-Null
Invoke-WebRequest -Uri "https://keploy.io/ent/dl/latest/enterprise_windows_amd64.exe" `
-OutFile "$dir\keploy.exe"
Unblock-File "$dir\keploy.exe"
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$dir*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$dir", "User")
}Open a new terminal so the updated
Pathtakes effect, then check it withkeploy --version.The file is named
enterprise_windows_amd64.exefor historical reasons — it is thekeployCLI, and a free account is all you need. Use this download, not thekeploy_windows_amd64file on the GitHub releases page: that one cannot run your app natively and stops with "not supported by this build of Keploy".If Windows blocks the file. The Windows build is not yet code-signed, so if you download
keploy.exein a browser, SmartScreen may show "Windows protected your PC" on first run. Right-click the file, choose Properties and tick Unblock (or runUnblock-Fileon it, as the script above does). -
Open a terminal. An ordinary PowerShell or Terminal window is enough — Keploy does not need to run elevated.
-
Record your app — pass the command that starts it:
keploy record -c "<your app command>"For example:
keploy record -c ".\myapp.exe" # Go
keploy record -c "node server.js" # Node.js
keploy record -c "python app.py" # Python -
Replay the recorded tests:
keploy test -c "<your app command>" --delay 10
Native Windows support is x86‑64 only, and the application under test must be 64-bit. On Windows on ARM, use WSL.
Keploy instruments the application it starts, so launch your app through keploy record -c or keploy test -c rather than starting it yourself and pointing Keploy at a running process.
HTTPS and Keploy's certificate. To record your app's HTTPS calls, Keploy adds its certificate authority, named My Custom CA, to your Windows user's Trusted Root certificate store, and — where your JDK's truststore is writable — to that truststore too. Windows may ask you once to confirm adding it. It stays there after Keploy exits; to remove it, run certutil -user -delstore Root "My Custom CA".
Keploy intercepts your app's TCP connections and resolves hostnames through the application's resolver, so a dependency that no longer exists is still answered from its Mock during a replay. Natively on Windows it understands HTTP/HTTPS, MySQL and MongoDB calls; calls to other services — PostgreSQL, Redis, Kafka, gRPC and the like — are captured only as raw bytes and usually don't replay, so for those use Docker. Traffic an application sends over UDP is not recorded.
Option 2: 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 3: 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 with Option 1, step 1. The
keployCLI runs on Windows and starts your app's container and Keploy's agent in Docker. -
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 — natively, or with WSL or Docker.