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

Uploaded Python 3manylinux: glibc 2.35+ ARM64

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

Uploaded Python 3macOS 11.0+ x86-64

sasy_guard-0.1.6-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.6-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for sasy_guard-0.1.6-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 2f48508b129ea35a47328c250992b8fb42990878953bfea779d86d1f147a5002
MD5 0d5144ba12a9d7d4a315e91ae8ea1f9a
BLAKE2b-256 76138df1b4081bd9c6fdb9dffc5e541126a7250b908fed639719ccb144a1ebf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.6-py3-none-manylinux_2_35_aarch64.whl
Algorithm Hash digest
SHA256 f91eb9860fa4bb2814e1a479b6de94514a69677048f7b1155e547c59ea702cdc
MD5 0dfb34f53b9ccbcdbbef3b45703869e0
BLAKE2b-256 8c6abbd4bd9d64eef93153bd8dbbd0e6bf8142eea201c3e9565c13acef8cc991

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.6-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a77441abb11fdb28497b08ef5e2bdb363a8903d128b42c44a95770e9c8448d08
MD5 7278246c8504d8ef9dba90b3668d6bd5
BLAKE2b-256 31646e8c76c53c547461d9d5790a7322140b352fb1390ac0751e96239fa0b38c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sasy_guard-0.1.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a08c3831782789e42d1b09e4438e6456db735fbe8f1852dba3dd49a51826672
MD5 f33e2e549048e8ae92b4758ac5e7dcf1
BLAKE2b-256 ab0a73a59ba88cbf50d7848605c2dbe5475aeaba3bbcbefb869447c8ca0b2cb2

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