Skip to main content

sasy-guard

The SASY policy-enforcement runtime for Claude Code, distributed as a platform-specific wheel. uv tool install sasy-guard puts the prebuilt binaries on your machine — no need to clone the SASY repo or install a build toolchain.

This is the runtime (the binaries you run), distinct from the sasy package, which is the pure-Python SDK (a client library you import).

What's inside

The wheel for your OS/arch vendors three binaries:

  • sasy — the (restricted) policy engine
  • sasy-watch — the enforcement daemon: reconstructs the message-dependency graph from Claude Code's transcript and runs the policy check
  • sasy-hook — the native, fail-closed PreToolUse hook (~2 ms)

plus the policy profiles and the SessionStart/PostToolUse/SessionEnd scripts.

Install & enable

uv tool install sasy-guard          # Install a published platform wheel.
sasy-guard install                 # Binaries and policy config → ~/.sasy.
sasy-guard enable /path/to/project # Add project enforcement hooks.

Then run claude — every tool call is checked against the security policy; denials surface a [SASY] … reason the agent relays.

  • Select rule groups: sasy-guard install --rule-off a,b (drop) / --rule-on a,b (opt-in).
  • Inspect the install: sasy-guard doctor.
  • sasy-guard enable [project] adds hooks to <project>/.claude/settings.json, preserving unrelated commands. Re-running is idempotent.
  • Install and enable preserve an existing remote endpoint and mode; a fresh installation uses the local engine. Configure a remote engine explicitly with ~/.sasy/bin/sasy-watch setup --mode remote --endpoint host:port.

Before registry publication, install a tested platform wheel by its local path instead of the package name. Public documentation: guard.sasy.ai.

Building (maintainers)

Wheels are built per platform by CI and assembled with build-wheel.sh, which injects the binaries, syncs the profiles/scripts from plugins/sasy-guard, and retags the wheel for the current platform. See make sasy-guard-wheel and make sasy-guard-publish.

Native wheels require macOS 13 or newer (the wheel tag records a higher minimum if required by its binaries), or Linux with the glibc version named in its wheel tag and compatible system libstdc++/libgcc runtimes. The pinned Bun 1.3.11 x64 daemon builds require an AVX2-capable CPU. No runtime compiler or Soufflé installation is needed. Release CI audits the launcher binaries and the embedded policy evaluators for non-system library dependencies.

Metadata

Release files for sasy-guard 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for sasy-guard 0.3.0
File Actions
sasy_guard-0.3.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for sasy_guard-0.3.0-py3-none-manylinux_2_35_x86_64.whl
sasy_guard-0.3.0-py3-none-manylinux_2_35_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64 Details for sasy_guard-0.3.0-py3-none-manylinux_2_35_aarch64.whl
sasy_guard-0.3.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for sasy_guard-0.3.0-py3-none-macosx_13_0_x86_64.whl
sasy_guard-0.3.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for sasy_guard-0.3.0-py3-none-macosx_13_0_arm64.whl

Total release size: 157.8 MB

Release files / sasy_guard-0.3.0-py3-none-manylinux_2_35_x86_64.whl

Download URL sasy_guard-0.3.0-py3-none-manylinux_2_35_x86_64.whl
Size 47.5 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
890da929ee8755bfaf038723a6045cc16d2c67c139ed2d4538ce20d429dde075
BLAKE2b-256 checksum
How to use checksums
d0c681526996048bf4cbcc0fad56ec09a84e2f3e4c17372efd86bb03d6e59018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sasy_guard-0.3.0-py3-none-manylinux_2_35_aarch64.whl

Download URL sasy_guard-0.3.0-py3-none-manylinux_2_35_aarch64.whl
Size 46.6 MB
Tags Linux glibc 2.35+ ARM64 Python 3
SHA-256 checksum
How to use checksums
720cf3d69fed7613457e4d40ffb018c83782dc31f0323fa94b8e9f87653437ee
BLAKE2b-256 checksum
How to use checksums
f445c8f495907f255356eae7310ef5948e8272ec410aff8026db1d8ef6743d7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sasy_guard-0.3.0-py3-none-macosx_13_0_x86_64.whl

Download URL sasy_guard-0.3.0-py3-none-macosx_13_0_x86_64.whl
Size 33.3 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
265111e23f2dcaa4473770792936ab8a9856591c936e823d7fa41b1f9ac66680
BLAKE2b-256 checksum
How to use checksums
417ecc7fe280af3bfded14f987b5d892715211e6d6096530a4b4ccd0925ad6bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sasy_guard-0.3.0-py3-none-macosx_13_0_arm64.whl

Download URL sasy_guard-0.3.0-py3-none-macosx_13_0_arm64.whl
Size 30.3 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
77aa421b291212ff2672645e1d69e4e9064aba48146a237d47344bba026c8c03
BLAKE2b-256 checksum
How to use checksums
7364fb292c132bf5b8949ee01b29b4757e2e89de809987485c077fb9a14582d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sasy-guard 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page