# 5Brains

> 5Brains (https://5brains.io), also called Smart Knowledge, is the shared memory layer for AI agents. The package and MCP tool names still use "smart-knowledge" / "smart_knowledge". Agents read decisions, documents, a knowledge graph and live databases before they act, through MCP, the Node.js and Python SDKs or a REST API, and write back decisions, tasks, facts and lessons afterwards. People curate the sources and review what agents learned in a web workspace, where they can also ask questions from the same memory. It is not a "chat with your documents" assistant: the primary users are agents.

## The five memories

1. Business decisions: decisions, policies and task records, encrypted at field level.
2. Meaning: semantic vectors of document text and past agent lessons.
3. Exact recall: keyword index for identifiers, codes and numbers.
4. Knowledge graph: entities, relationships, source and confidence.
5. Agent coordination: job queue and task state for long-running missions.

Language models and embeddings run on Google Gemini through its API.

## Capabilities

- Cited question answering across documents and plain text, with multi-turn conversations, coreference resolution and conversation branching.
- Read-only federated queries to PostgreSQL, MySQL and MongoDB, with row limits and encrypted credentials.
- Calculations executed as code in an isolated sandbox (128 MB memory, 10 s limit, no network).
- Agent missions that plan, retrieve in parallel, self-check source coverage and retry, with streaming progress, polling and webhooks.
- Knowledge graph explorer with user feedback on facts and disputed-fact flagging.
- Cascade deletion: removing a document deletes its vectors, graph facts and derived agent lessons.
- Per-request token metering, monthly per-seat quotas and top-up packs.

## Limits

- Redaction of personal data is pattern based (emails, phone numbers, card and social security numbers).
- Answers can still be wrong. Check cited sources for important decisions.

## Interfaces

- MCP server (Pro and Enterprise): https://api.5brains.io/mcp (HTTP) or `npx -y @chdlabs/smart-knowledge mcp` (stdio).
- Python SDK: pip install smart-knowledge
- Node.js SDK: npm install @chdlabs/smart-knowledge
- REST API base: https://api.5brains.io
  POST /api/ask, POST /api/query, POST /api/agentask, GET /api/agentask/status/:id, POST /api/upload, POST /api/knowledge/text, GET /api/files, DELETE /api/files/:id
- Authentication: Authorization: Bearer <API_KEY> or X-API-Key. Each key belongs to one tenant.
- Accepted files: PDF, DOCX, TXT, MD, CSV, XLSX, PPTX.

## Pricing (per seat per month, billed monthly)

- Starter EUR 19.99: 50 documents, 5 seats, 1 workspace, 1 API key, 10M tokens per seat per month, agent missions up to 3 iterations, 30-day audit trail, no MCP.
- Pro EUR 59.99: 500 documents, 25 seats, 5 workspaces, 10 API keys, 40M tokens per seat per month, MCP and SDKs, agent missions up to 8 iterations, 90-day audit trail.
- Enterprise EUR 99.99: unlimited documents, seats and workspaces, unlimited API keys with auto-rotation, 100M tokens per seat per month, MCP with SIEM integration, unlimited audit trail with SIEM export, dedicated solutions architect.
- Top-up packs (never expire): 5M tokens EUR 5, 10M tokens EUR 10, 22M tokens EUR 20.

## Pages

- https://5brains.io/how-it-works
- https://5brains.io/use-cases
- https://5brains.io/developers
- https://5brains.io/pricing
- https://5brains.io/mcp
