Agent frameworks
LangGraph, OpenAI Agents, CrewAI, Mastra, Vercel AI SDK, LlamaIndex, AutoGen, Semantic Kernel, Pydantic AI, Haystack, and n8n against Intertrace /v1, plus tool wrappers from the public SDK.
Two paths
Mint itr_rt_* in Settings → Runtime API keys. Keep upstream secrets in the Provider vault; clients should not need vendor sk- keys.
LLM plane: point any OpenAI-compatible client at https://intertrace.fly.dev/v1. Tool plane: wrap tools with @intertrace-runtime/runtime so authorize + permits run before the body.
# LangGraph / LangChain: base_url="https://intertrace.fly.dev/v1"
# OpenAI Agents: set_default_openai_client + chat_completions
# CrewAI: LLM(..., base_url="https://intertrace.fly.dev/v1")
# LlamaIndex: api_base="https://intertrace.fly.dev/v1"
# Mastra / Vercel AI / Pydantic AI: OpenAI provider baseURLTypeScript adapters: protectLangChainTool, protectOpenAIAgentsTool, protectVercelAiTool, protectMastraTool, protectCrewAiTool, protectLlamaIndexTool, protectAutoGenTool, protectSemanticKernelTool, protectPydanticAiTool. Google ADK / Claude Agent SDK / .NET use the /v1, /anthropic, /mcp, or /a2a planes, not npm wrappers yet.
LiteLLM · OpenAI SDK · SDKs.
Haystack
Point OpenAIChatGenerator at the edge with api_base_url and pass the runtime key as its API key. Every model call the pipeline or agent makes then goes through Intertrace.
import os
from haystack.components.generators.chat import OpenAIChatGenerator
from haystack.utils import Secret
llm = OpenAIChatGenerator(
model="gpt-4o-mini",
api_key=Secret.from_env_var("INTERTRACE_RUNTIME_API_KEY"), # itr_rt_…
api_base_url="https://intertrace.fly.dev/v1",
)There is no Haystack tool wrapper. The tool calls the model proposes are still checked by the gateway's tool-call gate on the way back.
n8n
- 1
Create an OpenAI credential
In n8n, open Credentials, add an OpenAI credential and use youritr_rt_…runtime key as the API key. - 2
Set the Base URL
Set Base URL tohttps://intertrace.fly.dev/v1and save. - 3
Use it for the model
Select the credential in the OpenAI Chat Model attached to your AI Agent node, and pick a model thatGET /v1/modelslists.
Make and Zapier are not covered: their OpenAI steps can't point at a custom base URL.