Skip to content

SynapseLayer/synapse-layer

🧠 Synapse Layer

Persistent memory infrastructure for AI agents

PyPI Python Downloads MCP Approved Security License: Apache-2.0

Website · Docs · PyPI · Forge


What is Synapse Layer?

The persistent memory layer for AI agents — the missing piece between stateless LLMs and real continuity of context.

Your AI agents forget everything between sessions. Synapse Layer fixes that.

Feature Description
🔐 Zero-knowledge AES-256-GCM — server never sees plaintext
🧩 One-click connect Claude Desktop, Cursor, LangChain, n8n
🌐 Cross-agent memory Save in ChatGPT, recall in Claude
MCP-native Any MCP-compatible agent
🔒 Header-first auth Tokens never in URLs or logs

Why Synapse Layer?

Your AI agents forget everything between sessions. Synapse Layer fixes that — in one line.

Without Synapse Layer With Synapse Layer
Agent forgets context every session Persistent memory across all sessions
Memory locked to one model Cross-agent: save in ChatGPT, recall in Claude
Plaintext stored on servers AES-256-GCM — server never sees plaintext
Complex integration pip install synapse-layer + 3 lines of code
No audit trail Full memory lifecycle with Truth Quotient™ scoring

Install

pip install synapse-layer

Quick Start

Local SDK — in-process memory

import asyncio
from synapse_layer import SynapseClient  # canonical public import

async def main():
    memory = SynapseClient(agent_id="my-agent")

    # Save
    await memory.store("User prefers dark mode and concise answers")

    # Recall
    results = await memory.recall("user preferences")
    for r in results:
        print(f"[TQ={r.trust_quotient:.2f}] {r.content}")

asyncio.run(main())

Cloud — Forge API (persistent, cross-agent)

from synapse_memory.client import Synapse

client = Synapse(token="sk_connect_YOUR_TOKEN")
client.remember("User prefers dark mode and concise answers")
results = client.recall("user preferences")
for r in results:
    print(r["content"])

Get your token at synapselayer.org → Dashboard → Connect

MCP Integration (Claude Desktop / Cursor)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "synapse-layer": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://forge.synapselayer.org/mcp",
        "--header",
        "x-connect-token: sk_connect_YOUR_TOKEN"
      ]
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

API — Header-First Auth

# Health check
curl -H "x-connect-token: sk_connect_YOUR_TOKEN" \
  https://forge.synapselayer.org/api/connect/health

# Save memory
curl -X POST \
  -H "x-connect-token: sk_connect_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content": "User is a Python developer"}' \
  https://forge.synapselayer.org/api/v1/capture

Security

Feature Implementation
Encryption AES-256-GCM at rest
Auth Header-first (x-connect-token)
Token exposure Never in URLs or logs
CI protection secret-scan.yml on every commit
Zero-knowledge Server never sees plaintext
Security score 10.0 / 10 (MCP Marketplace)

See SECURITY.md for vulnerability reporting.

License

Apache-2.0 © Synapse Layer — v1.2.0