/sasy:sasy-setupfrom sasy
Installs the SASY Python SDK, starts a local SASY engine, and confirms policy enforcement. Use when setting up SASY for agent security or when another SASY skill needs a running engine.
Ships in sasy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
SASY Guard is a separate setup. If the user wants policies enforced on the
coding agent on their own machine (Claude Code, Codex or pi), rather than on an
agent they are building, they want SASY Guard. Install its skill with
npx skills add -g -y sasy-labs/sasy-guard (-y skips the confirmation
prompt, which fails without a terminal), then read that skill's SKILL.md
(the command prints where it installed it) and follow it instead of the steps
below. Docs: https://guard.sasy.ai
Otherwise, set SASY up in the user's project so their agent code can use it. Do the steps; do not hand them to the user.
Check prerequisites. Check that Python 3.11 or newer is available and
Docker or a compatible provider is installed and started: docker info
must succeed. If it is not running, tell the user how to start their
provider and stop there.
Install the SDK into the project's environment. Prefer uv, which is much faster than pip:
pyproject.toml): uv add sasypyproject.toml: uv pip install sasypip install sasy
Add a framework extra when the project uses one: sasy[langchain],
sasy[adk] or sasy[langroid] (they pin the supported versions).Start the engine: sasy engine start (or uvx sasy engine start
without the SDK). It runs the engine image in Docker on 127.0.0.1:10089,
creates its keys and certificates on first start, and saves the client
settings in ~/.sasy, which the SDK uses in every project. It returns once
the engine accepts TLS connections. sasy engine status shows it;
sasy engine stop stops it and keeps its data.
Prove it works with a two-line policy and two checks, run in the project's environment:
import json, sasy
policy = 'IsAuthorized(idx) :- Actions(idx, a), IsTool(a, "read").'
with sasy.session(policy=policy):
assert sasy.check_tool_call("read", json.dumps({})).authorized
assert not sasy.check_tool_call("write", json.dumps({})).authorized
print("SASY engine is enforcing policies")
Report what was installed, that the engine is running, and point to the next
step: sasy-langchain, sasy-adk, sasy-langroid or sasy-custom-agent
to protect an agent, and write-policy to write its policy.
If a step fails, read its error rather than retrying blindly. UNAUTHENTICATED
or a TLS error usually means settings from an older engine; see
https://docs.sasy.ai/local-engine/ (troubleshooting and profiles). A new engine
denies everything until a session binds a policy; that is expected.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sasy-labs/sasy --plugin sasy8 skills in this plugin
/sasy-adkProtect a Google ADK agent application with SASY so function tools, agent transfers and child agents are checked against a policy. Use when the user's agents are built with Google ADK and they want SASY enforcement./sasy-custom-agentAdd SASY policy enforcement to agent code that does not use a supported framework, using sasy.record, sasy.check_tool_call and sasy.session. Use for hand-written agent loops, custom orchestration or direct LLM API calls./sasy-examplesRun and explain the SASY example demos (message-flow, LangChain, Google ADK, Langroid) - which example shows what, how to run one, its options, and how to read its output. Use when the user wants to see SASY working, asks for a demo or a walkthrough, or asks how to run an example or what its output means./sasy-helpExplain what SASY is and list the SASY skills and what each one does. Use when the user asks what SASY is, what the SASY skills can do, which SASY skills are available, or how to get started with SASY./sasy-langchainProtect a LangChain agent with SASY so every tool call is checked against a policy before it runs. Use when the user's agent is built with LangChain or LangGraph and they want SASY enforcement./sasy-langroidProtect a Langroid multi-agent program with SASY so tool calls are checked against a policy before they run. Use when the user's agents are built with Langroid and they want SASY enforcement.Other plugins' skills for the same job