> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-devupd-1765394015-eccef47.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LangGraph SDK

LangSmith provides both a Python SDK for interacting with [Agent Server](/langsmith/agent-server).

<Tip>
  **Python SDK reference**
  For detailed information about the Python SDK, see [Python SDK reference docs](/langsmith/langgraph-python-sdk).
</Tip>

## Installation

You can install the packages using the appropriate package manager for your language:

<Tabs>
  <Tab title="Python">
    ```bash theme={null}
    pip install langgraph-sdk
    ```
  </Tab>

  <Tab title="JS">
    ```bash theme={null}
    yarn add @langchain/langgraph-sdk
    ```
  </Tab>
</Tabs>

## Python sync vs. async

The Python SDK provides both synchronous (`get_sync_client`) and asynchronous (`get_client`) clients for interacting with Agent Server:

<Tabs>
  <Tab title="Sync">
    ```python theme={null}
    from langgraph_sdk import get_sync_client

    client = get_sync_client(url=..., api_key=...)
    client.assistants.search()
    ```
  </Tab>

  <Tab title="Async">
    ```python theme={null}
    from langgraph_sdk import get_client

    client = get_client(url=..., api_key=...)
    await client.assistants.search()
    ```
  </Tab>
</Tabs>

## Learn more

* [Python SDK Reference](/langsmith/langgraph-python-sdk)
* [LangGraph CLI API Reference](/langsmith/cli)
* [JS/TS SDK Reference](/langsmith/langgraph-js-ts-sdk)

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/langsmith/sdk.mdx)
</Callout>

<Tip icon="terminal" iconType="regular">
  [Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>
