RealtimeKeep your app up to date
AuthenticationOver 80+ OAuth integrations
Convex Components
ComponentsIndependent, modular, TypeScript building blocks for your backend.
Open sourceSelf host and develop locally
AI CodingGenerate high quality Convex code with AI
Compare
Convex vs. Firebase
Convex vs. Supabase
Convex vs. SQL
DocumentationGet started with your favorite frameworks
SearchSearch across Docs, Stack, and Discord
TemplatesUse a recipe to get started quickly
Convex for StartupsStart and scale your company with Convex
Convex ChampionsAmbassadors that support our thriving community
Convex CommunityShare ideas and ask for help in our community Discord
Stack
Stack

Stack is the Convex developer portal and blog, sharing bright ideas and techniques for building with Convex.

Explore Stack
BlogDocsPricing
GitHub
Log inStart building
Back to Components

AI Agent

get-convex's avatar
get-convex/agent
View repo
GitHub logoView package

Category

Backend
AI Agent hero image
npm install @convex-dev/agent

AI Agents, built on Convex. Check out the docs here.

The Agent component is a core building block for building AI agents. It manages threads and messages, around which you Agents can cooperate in static or dynamic workflows.

  • Agents provide an abstraction for using LLMs to represent units of use-case-specific prompting with associated models, prompts, Tool Calls, and behavior in relation to other Agents, functions, APIs, and more.
  • Threads persist messages and can be shared by multiple users and agents (including human agents).
  • Streaming text and objects using deltas over websockets so all clients stay in sync efficiently, without http streaming. Enables streaming from async functions.
  • Conversation context is automatically included in each LLM call, including built-in hybrid vector/text search for messages in the thread and opt-in search for messages from other threads (for the same specified user).
  • RAG techniques are supported for prompt augmentation from other sources, either up front in the prompt or as tool calls. Integrates with the RAG Component, or DIY.
  • Workflows allow building multi-step operations that can span agents, users, durably and reliably.
  • Files are supported in thread history with automatic saving to file storage and ref-counting.
  • Debugging is enabled by callbacks, the agent playground where you can inspect all metadata and iterate on prompts and context settings, and inspection in the dashboard.
  • Usage tracking is easy to set up, enabling usage attribution per-provider, per-model, per-user, per-agent, for billing & more.
  • Rate limiting, powered by the Rate Limiter Component, helps control the rate at which users can interact with agents and keep you from exceeding your LLM provider's limits.

Read the associated Stack post here.

Powerful AI Apps Made Easy with the Agent Component Read the docs for more details.

Play with the example:

git clone https://github.com/get-convex/agent.git
cd agent
npm run setup
npm run example

Found a bug? Feature request? File it here.

Get your app up and running in minutes
Start building
Convex logo
ProductSyncRealtimeAuthOpen sourceAI codingChefFAQPricing
DevelopersDocsBlogComponentsTemplatesStartupsChampionsChangelogPodcastLLMs.txt
CompanyAbout usBrandInvestorsBecome a partnerJobsNewsEventsTerms of servicePrivacy policySecurity
SocialTwitterDiscordYouTubeLumaBlueskyGitHub
A Trusted Solution
  • SOC 2 Type II Compliant
  • HIPAA Compliant
  • GDPR Verified
©2025 Convex, Inc.