An open-source AI Agent template built with Next.js, the AI SDK by Vercel, Vercel AI Gateway, and Braintrust.
Features · Deploy Your Own · Running Locally · Authors
- AI Gateway Integration: Models are accessed through Vercel AI Gateway for unified AI provider management and monitoring.
- Braintrust Tracing: Complete observability and tracing powered by Braintrust for debugging and optimizing AI agent behavior.
- Agent built with AI SDK 5.
- Built-in tool integration for extending AI capabilities (demonstrated with a weather tool example).
- Reasoning model support.
- shadcn/ui components for a modern, responsive UI powered by Tailwind CSS.
- Built with the latest Next.js App Router.
You can deploy your own version to Vercel by clicking the button below:
-
Clone the repository and install dependencies:
pnpm install -
Install the Vercel CLI:
pnpm install -g vercelOnce installed, link your local project to your Vercel project:
vercel linkAfter linking, pull your environment variables:
vercel env pullThis will create a
.env.localfile with all the necessary environment variables, including:BRAINTRUST_API_KEY: Your Braintrust API key for tracing- AI Gateway configuration for model access
-
Start the development server:
pnpm dev -
Open http://localhost:3000 to view your AI agent application.
This project uses:
- Vercel AI Gateway to route requests to various AI providers through a unified interface
- Braintrust to trace and monitor all AI interactions, providing detailed logs and performance metrics
Visit the Braintrust dashboard to view traces and analyze your agent's behavior.
This repository is maintained by the Vercel team and community contributors.
Contributions are welcome! Feel free to open issues or submit pull requests to enhance functionality or fix bugs.