skillfed

langgraph-sdk

SDK for interacting with LangGraph API

langgraph-sdk Permissive license MIT Active 39,627 v0.4.2 released

Install

langgraph-sdk on PyPI

pip

pip install langgraph-sdk

uv

uv add langgraph-sdk

poetry

poetry add langgraph-sdk

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — httpx, langchain-core, langchain-protocol, orjson, websockets
Maintenance actively maintained — 73 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: langgraph_sdk-0.4.2-py3-none-any.whl

About langgraph-sdk

from the package's own PyPI description — quoted content, verbatim

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

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.

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)

Known Limitations

  • WebSocket transport requires websockets>=14...

Read as markdown · JSON record · Source repository

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Python SDK for interacting with the LangGraph API, providing async-first client access to assistants, threads, and streaming run execution.

Low friction; pure Python wheel with five runtime dependencies (httpx, langchain-core, langchain-protocol, orjson, websockets). Active maintenance with latest release 73 days ago and 39627 GitHub stars.

MIT license permits unrestricted use, modification, and distribution in both open and proprietary projects with minimal attribution requirements.

Usage

pip install -U langgraph-sdk

from langgraph_sdk import get_client

client = get_client()
assistants = await client.assistants.search()
thread = await client.threads.create()
async for chunk in client.runs.stream(thread['thread_id'], assistants[0]['assistant_id'], input={"messages": [{"role": "human", "content": "hello"}]}):
    print(chunk)

Requires Python >=3.10 and a running LangGraph API server; async usage requires an event loop.

Verdict: Well-maintained, permissively licensed SDK with low install friction and no known vulnerabilities. Suitable for agentic workflows if you have a LangGraph API deployment available.

Needs verification

  • Whether localhost:8123 endpoint is always available or requires explicit langgraph-cli setup.
  • Performance characteristics and throughput limits for high-concurrency thread streaming.
  • Backward compatibility guarantees across minor versions given active development status.
langgraph api clientasync agent sdklangsmith deployment clientstreaming agent runsthread-based executionlanggraph python sdkagentic workflow client

Similar packages