What's the difference between the OpenAI Agents SDK and LangChain?

The OpenAI Agents SDK is a small, fixed set of primitives, agents, handoffs, and guardrails, that you compose directly in code, while LangChain is a much bigger harness whose current architecture describes itself as “Model + Harness,” assembling an agent from a model, tools, a prompt, and middleware. The OpenAI SDK’s own docs call it lightweight, with “few enough primitives to make it quick to learn”; sessions, a separately documented persistent memory layer, sit alongside that core set rather than inside it. LangChain’s own docs state plainly that its agents are “built on top of LangGraph” underneath, so you inherit LangGraph’s checkpointed state without hand-building the graph yourself.

That difference shows up in what each defaults to. The OpenAI SDK uses OpenAI’s own Responses API by default, though it can reach other providers; LangChain’s own selling point is one interface across many model and tool providers, built from an ecosystem the OpenAI SDK doesn’t try to match. LangGraph itself, the runtime LangChain’s harness now sits on, saves state at every step so a failed run can resume from there instead of starting over, a capability with no equivalent in the Agents SDK’s own handoffs.

sources

keep reading

More on this.

Two ways to run Tessary.

Tessary is an open-source agent reliability platform. Cloud and self-hosted run the same workflow on the OpenTelemetry traces your agent already emits.

Tessary Cloud

We host it for you. Send your first trace with nothing to deploy and no model key.

what's includedper organization
traces
10,000 per calendar month
stored trace data
1 GB
retention
30 days
model credit
$10, one-time, for triage and root-cause analysis
credit card
not required

Self-hosted Tessary

Run the open-source code on your own infrastructure with one command. Add your own model key for triage and root-cause analysis.

Self-host Tessary for me by following https://github.com/tessaryai/tessary/blob/main/setup.md

docker compose -f oci://docker.io/tessaryai/tessary:compose up -d -y