# langgraph-sdk

> SDK for interacting with LangGraph API

- **URL**: https://www.freshcrate.ai/projects/langgraph-sdk
- **Author**: pypi
- **Category**: Developer Tools
- **Latest version**: `1.2.4` (2026-06-02)
- **License**: Unknown
- **Source**: https://github.com/langchain-ai/langgraph/tree/main/libs/sdk-py
- **Homepage**: https://pypi.org/project/langgraph-sdk/
- **Language**: Python
- **GitHub**: 29,892 stars, 5,113 forks
- **Registry**: pypi (`langgraph-sdk`)
- **Tags**: `pypi`

## Description

# LangGraph Python SDK

This repository contains the Python SDK for interacting with the LangSmith Deployment REST API.

## Quick Start

To get started with the Python SDK, [install the package](https://pypi.org/project/langgraph-sdk/)

```bash
pip install -U langgraph-sdk
```

You will need a running LangGraph API server. If you're running a server locally using `langgraph-cli`, SDK will automatically point at `http://localhost:8123`, otherwise
you would need to specify the server URL when creating a client.

```python
from langgraph_sdk import get_client

# If you're using a remote server, initialize the client with `get_client(url=REMOTE_URL)`
client = get_client()

# List all assistants
assistants = await client.assistants.search()

# We auto-create an assistant for each graph you register in config.
agent = assistants[0]

# Start a new thread
thread = await client.threads.create()

# Start a streaming run
input = {"messages": [{"role": "human", "content": "what's the weather in la"}]}
async for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):
    print(chunk)
```

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `1.2.4` | 2026-06-02 | High | Changes since 1.2.3  * release(langgraph): 1.2.4 (#7991) * test(sdk-py): add factory-graph integration test exercising the server factory path (#7978) * fix(langgraph): keep _on_started backward-compatible with overrides predating cause (#7987) |
| `sdk==0.4.0` | 2026-05-28 | High | Changes since sdk==0.3.15  * release(sdk-py): 0.4.0 (#7923) * feat(sdk-py): add thread stream helpers (#7833) * feat(sdk-py): wire websocket stream selection (#7832) * feat(sdk-py): add websocket stream transports (#7830) * feat(sdk-py): harden streaming reconnects (#7829) * feat(sdk-py): add sync scoped subgraphs (#7828) * feat(sdk-py): add sync messages and tool calls (#7827) * feat(sdk-py): add sync thread stream core (#7826) * feat(sdk-py): add async stream reconnect support (#7825) * feat(s |
| `1.2.1` | 2026-05-21 | High | Changes since 1.2.0  * release(langgraph): 1.2.1 (#7883) * feat(langgraph): add `before_builtins` opt-in for stream transformers (#7882) * chore(deps): bump idna from 3.11 to 3.15 in /libs/langgraph (#7866) * fix(langgraph): keep tool results out of v3 messages (#7838) * chore(deps): bump langsmith from 0.7.31 to 0.8.0 in /libs/langgraph (#7788) |
| `1.2.0` | 2026-05-12 | High | Changes since 1.2.0a7  * release: bump alpha packages to official versions (#7775) * feat(langgraph): durable error-handler resume across host crashes (#7773) * feat(langgraph): add set_node_defaults() to StateGraph (#7747) * chore(deps): bump urllib3 from 2.6.3 to 2.7.0 in /libs/langgraph (#7766) * chore(deps): bump mistune from 3.2.0 to 3.2.1 in /libs/langgraph (#7733) * chore(langgraph): bump langchain-core to 1.4.0 (#7767) * feat(checkpoint): force delta channel snapshot after max supersteps |
| `cli==0.4.25` | 2026-05-07 | High | Changes since cli==0.4.24  * release: bump cli version (#7734) * feat(cli): support studio deploy (#7394) * chore(deps): bump the minor-and-patch group in /libs/cli with 4 updates (#7674) * chore(deps): bump the minor-and-patch group in /libs/cli/js-examples with 8 updates (#7673) * chore(deps): bump the minor-and-patch group in /libs/cli/js-monorepo-example with 7 updates (#7671) * chore: update x links to langchain_oss (#7645) |
| `1.2.0a5` | 2026-05-01 | High | Changes since 1.2.0a4  * release: alpha bump prebuilt 1.1.0a2, langgraph 1.2.0a5 (#7682) * fix(langgraph): coerce dict/str writes in _messages_delta_reducer (#7680) |
| `1.1.10` | 2026-04-27 | High | Changes since 1.1.9  * release(prebuilt): 1.0.12, langgraph 1.1.10 (#7623) * Revert "chore: node-level timeouts" (#7627) * release(checkpoint): 4.0.3 (#7625) * chore(deps): bump nbconvert from 7.17.0 to 7.17.1 in /libs/langgraph (#7573) * chore(deps): bump python-dotenv from 1.2.1 to 1.2.2 in /libs/langgraph (#7574) * chore: node-level timeouts (#7599) * release(prebuilt): 1.0.11 (#7610) * feat(prebuilt): allow ToolNode tools to return list[Command \| ToolMessage] (#7596) |
| `cli==0.4.24` | 2026-04-22 | High | Changes since cli==0.4.23  * chore: mixup cli formatting (#7585) * chore(deps): bump the pip group across 3 directories with 1 update (#7537) |
| `0.3.13` | 2026-04-21 | Low | Imported from PyPI (0.3.13) |
| `1.1.9` | 2026-04-21 | High | Changes since 1.1.8  * chore(langgraph): bump version 1.1.8 -> 1.1.9 (#7563) * fix(langgraph): don't propagate ReplayState to subgraphs on plain resume (#7561) * chore(langgraph): undo unnecessary changes in stream handler (#7536) |

## Citation

- HTML: https://www.freshcrate.ai/projects/langgraph-sdk
- Markdown: https://www.freshcrate.ai/projects/langgraph-sdk.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/langgraph-sdk/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
