Skip to main content

Framework Integrations

Ferro Labs AI Gateway exposes an OpenAI-compatible HTTP surface, so any LLM framework that talks to OpenAI works against Ferro by setting base_url. The pages below go further โ€” they show first-party adapters, framework-idiomatic code, and the one piece of glue worth knowing: trace_id.

The trace_id join keyโ€‹

Every Ferro response (since ai-gateway v1.1.0) carries a trace_id in the x-trace-id HTTP header. First-party adapters surface it on response_metadata["trace_id"] (Python) and response.traceId (TypeScript). That single ID is the join key between your framework's instrumentation and any observability backend wired into the gateway via a plugin bridge โ€” LangSmith, Langfuse, Phoenix, Datadog, and more.

You write framework code once. Telemetry routing changes by swapping a gateway plugin, not by editing your app.

Pythonโ€‹

FrameworkStatusPage
LangChain (Python)โœ… langchain-ferrolabsai 0.1.0 on PyPILangChain Python
LangGraphโœ… Works today via FerroChatModelLangGraph
LangSmithโœ… Trace correlation today ยท ๐Ÿšง dedicated bridge plugin in v1.2LangSmith
LlamaIndex๐Ÿšง llama-index-llms-ferrolabsai 0.0.1 placeholder on PyPILlamaIndex
CrewAI๐Ÿšง Drop-in via OpenAI-compatible clientCrewAI
AutoGen๐Ÿšง Drop-in via OpenAI-compatible clientAutoGen
Haystack๐Ÿšง Drop-in via OpenAI-compatible clientHaystack
DSPy๐Ÿšง Drop-in via OpenAI-compatible clientDSPy
Pydantic AI๐Ÿšง Drop-in via OpenAI-compatible clientPydantic AI
Instructor๐Ÿšง Drop-in via OpenAI-compatible clientInstructor

TypeScript / JavaScriptโ€‹

FrameworkStatusPage
Vercel AI SDKโœ… Drop-in via @ai-sdk/openai or @ferro-labs-ai/sdkVercel AI SDK
LangChain.js๐Ÿšง Dedicated sub-export @ferro-labs-ai/sdk/langchain plannedLangChain.js
Mastra๐Ÿšง Drop-in via Vercel AI SDK providerMastra

Runnable examplesโ€‹

Every page links to a Dockerized recipe in the ai-gateway-cookbook repo. From a fresh clone:

cd python/02-langgraph-multi-provider-agent
cp .env.example .env # fill in FERRO_API_KEY
make run # one command, working multi-provider agent

That recipe โ€” planner on GPT-4o, coder on Claude, summarizer on Gemini, all through one gateway URL โ€” is the smallest demo that proves Ferro's value inside a framework you already use.