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.5.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.5.0
File Actions
sasy_guard-0.5.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for sasy_guard-0.5.0-py3-none-manylinux_2_35_x86_64.whl
sasy_guard-0.5.0-py3-none-manylinux_2_35_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64 Details for sasy_guard-0.5.0-py3-none-manylinux_2_35_aarch64.whl
sasy_guard-0.5.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for sasy_guard-0.5.0-py3-none-macosx_13_0_x86_64.whl
sasy_guard-0.5.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for sasy_guard-0.5.0-py3-none-macosx_13_0_arm64.whl

Total release size: 165.0 MB

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

Download URL sasy_guard-0.5.0-py3-none-manylinux_2_35_x86_64.whl
Size 47.6 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
61eab6b5f40d541c85d7947ef4e8b9502a5a752ffef6ba75619d4b5788441b4c
BLAKE2b-256 checksum
How to use checksums
aecfda0835623e0c8df30c07f8577a73ac039528e808d76e27cd1fdc79ace52f
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.5.0-py3-none-manylinux_2_35_aarch64.whl

Download URL sasy_guard-0.5.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
db85d5e2be0e953710010e51a0de4d6bcfc54b31b0f42be47cb60fb3b77db752
BLAKE2b-256 checksum
How to use checksums
73a5bd39648c6146361187605ccb6aa78ce473347ebd6e9267a8cce4496e8f0f
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.5.0-py3-none-macosx_13_0_x86_64.whl

Download URL sasy_guard-0.5.0-py3-none-macosx_13_0_x86_64.whl
Size 37.1 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
2815cbe3139734b56685a3bc010db66e0ae640e8795f965ea863b225787f171b
BLAKE2b-256 checksum
How to use checksums
ea0a9f3037a83c7216b976f98a360ba523b4176a9cc04270e09f60ce152b8b5b
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.5.0-py3-none-macosx_13_0_arm64.whl

Download URL sasy_guard-0.5.0-py3-none-macosx_13_0_arm64.whl
Size 33.7 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
23cfc0fa10aca8d21118cc2789c81016f7e8fde3a1c084cb33a798f392e4b9a3
BLAKE2b-256 checksum
How to use checksums
e0e688a760aa1ff06ca0e2b91cce71ab0349de5fbe399942dd236da6f0fd4fe3
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.5.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