Agentdock documentation
Serve compiled LangGraph agents through a small TypeScript SSE adapter.
Agentdock is a small serving adapter for compiled LangGraph graphs. It forwards application input, trusted context, and thread IDs into LangGraph and maps graph stream chunks to the Agentdock event contract.
LangChain and LangGraph build and run the agent. Your application owns model providers, tools, identity, authorization, checkpoint storage, and HTTP request handling.
The Agentdock class handles event mapping, SSE framing, backpressure,
disconnect cancellation, terminal errors, and response cleanup. Call it from
your application's route controllers.
Agentdock UI adds editable React chat components and an app-owned adapter on top of the same event contract. Use the UI or build your own interface.
Start here
- Install the packages.
- Build and serve an agent with
createAgent. - Learn how interrupt and resume works across requests.
- Review events or the API reference.
The HTTP ReAct example combines a weather tool, an approval-gated email tool, request validation, trusted context, and a server-derived thread ID.

