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

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

Total release size: 165.0 MB

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

Download URL sasy_guard-0.5.1-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
e384cecfbe0b2ced5d41fd0010a1359ab7ac1e5575d074d0387992a6ac693fb2
BLAKE2b-256 checksum
How to use checksums
5e2526b36dc735577d41d8131dcc65b31421a007ce98482d0a7c5dbce70b1446
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.1-py3-none-manylinux_2_35_aarch64.whl

Download URL sasy_guard-0.5.1-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
c80e130dd745b8c7b227c43855e3bf548a079e42a72e58479cae71460851cdda
BLAKE2b-256 checksum
How to use checksums
83e972bb54bf0d2e72737aa3785b01cc4947bd7fd775e37b33fb1551dc4caab2
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.1-py3-none-macosx_13_0_x86_64.whl

Download URL sasy_guard-0.5.1-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
8df0f55bac41250e51730c833a22d89f5c8b011a41b7c72c97fe037545ddac53
BLAKE2b-256 checksum
How to use checksums
52f33a4d2e5f8536851bb78a148e497e98c242781c4c153be577224716a753e1
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.1-py3-none-macosx_13_0_arm64.whl

Download URL sasy_guard-0.5.1-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
34b7da5e1f4543800c402c37db9d0b1304f611240fdb1bf29c4b99b729942aa8
BLAKE2b-256 checksum
How to use checksums
9ba74dce5f13e60faa10526be4156c3cfbc5d9d24387a47f4620729bc128231c
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.1

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