Framework Adapters
20 adapters for every major AI framework. One-line integration for Mastra, Vercel AI, LangChain, OpenAI, Anthropic, and 15 more.
20 adapters for every major AI framework. Wrap your existing tools in one line — the adapter intercepts every call, runs gov.enforce() before execution, and logs an audit event. No changes to your agent logic.
How Adapters Work
Every adapter follows the same three-step flow:
- Wrap — Adapter wraps your framework-native tools
- Enforce — Before each call,
gov.enforce()evaluates policies - Audit — Decision, agent, tool, and timestamp written to audit trail
Note: Adapters auto-register the agent on first use. You do not need to call
gov.register()manually when using an adapter.
Mastra
Middleware that plugs into the Mastra agent pipeline. Every tool call is governed before it reaches your handler.
Vercel AI SDK
Wraps your Vercel AI tools so every invocation is policy-checked. Returns governed tools you pass directly to generateText().
LangChain
Governs LangChain-style tools. Works with any tool that extends StructuredTool.
OpenAI Agents SDK
Wraps individual OpenAI agent tools. Governance runs before each function call.
Anthropic
Governs Anthropic tool-use calls. Policy enforcement runs before the tool handler executes.
Tip: All adapters accept the same options:
agentNameandowner. The agent is registered automatically with these identifiers on first use.
All 20 Adapters
Every adapter is available as a separate import path. Zero unused code in your bundle.
| Adapter | Import Path |
|---|---|
| Mastra | plugins/mastra |
| Mastra Processor | plugins/mastra-processor |
| Vercel AI SDK | plugins/vercel-ai |
| LangChain | plugins/langchain |
| OpenAI Agents SDK | plugins/openai-agents |
| Anthropic | plugins/anthropic |
| MCP | plugins/mcp |
| CrewAI | plugins/crewai |
| Bedrock | plugins/bedrock |
| Genkit | plugins/genkit |
| Semantic Kernel | plugins/semantic-kernel |
| AutoGen | plugins/autogen |
| A2A | plugins/a2a |
| LlamaIndex | plugins/llamaindex |
| Cloudflare AI | plugins/cloudflare-ai |
| Deno | plugins/deno |
| Mistral | plugins/mistral |
| Ollama | plugins/ollama |
| E2B | plugins/e2b |
| Composio | plugins/composio |
Import Pattern
Every adapter follows the same import convention:
Note: Each adapter is tree-shakeable. Only the adapter you import is included in your bundle — the other 19 are never loaded.