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

Total release size: 157.8 MB

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

Download URL sasy_guard-0.4.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
c0884924d79f8e79d0b65554b9c9e7c2f0a2823179540ef2fbb05fd94ec6b0d2
BLAKE2b-256 checksum
How to use checksums
37f5423900dfecc34acd6c2027736651f9229c3f7e9163e2ae7c0bff3e88572e
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.4.0-py3-none-manylinux_2_35_aarch64.whl

Download URL sasy_guard-0.4.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
74b5a73ec820722316f63a62caa78475ffc98267cc654c3a0d229341ba2bc119
BLAKE2b-256 checksum
How to use checksums
26fb58fe4b7455d8e0c0f453dfe3a7268b9478d31a42e300c9565b1bf9ca8322
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.4.0-py3-none-macosx_13_0_x86_64.whl

Download URL sasy_guard-0.4.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
69dbae2df14ae9a256583d6618367d9f4072aaf9ce1847c821bb355ac29da2fe
BLAKE2b-256 checksum
How to use checksums
75e6e247d71641900c7189b36d84591e06b902e1a72c4fae361e272958e6fd3f
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.4.0-py3-none-macosx_13_0_arm64.whl

Download URL sasy_guard-0.4.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
5219c12672c46c4d3675f76de78756434e9f04469179a497f8d1978eda94a889
BLAKE2b-256 checksum
How to use checksums
cd8072be6366660b8437a6695a7d45edf48997b295c21c7a283077c95e0da013
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.4.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