Linchpin / Compare / vs LangGraph

Linchpin vs LangGraph

LangGraph is a Python library for orchestrating LLM workflows as a graph. Linchpin is a runtime that runs agents as persistent sessions on a single VM. Library vs platform. You would use LangGraph inside an application; you would deploy Linchpin as one.

What each one is

§ 01

Linchpin is an open-source managed-agent runtime. You define agents and environments through an HTTP API; Linchpin owns the orchestrator loop, the sandbox containers, the append-only event log, the model-provider calls, and the streaming protocol. It is a small platform you can self-host on a single VM. License: Apache-2.0. Stack: FastAPI, React, Postgres 16, Docker. Models: OpenRouter and Ollama.

LangGraph is a Python library from the LangChain team for building stateful, multi-actor LLM workflows as directed graphs. You define nodes (functions) and edges (transitions), and LangGraph drives the graph. It is excellent at expressing complex agent control flow in Python, with checkpointing and human-in-the-loop primitives. License: MIT. Stack: Python library.

LangGraph is what you write your agent's brain in. Linchpin is what runs that brain in production, exposes it over HTTP, persists its event log, isolates its tool calls in a sandbox, and streams its output to clients.

Side by side

§ 02
DimensionLinchpinLangGraph
ShapeRuntime / platform — runs as servicesLibrary — imported into your code
LicenseApache-2.0MIT
Self-hostYes — docker compose upYou write the service; LangGraph has no server of its own (LangGraph Platform is hosted/closed)
API surfaceHTTP /v1 for agents, environments, sessions, eventsPython API — graph, state, checkpoint
SessionsFirst-class — persistent, resumable, event-sourcedThreads via checkpointer
Sandbox / isolationPer-session Docker container, dedicated networkWhatever your code does
ToolsBuilt-in eight + MCP via stdioYou wire them as graph nodes
StreamingSSE on every sessionAsync streaming primitives — you serve them
PersistencePostgres-backed event log, cursor-paginatedPluggable checkpointer (SQLite, Postgres, Redis)
LanguageAPI is language-agnostic (HTTP)Python only
ModelsOpenRouter + Ollama onlyAnything LangChain supports

When to pick Linchpin

§ 03

When to pick LangGraph

§ 04

Using them together

§ 05

The two are complementary in principle. Linchpin's orchestrator loop is intentionally simple; if your agent logic is graph-shaped, the natural extension is to drive the model calls and tool decisions from a LangGraph graph living inside Linchpin's agent definition. We do not ship this integration today, but nothing in the runtime prevents it — Linchpin treats the agent's "next step" as opaque, so you can plug a graph engine in.

If you are choosing only one and your need is "give me the platform on which I will run agents," pick Linchpin. If your need is "give me a great way to structure agent logic in Python," pick LangGraph. See the Linchpin quickstart.

Related

§ 06