Repository avatar
Other Tools
v2.0.4
active

pykevlar

io.github.pykevlar/pykevlar

Audit Python code for decompiler leaks in 50ms and compile ChaCha20-armored standalone binaries.

Documentation

PyKevlar (pykevlar)

PyPI version Python 3.12–3.14 Build Speed MCP Server

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).


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

ToolTierDescription
audit_python_exposureFreeScans a Python directory in ~50ms for pyinstxtractor / PyLingual bytecode & prompt exposure.
bundle_python_freeFreeCompiles a standalone --no-armor single-file binary in ~0.72s.
check_license_and_machine_idFreeInspects hardware fingerprint (pykevlar hdinfo) and active offline Ed25519 lease status.
build_protected_releasePro / TeamCompiles 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)

MetricPyInstaller 6.xLegacy Obfuscator + BundlerPyKevlar 2.0
Plain Single-Binary Build20.73s—0.72s (28.8× faster)
Encrypted + Native C Vault BuildRemoved (--key dropped)26.40s1.08s
Runtime Hot-Loop Overhead1.00×1.37× (+37% slower)1.00× (Zero overhead)
Recovered .pyc Headers (pyinstxtractor)100% exposedVersion-dependent0 (SPZ2 + C Vectorcall Vault)

Reproduce build-speed and audit timings on your own machine with benchmarks/reproduce_bench.py.


Editions & Licensing

  • Basic ($0 Free Forever): --no-armor standalone bundler, pykevlar audit, pykevlar bench, pykevlar hdinfo, and pykevlar-mcp — no account or key required.
  • Pro ($39/yr — $29.25/yr Year 1 with code LAUNCH25): Full 6-layer obfuscation, ChaCha20 Vectorcall Vault, Native C BCC (--enable-bcc), --anti-llm, --mix-str, 6ms hardware-bound rkey licensing, 3 developer workstations.
  • Team ($79/yr — $59.25/yr Year 1 with code LAUNCH25): 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

PYPI
pykevlar
Install Command
pip install pykevlar
Runtime: uvx