Skip to main content

sasy-guard

The SASY policy-enforcement runtime for Claude Code, Codex CLI and pi, 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, the SessionStart/PostToolUse/SessionEnd scripts, and the Codex CLI hook.

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.

For Codex CLI, sasy-guard enable --codex installs the runtime and adds the hook to $CODEX_HOME/hooks.json (default ~/.codex), keeping your other hooks. Start codex and trust the hook when it asks.

  • 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.2

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

Total release size: 157.9 MB

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

Download URL sasy_guard-0.5.2-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
96e1928b2b9cc76ad3bb64bef22ec0b9bc02a861ff9f87b788d791dbfb420264
BLAKE2b-256 checksum
How to use checksums
429bd47654052d3196be4299a79d2e14a39ad4c222b3309fb1093a0f27ea152c
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.2-py3-none-manylinux_2_35_aarch64.whl

Download URL sasy_guard-0.5.2-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
1ddee81792efb1203dee206834703128ef1b12b5ce3f2b9e27825516b5581740
BLAKE2b-256 checksum
How to use checksums
dda7104ae5f67fd44760cded0c845d854c4910742f2f66dfe25d76c0b9a90c67
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.2-py3-none-macosx_13_0_x86_64.whl

Download URL sasy_guard-0.5.2-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
e5140ea9975b0fe4343108b31a22a4657f974faa436ad6492f0035899928f3ce
BLAKE2b-256 checksum
How to use checksums
8772577df317ea550a3e3511771f6da283d852085d512e6ab264006719b1697f
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.2-py3-none-macosx_13_0_arm64.whl

Download URL sasy_guard-0.5.2-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
09e000a57b3b7fd8b132eb57142c80515dbaaa824e2a93a037466d048dfcaa95
BLAKE2b-256 checksum
How to use checksums
8d8191bba79769987e4f665a1ac5c56ade07591582c98c26a6ff4b1416499556
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.2

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