
pykevlar
io.github.pykevlar/pykevlar
Audit Python code for decompiler leaks in 50ms and compile ChaCha20-armored standalone binaries.
Documentation
PyKevlar (pykevlar)
PyKevlar is a native Rust compiler + CPython 3.12–3.14 _PyObject_Vectorcall C runtime vault that compiles Python applications into standalone single-file executables 28.8× faster than PyInstaller while sealing proprietary source code, trading strategies, and AI agent prompts against pyinstxtractor, PyLingual, pycdc, and LLM-assisted Ghidra decompilation (GhidraMCP).
- Website & Docs: https://pykevlar.com
- Browser Exposure Scanner (Free): https://pykevlar.com/scanner
- PyArmor & PyInstaller Migration Matrix: https://pykevlar.com/pyarmor-alternative
Quickstart (30 Seconds)
pip install -U pykevlar
# 1. Free 50ms exposure audit (scans .py ASTs, .spec files & Dockerfiles — zero key required):
pykevlar audit .
# 2. Free 0.72s standalone Rust single-file bundler (28.8x faster than PyInstaller):
pykevlar build main.py --no-armor -F -O dist
# 3. Pro / Team full 6-layer vault + native C transpilation + Anti-LLM stealth:
pykevlar build main.py --protect app --mix-str --enable-bcc --anti-llm -F -O dist
Claude Code, Cursor & Windsurf MCP Server (pykevlar-mcp)
pip install pykevlar includes a zero-dependency Model Context Protocol (stdio) server so AI coding agents can audit decompiler exposure and compile hardened binaries directly:
claude mcp add pykevlar -- pykevlar-mcp
Or add to .cursor/mcp.json / claude_desktop_config.json:
{
"mcpServers": {
"pykevlar": {
"command": "pykevlar-mcp",
"args": []
}
}
}
Exposed MCP Tools
| Tool | Tier | Description |
|---|---|---|
audit_python_exposure | Free | Scans a Python directory in ~50ms for pyinstxtractor / PyLingual bytecode & prompt exposure. |
bundle_python_free | Free | Compiles a standalone --no-armor single-file binary in ~0.72s. |
check_license_and_machine_id | Free | Inspects hardware fingerprint (pykevlar hdinfo) and active offline Ed25519 lease status. |
build_protected_release | Pro / Team | Compiles ChaCha20-Poly1305 encrypted, native-C (--enable-bcc), Anti-LLM (--anti-llm) binaries (plus Mac→Linux cross-compilation on Team). |
GitHub Actions CI Usage (uses: pykevlar/pykevlar@v2)
Zero license daemons, zero /dev/disk container hacks, and zero hourly CI rate limits — pass a single stateless PYKEVLAR_LICENSE secret:
name: Build Protected Release
on: [push]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pykevlar/pykevlar@v2
env:
PYKEVLAR_LICENSE: ${{ secrets.PYKEVLAR_LICENSE }}
with:
entry: src/main.py
protect: src
args: --enable-bcc --mix-str --anti-llm -F -O dist
Benchmark Summary (802 Modules, Python 3.12)
| Metric | PyInstaller 6.x | Legacy Obfuscator + Bundler | PyKevlar 2.0 |
|---|---|---|---|
| Plain Single-Binary Build | 20.73s | — | 0.72s (28.8× faster) |
| Encrypted + Native C Vault Build | Removed (--key dropped) | 26.40s | 1.08s |
| Runtime Hot-Loop Overhead | 1.00× | 1.37× (+37% slower) | 1.00× (Zero overhead) |
Recovered .pyc Headers (pyinstxtractor) | 100% exposed | Version-dependent | 0 (SPZ2 + C Vectorcall Vault) |
Reproduce build-speed and audit timings on your own machine with benchmarks/reproduce_bench.py.
Editions & Licensing
- Basic (
$0Free Forever):--no-armorstandalone bundler,pykevlar audit,pykevlar bench,pykevlar hdinfo, andpykevlar-mcp— no account or key required. - Pro (
$39/yr—$29.25/yrYear 1 with codeLAUNCH25): Full 6-layer obfuscation, ChaCha20 Vectorcall Vault, Native C BCC (--enable-bcc),--anti-llm,--mix-str, 6ms hardware-boundrkeylicensing, 3 developer workstations. - Team (
$79/yr—$59.25/yrYear 1 with codeLAUNCH25): Everything in Pro + unlimited GitHub Actions / GitLab / Docker CI builds (PYKEVLAR_LICENSE), zero-Docker macOS → Linux (x86_64/arm64) cross-compilation, and 25 seats.
All paid plans include a 14-day compatibility money-back guarantee: https://pykevlar.com/#pricing
pykevlarpip install pykevlar