---
title: "Install the packages"
description: "install}"
canonical_url: "https://docs.superdurable.io/zh-Hans/reference/agents/install/"
source: "docs/reference/agents/install.mdx"
locale: "zh-Hans"
---

<a id="install"></a>

# Install the packages

<a id="python"></a>

## Python

Install an adapter with its framework. Python adapters are on PyPI. Each one
brings in the **dex-agents** core and the Dex SDK it supports. They need Python
3.11 or later.

```bash
pip install dex-agents-pydantic-ai "pydantic-ai-slim[openai]"
pip install dex-agents-langgraph
pip install dex-agents-openai-agents
pip install dex-agents-google-adk
pip install dex-agents-claude-agent-sdk
```

<a id="typescript"></a>

## TypeScript

TypeScript adapters are on npm. The core and the Dex SDK are peer packages, so
the application owns exactly one copy of each. They need Node 22 or 24.

```bash
npm i @superdurable/dex-agents-vercel-ai @superdurable/dex-agents @superdurable/dex ai zod
npm i @superdurable/dex-agents-mastra @superdurable/dex-agents @superdurable/dex @mastra/core zod
npm i @superdurable/dex-agents-openai-agents @superdurable/dex-agents @superdurable/dex @openai/agents zod
npm i @superdurable/dex-agents-claude-agent-sdk @superdurable/dex-agents @superdurable/dex zod
```

<a id="core-only"></a>

## The core only

To write a runner of your own, install only the core:

```bash
pip install dex-agents
npm i @superdurable/dex-agents @superdurable/dex
```

To use Connector operations as tools, install the core with the Connector SDK.
See [Connector tools](https://docs.superdurable.io/zh-Hans/reference/agents/connector-tools.md#install).

To chat with an agent in your terminal without writing an application, install
one of the CLI commands. See [CLI commands](https://docs.superdurable.io/zh-Hans/reference/agents/cli.md#install).

<a id="versions"></a>

## Versions

All agents packages share one version line. A Python adapter requires the core
of the same version. An npm adapter peer-depends on it. Each release pins the
Dex SDK it supports and the framework range it was tested with. See the
[compatibility table](https://github.com/superdurable/dex/blob/main/agents/README.md#versions-and-compatibility).
Without a version, pip and npm install the newest agents release and the Dex
SDK it pins.

The packages are before 1.0, so a minor release may change their API. Pin
exact versions in your lockfile. Read the [change log](https://docs.superdurable.io/zh-Hans/reference/agents/changelog.md)
before an upgrade.

Build the same session Flow in every process that starts sessions or calls
their RPCs.
