Mastra · typescript
import { openaiCompatibleConfig } from "@intertrace-runtime/runtime";
const edge = openaiCompatibleConfig({
apiKey: process.env.INTERTRACE_RUNTIME_API_KEY!,
});
// pass edge.baseURL / edge.apiKey to the Mastra OpenAI provider
// https://intertrace.fly.dev/v1OpenAI provider baseURL → Intertrace /v1. Wrap createTool with protectMastraTool.
+Three steps
- 01
Get a runtime key
Create an itr_rt_* key in Connect. It carries your tenant, so no org headers are needed.
- 02
Point the client at Intertrace
Paste the snippet. Nothing else in your code changes.
- 03
Watch decisions arrive
Every call shows up in Traffic with its verdict and the reason, in monitor mode first.
+What you get
Once it's connected
- Prompt injection and instruction override caught before the model sees it
- Sensitive data kept out of prompts and responses
- Tool calls authorized before they execute
- Every decision logged with its reason, per agent
+Related
+ The AI watching your AI
Protect your Mastra agents today.
Start in monitor mode, see every decision, then turn on enforcement when you're ready.