Everything you need to build with Brain.
Welcome to the Brain API documentation. This guide will help you integrate Brain's AI capabilities into your application.
Get up and running in 5 minutes:
# Install the Brain SDK
npm install @brain/sdk
# Or with yarn
yarn add @brain/sdk
import { Brain } from '@brain/sdk';
const brain = new Brain({
apiKey: process.env.BRAIN_API_KEY,
});
// Create your first task
const task = await brain.tasks.create({
title: 'Review Q4 goals',
priority: 'high',
dueDate: '2026-03-15',
});
console.log(task);
The basic unit of work in Brain. Tasks can have priorities, due dates, attachments, and subtasks.
Rich text documents with markdown support. Notes can be linked to tasks and organized in folders.
AI-powered workers that execute tasks automatically. Configure agents to triage, summarize, and act on your behalf.
For complete API details, visit our API Reference.