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

Uploaded Python 3manylinux: glibc 2.35+ ARM64

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

Uploaded Python 3macOS 11.0+ x86-64

sasy_guard-0.1.4-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.4-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.4-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 30066897883d8fa933027f2abb65626d20fdd11dd0f12411e5d3b0d7430ebb35
MD5 1008768368e593cbe83150bf46ba0686
BLAKE2b-256 7d7f16e0c7586e89997b7256e0eaa3398d885081744f2c413eee8d770e458d5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.4-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 bb375d162bc4dc5d9c1be0e59a5dd928e92f5b0644d999bec6a1db53cec5400e
MD5 1a64af432330b0dbe6dec40305cdb064
BLAKE2b-256 3be6a8470f5f32fed45d0200cf03430c167784829ac54b25b7ddaebebbe73a2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.4-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 12e1af90a229c2dda693a35d0ee19b3fc79bdacca013d4f3ecbcf7763cdc1b6b
MD5 22cba0a65c1a386ea04b4156487a9dd1
BLAKE2b-256 808486703a968894ae62c3cb15f2f1a1899e70813b87940f7b1dae00efae9407

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65ad8962f22f14f4e2a76015afee0c02267deaeb5884efad8d3a8565c4723ab7
MD5 7f0369c7d44968b4f59a23458f39d348
BLAKE2b-256 255afd36491cfbc941f511b70c4d7adae9b0603f4fc8bcdc953753f5a3c784f4

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