AgentsKit
The TypeScript foundation for building AI agents β runtime, tools, memory, RAG, adapters, headless UI bindings, and production guardrails.
Agents shouldn't be a monolith. AgentsKit is a family of small, plug-and-play packages covering the whole agent lifecycle in JavaScript: autonomous runtimes, tools, skills, memory, RAG, headless UI bindings, observability, evaluation, and sandboxing. Install what you need. Everything else stays out of your bundle.
#Start here
Pick a path by what you're shipping.
- Want the real ecosystem in one guide? β Build your first agent
- Want to start from an outcome? β Use cases
- Building a versioned multi-surface chat app? β AgentsKit Chat (application layer on this foundation)
- Just need a headless
useChatbinding? β Quick start Β· React Β· Vue Β· Svelte Β· Solid Β· Angular Β· React Native Β· Ink - Building an autonomous agent? β Runtime Β· Tools Β· Skills Β· Multi-agent topologies
- Need RAG? β createRAG Β· Loaders Β· Reranking
- Shipping to production? β Observability Β· Security Β· Evals Β· Durable execution
#Build path
If you are evaluating AgentsKit, this is the shortest path to understanding the product:
- Build your first agent β see provider + runtime + tools + memory + observability working together.
- Architecture at a glance β understand which layer owns what.
- Production β add observability, security, evals, and CLI workflows.
#Popular builds
- Support agent β customer support with memory, tools, and escalation.
- Research agent β web research, structured summaries, and background jobs.
- Code agent β repository-aware automation with safe tool use.
- Internal copilot β company knowledge with RAG and production controls.
#The substrate
Six stable contracts. Every package is an implementation of one.
| Contract | Role | Deep dive |
|---|---|---|
| Adapter | LLM provider seam | concept Β· implementations |
| Tool | Function the model calls | concept Β· implementations |
| Skill | Declarative persona | concept Β· implementations |
| Memory | Chat history + vector state | concept Β· implementations |
| Retriever | Context fetching | concept Β· implementations |
| Runtime | The loop that composes them all | concept Β· implementations |
Learn the six once; swap implementations forever. The mental model walks through how they compose.
#What's inside
- 24 packages under
@agentskit/*β foundation, providers, UI bindings, runtime, capabilities, observability, infrastructure. Full index. - 7 framework bindings sharing one
useChatcontract. UI matrix. - 29 native adapters plus a catalog of 232 providers. Providers.
- 53 integrations for tools agents call. Integrations.
- 60+ recipes grouped by theme. Recipes.
- Open specs β A2A, Manifest, Eval Format, AgentSchema β portable JSON. Specs.
#Keep reading
- Comparison β AgentsKit vs LangChain, Vercel AI, Mastra, LlamaIndex.
- Migrating β port from Vercel AI SDK, LangChain.js, Mastra.
- For agents β dense LLM-friendly reference per contract.
- Examples β live interactive demos.
- Contribute β built in the open. Discord is optional; product chrome does not promote it.
- AgentsKit Chat β versioned chat applications on this foundation.