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.2-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.2-py3-none-manylinux_2_35_aarch64.whl (43.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ ARM64

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

Uploaded Python 3macOS 11.0+ x86-64

sasy_guard-0.1.2-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.2-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.2-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 5131b382dec8c486542d938f78298dbdfb31e91489ac5ebc1707e3f3d95c5444
MD5 95dcf18c8bd2e68fc8b6211b128e93db
BLAKE2b-256 b9d52b8677431920cc3d0bbf223ba06fb270de5757fb1ea5d8d25d31ce88742e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.2-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 64094d043863b56773f7001b1a69514f3f37de8d4548177305b539e5f2879cd1
MD5 78cdbbcdc832b6a38416d57d1f308c13
BLAKE2b-256 fc19862205e99ca4d9f50d93d1671483076365b58780ef68bb90d401f15530b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.2-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 154e9c46fa5dfdb9a07fd653d364e0117355711191a036dbbfab1122d8eae93f
MD5 ff0788c09b530ef845631656c5954732
BLAKE2b-256 ac5632d5429988d91d6175262ce444020eda94c7a89db3f54aad6721f182e5ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a690a3dc63f511acf8611ae095e8b32715677cb7b79e73fd54941caaaadca4a
MD5 e8bde4e76566b1552468462faf2901ba
BLAKE2b-256 dbcf59183de6c0e00ea137bd46ca85c256ffe916bdbbac926cf1525a0c9e75e4

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