Adapters
Drop-in replacements for popular AI SDKs. Change your import, keep your code. Every adapter adds cryptographic signing, policy enforcement, and audit logging automatically.
3-Line Integration
Before
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello"}]
)After
from macaw_adapters.openai import SecureOpenAI
client = SecureOpenAI(app_name="my-app")
response = client.chat.completions.create(
model="gpt-4", # Policy may override
messages=[{"role": "user", "content": "Hello"}]
)Security Features (All Adapters)
Cryptographic Signing
Every request signed with agent's private key
MAPL Policy Enforcement
User-specific model, token, and tool limits
Signed Audit Logging
Tamper-evident records of every operation
Multi-Tenant Isolation
Per-tenant keys and policy boundaries
Feature Matrix
| Feature | SecureOpenAI | SecureAnthropic | SecureLangChain | SecureMCP |
|---|---|---|---|---|
| Chat Completions | ✓ | ✓ | ✓ | — |
| Streaming | ✓ | ✓ | ✓ | — |
| Function/Tool Calling | ✓ | ✓ | ✓ | ✓ |
| Structured Outputs | ✓ | — | — | — |
| Agents | — | — | ✓ | — |
| MCP Tools | — | — | — | ✓ |
| MCP Resources | — | — | — | ✓ |