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.
Prerequisites
- Python 3.10 or later
- A Synap account (sign up at synap.maximem.ai)
piporpoetryfor package management
Install the SDK
Install the Synap SDK from PyPI:Verify the installation:
gRPC streaming is enabled by default — no extra install needed.
Set Up Your Client
A Client is your organization’s top-level account in Synap. Every instance belongs to a Client. You have two options:Create a new Client
- Log in to the Synap Dashboard
- Click Create Client, enter your organization name, and confirm
Skipping this step is not possible — every instance must belong to a Client. If you are unsure whether your organization already has one, check with your team before creating a new Client.
Create an Instance
An instance is an isolated memory environment for your agent. Each instance has its own storage, configuration, and scope hierarchy.
- In the Dashboard, navigate to Instances in the sidebar
- Click Create Instance
- Fill in the instance form:
- Name (required): A human-readable label, e.g.
"My First Agent" - Agent Type (required): Choose the type that best describes your agent (e.g.
B2B Customer Support,B2C Companion,Workflow Agent) - Description (optional): A short description of what this instance is for
- Use-Case Markdown (optional but recommended): Upload a
.mdfile describing your agent’s use case — see below
- Name (required): A human-readable label, e.g.

Use-Case Markdown
The Use-Case Markdown file tells Synap what your agent does, who it serves, and what it should remember. Synap uses it to generate an optimized Memory Architecture Configuration (MACA) for your instance — so the more detail you provide, the better your memory extraction and retrieval will be from day one.To create your use-case file:- Click Download Template in the Create Instance form, or copy the structure below
- Fill in at minimum the three required sections
- Upload the file (
.md,.markdown, or.txt— max 512 KB) in the form before clicking Create
Generate an API Key
- In the Dashboard, go to your newly created instance
- Open the API Keys section on the instance detail page
- Click Generate API Key
- Give it a label (e.g., “development”) and click Generate
- Copy the key immediately — it starts with
synap_
Initialize the SDK
Set your API key as an environment variable:Create a new Python file:That’s it. The SDK reads You should see
main.py
SYNAP_API_KEY from your environment automatically.Run the script:Synap SDK initialized successfully!Ingest Your First Memory
Now let’s send a conversation to Synap. The ingestion pipeline will automatically extract structured knowledge — facts, preferences, entities, and more.The SDK returns immediately with an ingestion ID. The pipeline processes the content asynchronously, extracting:
- Fact: User is located in San Francisco
- Preference: User loves warm weather
- Temporal event: User is planning a trip to Japan next month
- Entities: San Francisco, Japan (resolved and linked in the knowledge graph)
Ingestion is asynchronous by design. The
memories.create() call returns as soon as the content is accepted by Synap Cloud. Processing typically completes within a few seconds, but complex documents may take longer.Retrieve Context
Once memories are ingested and processed, you can retrieve relevant context for any conversation. Synap searches across both vector and graph storage, ranks results by relevance, and respects scope boundaries.Example output:You can now inject this context into your LLM’s system prompt or conversation history to create a personalized, context-aware experience.
What’s next?
You’ve successfully ingested your first memory and retrieved context. Here’s where to go from here:Core Concepts
Understand the full Synap architecture — scopes, memory types, entity resolution, and the ingestion pipeline.
SDK Configuration
Configure the SDK for your production environment — timeouts, retries, logging, and credential management.
Memory Architecture
Learn how to configure what gets extracted, how it’s stored, and how retrieval ranking works.
Production Checklist
Security, performance, monitoring, and reliability best practices before going live.