--- id: langgraph-sdk version: "0.4.2" license: MIT license_treatment: permissive maintenance: active --- # langgraph-sdk — SDK for interacting with LangGraph API License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install langgraph-sdk uv add langgraph-sdk poetry add langgraph-sdk ## 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) ``` ## Known Limitations - **WebSocket transport** requires `websockets>=14`... ## AI interpretation — verify before relying Python SDK for interacting with the LangGraph API, providing async-first client access to assistants, threads, and streaming run execution. 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. [View on SkillFed](https://skillfed.io/packages/langgraph-sdk) · [View on PyPI](https://pypi.org/project/langgraph-sdk/)