---
title: "Get started with a custom AI agent"
description: "Learn how to use the AI Agent extension with a custom AI agent."
canonical_url: "https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started"
---

# Get started with a custom AI agent

Learn how to use the AI Agent extension with a custom AI agent.

This guide explains how to set up the AI Agent extension with a custom AI agent running in your backend.

The guide has different versions depending on the AI library you use:

- [Vercel AI SDK](https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started/vercel-ai-sdk.md)
- [OpenAI Chat Completions API](https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started/openai-chat-completions.md)
- [OpenAI Responses API](https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started/openai-responses.md)
- [Anthropic Claude Messages API](https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started/anthropic-messages.md)

Don't know what library to use? Start with the [Vercel AI SDK](https://tiptap.dev/docs/ai/deprecated/agent/custom-llms/get-started/vercel-ai-sdk.md). It lets you switch [AI providers](https://ai-sdk.dev/providers/ai-sdk-providers), so you can try and see which works best for you.

> **Custom AI agent demos:**
>
> Prefer to learn by example? Get started fast with our [Custom AI agent
> demos](https://github.com/ueberdosis/ai-agent-custom-llm-demos). Every demo includes the complete
> client and server code, along with detailed setup instructions.
