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                          # 1. the runtime (binaries vendored)
sasy-guard install                                  # 2. binaries → ~/.sasy/bin + policy config
claude plugin marketplace add sasy-labs/sasy-demo   # 3. add the marketplace
claude plugin install sasy-guard                    #    install the hooks (standard way)

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.
  • No-marketplace alternative: sasy-guard enable [project] writes the hooks straight into <project>/.claude/settings.json instead.

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.

Metadata

Release files for sasy-guard 0.2.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.2.0
File
sasy_guard-0.2.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details
sasy_guard-0.2.0-py3-none-manylinux_2_35_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64 Details
sasy_guard-0.2.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
sasy_guard-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 148.4 MB

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

Download URL sasy_guard-0.2.0-py3-none-manylinux_2_35_x86_64.whl
Size 44.5 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bdef2b9814d0d421d645531df3862258406c70036c92a54bf9c8f57272119bc1
BLAKE2b-256 checksum
How to use checksums
17ae157f6cfa3512d490d0ef0c2be86fc5c7199f5b02f85d11b4c76fa09268b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

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

Download URL sasy_guard-0.2.0-py3-none-manylinux_2_35_aarch64.whl
Size 43.6 MB
Tags Linux glibc 2.35+ ARM64 Python 3
SHA-256 checksum
How to use checksums
18844ccdd10b512f3f747f573a9efd28dfee1f3bacaeea4d3df6b37118159aa2
BLAKE2b-256 checksum
How to use checksums
a69bd45e3e15b8ae37f216e7ba4bd29666dc86c213f604f21c77bc6b86a73d53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release files / sasy_guard-0.2.0-py3-none-macosx_11_0_x86_64.whl

Download URL sasy_guard-0.2.0-py3-none-macosx_11_0_x86_64.whl
Size 31.7 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
ecf93b51c64e9f49c06d9ac44592391443a4b4cffb5bac90104260fa9693b14f
BLAKE2b-256 checksum
How to use checksums
8ec1aca669d4f20cb8ef8c1e0f29a4bde4772a79c15d9a0c5aee900b07b93cf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release files / sasy_guard-0.2.0-py3-none-macosx_11_0_arm64.whl

Download URL sasy_guard-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 28.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9235c70d8f487f25f0c1d93537a96639c48215479dbac4b4251886baef12a44b
BLAKE2b-256 checksum
How to use checksums
8d5c0612e923f0ee48582d36f522466147834da315a7fdebbf0420cebd12c293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

4 release files

0.1.6

4 release files

0.1.5

4 release files

0.1.4

4 release files

0.1.2

4 release files

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