---
title: "Build AI Agents"
description: "Dex runs an AI agent as a durable session. Your agent keeps its agent SDK, prompts, and tools, or uses the Dex Agent Framework. Dex saves each completed Step, so after a crash or a deploy the session continues from those results; How it works says what can run again."
canonical_url: "https://docs.superdurable.io/build-ai-agents/"
source: "docs/content/agent-frameworks.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Build AI Agents

Dex runs an AI agent as a durable session. Your agent keeps its agent SDK, prompts, and tools, or uses the Dex Agent Framework. Dex saves each completed Step, so after a crash or a deploy the session continues from those results; [How it works](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md#how-it-works) says what can run again.

<a id="what-dex-adds"></a>

<a id="choose-a-harness"></a>

## Choose an agent SDK

<a id="coming-from-a-framework"></a>

<a id="pages"></a>

Pick your agent SDK to see how Dex wraps it, or pick the Dex Agent Framework to start without one. [Agent SDK adapters](https://docs.superdurable.io/reference/agents/agent-sdk-adapters.md) lists each agent SDK's features and limits.

- [Claude Agent SDK](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=claude-agent-sdk): Python, TypeScript
- [Eino](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=eino): Go
- [Google ADK](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=google-adk): Python
- [LangGraph](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=langchain-langgraph): Python
- [Mastra](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=mastra): TypeScript
- [OpenAI Agents SDK](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=openai-agents-sdk): Python, TypeScript
- [Pi](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=pi): TypeScript
- [Pydantic AI](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=pydantic-ai): Python
- [Vercel AI SDK](https://docs.superdurable.io/build-ai-agents/use-dex-with-agent-sdks.md?framework=vercel-ai-sdk): TypeScript
- [Dex Agent Framework](https://docs.superdurable.io/build-ai-agents/dex-agent-framework.md): Python, TypeScript, no agent SDK

To try a durable agent before you write code, chat with one in your terminal through the [Dex Agents CLI](https://docs.superdurable.io/build-ai-agents/dex-agents-cli.md).

Two examples run end to end: [AI Agent](https://docs.superdurable.io/build-ai-agents/dex-agent-framework.md#the-example) on the Dex Agent Framework, and [Order Support Agent](https://docs.superdurable.io/examples/order-support-agent.md) on each agent SDK. The [Agents reference](https://docs.superdurable.io/reference/agents.md) holds the options and limits, and the [Glossary](https://docs.superdurable.io/glossary.md) defines the terms.
