AgentKit – Next.js AI Agent Starter
Starter kit for production AI agents in Next.js: tool calling, streaming UI, memory, rate limits and cost tracking.
AgentKit is the scaffolding for shipping agentic features in a web app, with guardrails and observability baked in.
Key features
- Typed tool definitions with zod
- Streaming chat UI with tool call rendering
- Conversation memory and summaries
- Per-user rate limits and spend caps
- Prompt-injection guard for untrusted content
- Token and cost dashboards
Tech stack
- Next.js 15
- Gemini / OpenAI
- MongoDB
Requirements
- Node.js 20+
- MongoDB 6+
- LLM API key
Installation
- Copy
.env.exampleto.env.localand fill in the database URL and secrets. - Run
npm install. - Run
npm run seedto load demo data. - Start with
npm run dev, then deploy with the included PM2 or Docker configuration.
What's included
- Full source code with comments
- Step-by-step documentation
- Demo data and seed scripts where applicable
- 6 months of author support and all future updates
More from this author
SupportGenie – AI Customer Support Agent
FastAPILangChainGemini+3
(33)
390 salesUpdated 2d ago
from
$179Web Scripts & Softwarev1.1.0
Harvest – Python Web Scraping Toolkit
FastAPIPostgreSQL
(27)
316 salesUpdated 4mo ago
from
$39Related in AI & Machine Learning Tools
SupportGenie – AI Customer Support Agent
FastAPILangChainGemini+3
(33)
390 salesUpdated 2d ago
from
$179