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.

by Sofia MartinsVerified Author(33) 434 sales 22.6K viewsUpdated 17 Oct 2026
AgentKit – Next.js AI Agent Starter — preview 1
1 / 3

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

  1. Copy .env.example to .env.local and fill in the database URL and secrets.
  2. Run npm install.
  3. Run npm run seed to load demo data.
  4. 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

View all

Related in AI & Machine Learning Tools

View all