> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Maximem Synap is a managed memory layer for AI agents: it ingests conversations and documents, extracts structured memory, and returns scoped context to the agent at retrieval time.
> The Python and JavaScript/TypeScript SDKs are the supported way to use Synap. Write integration code with SDK calls, not raw HTTP requests.
> Start with the Quickstart: https://docs.maximem.ai/getting-started/quickstart.md. Every SDK method is documented in the SDK reference: https://docs.maximem.ai/sdk-reference/overview.md.
> For requests about adding Vity memory to OpenClaw, Hermes, an MCP client, or a browser, start with the Vity Quickstart: https://docs.maximem.ai/vity/quickstart.md.

# What is Maximem Synap?

> Synap is a managed memory layer for AI agents. It sits between your application and your LLM, providing persistent structured memory that survives across sessions, conversations, and deployments. Instead of treating every conversation as a blank slate, your agents can remember, learn, and personalize.

## Synap Core and Synap Cloud

Synap comes in two editions that share one SDK. **Synap Cloud** is the managed service. **Synap Core** is the open-source server you run yourself. Most pages apply to both. The few that exist only in Synap Cloud carry a Cloud only tag in the sidebar, and where Core behaves differently a note headed **In Synap Core** says how. The pages about running Core yourself have Core in their title. [Core vs Cloud](https://docs.maximem.ai/core/quickstart.md#core-and-cloud) compares the two.

## The mental model: Client, Instance, Customer, User, Conversation

Five identifiers do all the work in Synap. Get these straight before reading anything else.

![Synap mental model: a Client contains multiple Instances (e.g. production, staging), each Instance contains Customers (your B2B tenants), and each Customer contains Users identified by user\_id plus conversation\_id](https://mintcdn.com/maximemai/VqAu0ha_ytoa5REo/images/mental-model.png?fit=max\&auto=format\&n=VqAu0ha_ytoa5REo\&q=85\&s=7b2ec5ada60e81e40eade32e55eaa8f6)

| Identifier | Lives in | What it means |
| - | - | - |
| [**Client**](https://docs.maximem.ai/concepts/memory-scopes.md#clients-and-instances) | Dashboard | Your company's account with Synap. One per organization. |
| [**Instance**](https://docs.maximem.ai/concepts/memory-scopes.md#clients-and-instances) | Dashboard, created under a Client | A logical environment (production, staging, EU, US…). Each Instance has its own API keys, its own [MACA](https://docs.maximem.ai/concepts/memory-architecture.md), and its own isolated storage. |
| **Customer** (`customer_id`) | Passed on every SDK call **on B2B instances** | Your B2B tenant. Memories tagged with this are visible to all users within that customer. B2C instances do not accept `customer_id` at all: sending it is rejected with HTTP 400. |
| **User** (`user_id`) | Passed on every SDK call | Your end-user. Memories tagged with this stay private to that user. |
| **Conversation** (`conversation_id`) | Passed on conversation-scoped SDK calls | A single chat thread. Must be a valid UUID; the server rejects non-UUID strings. Lets Synap compact long sessions and route memory to the right thread. |

See [Clients & Instances](https://docs.maximem.ai/concepts/memory-scopes.md#clients-and-instances) and [Customers & Users](https://docs.maximem.ai/concepts/memory-scopes.md#customers-and-users) for the full breakdown.

> [!NOTE]
>
> **In Synap Core:** there is exactly one client and one instance, created when the server first starts, and no dashboard. You send `user_id`, plus `customer_id` if your config uses the `strict` scoping mode. See [Choosing the scoping mode](https://docs.maximem.ai/core/quickstart.md#choose-how-users-are-scoped).

## Key capabilities

> [card] Memory Extraction
>
> Automatically extract structured knowledge from raw conversations and documents. Synap identifies and categorizes **facts**, **preferences**, **episodes**, **emotions**, and **temporal events** without any manual annotation.

> [card] Multi-Scope Memory
>
> Isolate memories at the right boundary. Synap supports a hierarchical [scope chain](https://docs.maximem.ai/concepts/memory-scopes.md) (**User**, **Customer** and **Client**) so personal preferences stay personal while shared knowledge is accessible to everyone who needs it.

> [card] Configurable Storage
>
> Memories are stored in both **vector** and **graph** storage engines. Vector storage powers semantic similarity search. Graph storage captures relationships between entities. You configure the balance through the Memory Architecture Config.

> [card] Context Compaction
>
> Long conversations don't need to be sent in full every time. Synap compacts conversation context into structured summaries, reducing token usage while preserving the information your agent actually needs.

> [card] Entity Resolution
>
> References to the same person, place, or thing across different conversations are automatically resolved. "John", "John Smith", and "my manager" all map to a single canonical entity, building a coherent knowledge graph over time.

> [card] Real-Time Streaming
>
> For latency-sensitive applications, the SDK supports low-latency streaming. Stream memories in and context out without waiting for full round-trips.

## Architecture at a glance

Synap follows a clean separation of concerns across three layers:

![SDK in your application talks to Synap Cloud, where an auth gateway feeds the ingestion pipeline (categorize, extract, chunk, organize, resolve entities) into vector and graph storage plus analytics, all managed from the Dashboard.](https://mintcdn.com/maximemai/HJ9Dv2bNLmM7_gnG/images/architecture.png?fit=max\&auto=format\&n=HJ9Dv2bNLmM7_gnG\&q=85\&s=0d4a7956955751f9422a2785bd2c8d02)

**SDK** lives in your application. It handles authentication, ingestion requests, retrieval queries, and optional low-latency streaming. The SDK never self-asserts identity; all authentication flows through Synap Cloud using a zero-trust model.

**Synap Cloud** is the managed backend. It runs the multi-stage ingestion pipeline (categorize, extract, chunk, organize, resolve entities), stores memories across vector and graph engines, and serves retrieval queries. You never deploy or manage this infrastructure.

**Dashboard** is the web management interface. Create and manage instances, configure memory architecture, monitor ingestion pipelines, manage team access, and set up webhooks.

## Key components

| Component | What it is | What it does |
| - | - | - |
| **SDK** | Python library installed in your application | Provides the programmatic interface for ingesting memories, retrieving context, and managing the memory lifecycle |
| **Dashboard** | Web UI at [synap.maximem.ai](https://synap.maximem.ai) | Manage instances, configure memory architecture, monitor pipelines, and collaborate with your team |
| **Memory Architecture Config (MACA)** | Per-instance memory configuration | Defines how memory is stored, what gets extracted, retrieval strategies, and retention policies for each instance |
| **Instances** | Deployed agent memory containers | Each instance is an isolated memory environment with its own configuration and storage. Identified by `inst_<hex16>` |
| **Clients** | Organization-level containers | A client represents your organization or application. Contains one or more instances. Identified by `cli_<hex16>` |
| **Scopes** | Memory isolation boundaries | Hierarchical boundaries (User > Customer > Client) that control who can access which memories |

## The memory lifecycle

Every piece of content that enters Synap follows a structured pipeline:

**1. Ingestion**

Raw content (conversations, documents, notes) is submitted through the SDK. Each ingestion is tagged with a scope (user, customer, etc.) and document type.

**2. Categorization**

The pipeline classifies the content type and determines which extraction strategies to apply based on the Memory Architecture Config.

**3. Extraction**

Structured knowledge is extracted: facts ("User lives in San Francisco"), preferences ("User prefers dark mode"), episodes ("User signed up last Tuesday"), emotions ("User was frustrated with billing"), and temporal events.

**4. Entity Resolution**

Extracted entities are resolved against the existing knowledge graph. New entities are auto-registered at the appropriate scope. The resolution follows the scope chain: User > Customer > Client.

**5. Storage**

Resolved memories are stored in both vector storage (for semantic search) and graph storage (for relationship traversal). Storage configuration is driven by MACA.

**6. Retrieval**

When your agent needs context, Synap retrieves and ranks relevant memories from both storage engines, respecting scope boundaries and applying the configured retrieval strategy.

> [!NOTE]
>
> The entire pipeline runs asynchronously. When you call `sdk.memories.create()`, the SDK returns immediately with an ingestion ID. You can track ingestion status through the SDK or Dashboard.

## Next steps

> [card] [Quickstart](https://docs.maximem.ai/getting-started/quickstart.md)
>
> Get up and running with Synap in under 10 minutes.

> [card] [Installation](https://docs.maximem.ai/setup/installation.md)
>
> Detailed installation instructions, environment configuration, and dependency options.

> [card] [Authentication](https://docs.maximem.ai/setup/authentication.md)
>
> Understand Synap's zero-trust authentication model, API keys, and credential management.

> [card] [Core Concepts: Scopes](https://docs.maximem.ai/concepts/memory-scopes.md)
>
> Deep dive into memory scoping and isolation boundaries.

> [card] [Migrating from another tool?](https://docs.maximem.ai/migrations/overview.md)
>
> Moving from Mem0, Zep, Letta, or Supermemory? Map your existing memory onto Synap and backfill cleanly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.