Toolpack SDK
Toolpack SDK is the open source TypeScript SDK for building production AI agents. It gives you everything you need in one package — tools, channels, cognition, and knowledge — without stitching together five different libraries.
Why Toolpack SDK?
- Production-Ready Agents - Build agents that run on Slack, Discord, Telegram, SMS, Email, Webhook, scheduled jobs, and MCP — 8 channel integrations out of the box
- 100+ Built-in Tools - File system, Kubernetes, command execution, web scraping, GitHub, database, diff, cloud, and more across 12 categories
- AgentMind Cognitive Layer - Persistent goals, beliefs, and reflections that survive across runs — the only TypeScript SDK with a built-in cognitive memory model
- Knowledge / RAG - Web crawling, REST API ingestion, hybrid semantic + keyword search, and streaming indexing across 6 source types
- Multi-Provider - OpenAI, Anthropic, Gemini, Ollama, OpenRouter — switch with one line, no vendor lock-in
- Workflow Engine - Automatic planning and step-by-step execution for complex multi-tool tasks
- Extensible at Every Layer - Custom tools, channels, provider adapters, agents, modes, and interceptors — if Toolpack doesn't have it built in, you can build it in using the same interfaces the built-in components use
Quick Example
import { Toolpack } from 'toolpack-sdk';
// Initialize with your preferred provider
const toolpack = await Toolpack.init({
provider: 'openai', // or 'anthropic', 'gemini', 'ollama'
tools: true, // Enable built-in tools
});
// Stream a response
const stream = toolpack.stream({
messages: [{ role: 'user', content: 'List the files in the current directory' }],
model: 'gpt-4o',
});
for await (const chunk of stream) {
process.stdout.write(chunk.delta);
}
Features at a Glance
| Feature | Description |
|---|---|
| Providers | OpenAI, Anthropic, Gemini, Ollama + custom providers |
| Tools | 100+ built-in tools across 12 categories |
| Modes | Agent (full access), Coding (development-focused), Chat (web-only), or custom |
| Workflows | Direct execution or planned step-by-step |
| Streaming | Real-time token streaming with tool execution |
| Multimodal | Text + image inputs across all vision-capable providers |
| Type Safety | Full TypeScript support with comprehensive types |
Getting Started
Ready to build? Head to the Installation guide to get started in minutes.