Actively maintained. Last release 3 days ago. A safe choice.
pip install langgraph-apiLangGraph API
This package implements the LangGraph API for rapid development and testing. Build and iterate on LangGraph agents with a tight feedback loop. The server is backed by a predominently in-memory data store that is persisted to local disk when the server is restarted.
For production use, see the various deployment options for the LangGraph API, which are backed by a production-grade database.
Installation
Install the langgraph-cli package with the inmem extra. Your CLI version must be no lower than 0.1.55.
pip install -U "langgraph-cli[inmem]"
Quickstart
-
(Optional) Clone a starter template:
langgraph new --template new-langgraph-project-python ./my-project cd my-project(Recommended) Use a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate python -m pip install . -
Start the development server:
langgraph dev --config ./langgraph.json -
The server will launch, opening a browser window with the graph UI. Interact with your graph or make code edits; the server automatically reloads on changes.
Usage
Start the development server:
langgraph dev
Your agent's state (threads, runs, assistants) persists in memory while the server is running - perfect for development and testing. Each run's state is tracked and can be inspected, making it easy to debug and improve your agent's behavior.
A2A wire versions
Send A2A-Version: 1.0 on JSON-RPC requests to opt into v1 response shapes,
including streaming responses. V1 responses omit legacy kind discriminators,
use statusUpdate and artifactUpdate stream wrappers, emit UTC timestamps
ending in Z, and encode file parts with url or raw, mediaType, and
filename. Server-generated tool result data uses toolResults in this mode;
arbitrary application data and extension payloads are not renamed.
Requests without the header, with an empty header, or with A2A-Version: 0.3,
retain the existing response behavior, including . Surrounding
whitespace is stripped, and numeric patch versions are ignored: selects
v1 output and selects legacy output. Method names alone do not opt into
v1 output. Unsupported major/minor versions and malformed header values return
JSON-RPC error .
All requests accept and file parts in addition to the existing inputs,
independent of the response version header.
This opt-in covers wire serialization, not full protocol conformance.