Build AI chat applications without the complexity. PersonaKit provides a tiny, opinionated SDK for creating persona-driven AI agents with RAG and memory.
- Agent Creation - Configure AI agents with personality and instructions
- Knowledge Base - RAG with pluggable vector stores and embedders
- Memory - Conversation persistence with KV and SQLite adapters
- Streaming - Built on Vercel AI SDK for real-time responses
- React Hook -
useChatAgent()for instant UI integration
npm install personakitimport { createAgent } from "personakit";
const agent = createAgent({
name: "DocBot",
personality: "helpful, concise",
instructions: "Answer using the docs.",
knowledgeBase: "./docs",
});
// In your Next.js API route
export const POST = agent.handle;| Package | Description |
|---|---|
| personakit | Core SDK |
| next-starter | Next.js template |
| basic-node | Node.js example |
Clone the starter template for the fastest path to deployment:
npx degit personakit/personakit/templates/next-starter my-agent
cd my-agent
pnpm install
pnpm devEdit personakit/agent.ts, drop docs in personakit/knowledge/, deploy to Vercel.
See PersonaKit in action:
- Albert's Portfolio - AI-powered portfolio assistant with RAG knowledge base
Building with PersonaKit? Add your project!
MIT