Getting started
Free libraries on your own servers, or the paid Shield app: what each gives you and which to pick.
Overview
Mastyf checks every tool call an AI agent makes (reading a file, running a command, sending a request) and stops the unsafe ones before they run. There are two ways to use it.
- Free, on your own servers
- Add the library to your agent’s code, or run the check service next to it. Fixed rules, no account, nothing leaves your machines.
- Paid, with the Shield app
- Install Mastyf Shield on Windows. It finds your agents and protects them with no code changes, and adds Mastyf’s hosted layers: Protocol X, DIFC taint tracking, the argument-intent auditor, the causal gate and your dashboard on mastyf.ai.
Free: libraries and the check service
For developers building their own agents. Everything here runs on your infrastructure.
pip install mastyf-ai
The Python library wraps your agent’s tools so each call is checked first. It has adapters for LangChain and OpenAI Agents. For other languages, run the check service and ask it before each call.
- Python librarypip install mastyf-ai. Checks every tool call your agent makes; adapters for LangChain and OpenAI Agents.
- JavaScript libraryComingThe same checks for Node agents, with an adapter for Mastra. Coming to npm.
- Check serviceA small HTTP service you run yourself; any agent in any language asks it before running a tool.
- GitHub Copilot hooksChecks Copilot agent tool calls on your machine before they run.
- Policy engineFixed rules in about 1.5 ms: blocked paths, secret and data-leak patterns, injection patterns, tool fingerprints.
- Security Swarm and Threat LabAttack test sets you run against your own agents.
- GitHub ActionComingRuns the checks in your CI on every pull request. Coming soon.
Paid: the Shield app
For people using Claude Code, Cursor, VS Code or a custom agent who want the full protection. Shield runs on Windows and connects to Mastyf’s servers with your license key. Everything in Free is included.
- Shield desktop appWindows app that finds your AI agents and protects them, with no code changes.
- Automatic protection for Claude Code, Cursor and VS CodeShield connects to these agents itself and checks every tool call they make.
- Protocol X model checksOur hosted model reads each call in context and catches attacks fixed rules miss, in about a second.
- DIFC taint trackingMarks data that came from untrusted places (web pages, emails, files) and stops it flowing out.
- Argument-intent auditor (AIA)Checks that a call’s arguments match what you actually asked the agent to do.
- Causal gateStops tool calls that were set off by untrusted content instead of by you.
- mastyf.ai dashboardEvery allowed and blocked call, with the reason, in your account on mastyf.ai.
- Hosted check APICustom agents send calls to Mastyf’s servers and get every paid layer, with nothing to run.
Which one do I need?
- You write the agent’s code
- Start free with the Python library. Add the hosted check API later if you want the paid layers.
- You use Claude Code, Cursor or VS Code
- Use Shield. These agents aren’t yours to change, so Shield connects to them for you.
- You use GitHub Copilot
- The free Copilot hooks check its calls locally; Shield adds the hosted layers.