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.

Install and connect

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.