Registry /
llm-agents / langgraph-runtime-inmem
Install & Compatibility
Where this runs
tested against v0.33.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.9
✕ build_error
✕ build_error
83MB installed
● package 83MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
InMemoryGraphRuntime
✓ from langgraph_runtime_inmem import InMemoryGraphRuntime
✗ from langgraph_runtime_inmem import InMemoryGraphRuntime
This quickstart demonstrates how to define a LangGraph, instantiate the `InMemoryGraphRuntime`, and register the graph. It also provides instructions on how to launch the FastAPI server using `uvicorn` to make the graph accessible via HTTP.
from langgraph.graph import StateGraph
from langgraph_runtime_inmem import InMemoryGraphRuntime
from langgraph_runtime_inmem.server import app
# 1. Define a simple LangGraph
def create_simple_graph():
builder = StateGraph(dict)
builder.add_node("start", lambda x: {"step": "start"})
builder.add_node("end", lambda x: {"step": "end"})
builder.add_edge("start", "end")
builder.set_entry_point("start")
return builder.compile()
# 2. Instantiate the in-memory runtime
runtime = InMemoryGraphRuntime()
# 3. Register your graph with a unique ID
my_graph = create_simple_graph()
runtime.add_graph("my_first_graph", my_graph)
print("Graph 'my_first_graph' registered with the InMemoryGraphRuntime.")
print("To run the API server, execute:")
print("uvicorn langgraph_runtime_inmem.server:app --host 0.0.0.0 --port 8000")
print("You can then interact with the graph via HTTP, e.g., POST /graph/my_first_graph/invoke")
# Example of direct interaction (not via HTTP, for demonstration):
# state = runtime.invoke("my_first_graph", {}, config={})
# print(f"Direct invocation result: {state}")
Upgrade
Version history
0.33.2latest on PyPI · released Aug 28, 2026
Audit
Dependencies
langgraphrequiredCore dependency for defining and compiling graphs.
fastapirequiredUsed to build the API server that exposes the runtime.
uvicornrequiredASGI server for running the FastAPI application.