Installing Keploy on Linux​
Keploy uses eBPF to intercept API calls on network layer and generates test cases and mocks/stubs. Installing Keploy on Linux is super easy it works on any Linux distribution with a simple one-click installation 🚀
1. Install Keploy​
The Keploy VS Code extension downloads this same CLI into ~/.keploy/bin by itself, so you can skip this step. Run as your own user, not as root, the command below installs into that same folder, so the extension, your terminals and your coding agent run one keploy. Run as root, it installs into /usr/local/bin instead, and the extension keeps its own copy in your home folder.
Run the following command in your terminal:
source /dev/stdin <<<"$(curl -fsSL https://keploy.io/install.sh || echo 'echo Keploy installer download failed >&2; return 1')"
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 ~/.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.
2. Verify Installation​
After installation, check if Keploy is working by running:
keploy --version
✅ If you see the version number, Keploy has been installed successfully!
🎉 Congratulations!​
You’ve successfully installed Keploy on Linux.
What's Next?​
🎬 Start Capturing Test Cases​
Begin recording your API calls and automatically generate test cases with Keploy.