Welcome to AgentsKit.js
The agent toolkit JavaScript actually deserves.
AgentsKit.js is a family of small, plug-and-play packages that cover the entire agent lifecycle in JavaScript: chat UIs, autonomous runtimes, tools, skills, memory, RAG, observability.
Where to go next
- Quick start — a working chat in under 10 lines
- Concepts — the mental model behind every package
- Recipes — copy-paste solutions for common scenarios
- Examples — live interactive demos
- Migrating from another framework — Vercel AI SDK, LangChain.js, Mastra
- Contribute → — AgentsKit.js is built in the open. Your PR helps.
- Join the Discord → — Office Hours every Friday, direct line to maintainers.
The substrate
Six core contracts (formalized as ADRs) define how every package composes:
| Contract | Role |
|---|---|
| Adapter | LLM provider seam |
| Tool | Function the model calls |
| Memory | Chat history + vector store |
| Retriever | Context fetching |
| Skill | Declarative persona |
| Runtime | The loop that composes them all |
If you understand these six, you understand AgentsKit.js.