Three Simple Primitives
Everything is built from Minions (instances), MinionTypes (schemas), and Relations (typed links).
Three Simple Primitives
Everything is built from Minions (instances), MinionTypes (schemas), and Relations (typed links).
Progressive Complexity
Start with a single flat agent. Grow into nested structures with memory, skills, and teams — no migration needed.
Schema-Driven Validation
Every field is validated against its type schema. No more guessing what shape your agent data is in.
Framework Agnostic
Works with any storage backend, any runtime, any AI framework. Pure TypeScript, zero opinions about infrastructure.
Choose between the unified Minions client for seamless access or the modular functions for absolute control.
import { Minions, InMemoryStorage } from 'minions-sdk';
const storage = new InMemoryStorage();const minions = new Minions({ storage });
// 1. Create an agentconst assistant = await minions.create( { title: 'Research Assistant', fields: { role: 'researcher', model: 'gpt-4', systemPrompt: 'You are a research assistant.', tools: ['web-search', 'summarize'] } }, 'builtin-agent');
// 2. Query itconst result = await minions.get(assistant.id);OR Modular Imports
import { createMinion, InMemoryStorage } from 'minions-sdk';
const storage = new InMemoryStorage();
// 1. Create an agentconst { minion: assistant } = createMinion( { title: 'Research Assistant', fields: { role: 'researcher', model: 'gpt-4', systemPrompt: 'You are a research assistant.', tools: ['web-search', 'summarize'] } }, 'builtin-agent');
// 2. Save itawait storage.saveMinion(assistant);from minions import Minions, InMemoryStorage
storage = InMemoryStorage()minions = Minions(storage=storage)
# 1. Create an agentassistant = minions.create( { "title": "Research Assistant", "fields": { "role": "researcher", "model": "gpt-4", "systemPrompt": "You are a research assistant.", "tools": ["web-search", "summarize"] } }, "builtin-agent")
# 2. Query itresult = minions.get(assistant.id)OR Modular Imports
from minions import create_minion, InMemoryStorage
storage = InMemoryStorage()
# 1. Create an agentassistant, _ = create_minion( { "title": "Research Assistant", "fields": { "role": "researcher", "model": "gpt-4", "systemPrompt": "You are a research assistant.", "tools": ["web-search", "summarize"] } }, "builtin-agent")
# 2. Save itstorage.save_minion(assistant)