Skip to main content

SASY policy enforcement runtime for Claude Code (engine + daemon + native hook)

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sasy_guard-0.1.5-py3-none-manylinux_2_35_x86_64.whl (44.4 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

sasy_guard-0.1.5-py3-none-manylinux_2_35_aarch64.whl (43.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

sasy_guard-0.1.5-py3-none-macosx_11_0_x86_64.whl (31.6 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

sasy_guard-0.1.5-py3-none-macosx_11_0_arm64.whl (28.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file sasy_guard-0.1.5-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.5-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 bbf0539d428e21f96bbf14fc0e4900a388e2a06cfc7d125623d4ce708ca1b87f
MD5 278c7b633555fc508dcb94b18e75fe71
BLAKE2b-256 0341327cb9318c29a3bd4c6372aca126a0eb678d9ccccc7723c12c02d9b98784

See more details on using hashes here.

File details

Details for the file sasy_guard-0.1.5-py3-none-manylinux_2_35_aarch64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.5-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 473dad3c6bd1b87158c1400cf4cac52188fac944317e54bf1547a7a59748ce58
MD5 4cdcc043a54b13b9b0e961b3da5f1148
BLAKE2b-256 66a183d583e7e29207a00954652874ad944192c6e7639a0624c6bebda3a3d511

See more details on using hashes here.

File details

Details for the file sasy_guard-0.1.5-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.5-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3616122f275bfde85346764f40dec91b90ed531296b831a76eac1731f6d12657
MD5 55c04e258c3eff5b76aa48d3403c1850
BLAKE2b-256 c1dd7fd87000bbb9eca275060032c2057e71c16bce12ea2b8f2c753d73cdaece

See more details on using hashes here.

File details

Details for the file sasy_guard-0.1.5-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8204de0bd35300499d82feb28bdbff58ee256b62abbeec1c1a5a16282ea0a887
MD5 94f6b8d30110f00d5b6b110c2e3667fe
BLAKE2b-256 538a977423a5782600aaff86370a64a1f11e901de416367c4d3eb2025357ca06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page