Memorylayer

Hosted memory runtime for agents

Hosted memory API

Plug agents into memory without local setup.

Memorylayer exposes a hosted service surface around the Engram engine: workspace API keys, agent bootstrap, an HTTP MCP bridge, downloadable starter skills, and regular JSON endpoints for the memory lifecycle.

JSON API

Status, search, remember, recent memory, audit history, usage tracking, and bootstrap.

HTTP MCP bridge

One authenticated endpoint for a focused set of Engram tools.

Starter skills

Markdown skills for Codex or Claude-style memory workflows.

Auth Workspace key via `Authorization: Bearer` or `X-API-Key`
Bridge `/api/workspaces/{slug}/mcp` plus tool discovery and bootstrap
OpenAPI Machine-readable surface for clients that want a direct service contract

Authentication

All workspace API routes accept a workspace key in either `Authorization: Bearer` or `X-API-Key`.

Authorization: Bearer engram_... X-API-Key: engram_...

Bootstrap

Use one workspace call to discover the rest of the integration surface.

GET /api/workspaces/{slug}/bootstrap

Core endpoints

These are the main hosted routes an agent or service uses day to day.

Status

GET /api/workspaces/{slug}/status

Workspace memory counts and graph stats.

Search

POST /api/workspaces/{slug}/search

Run hosted retrieval without touching the underlying Engram runtime directly.

Remember

POST /api/workspaces/{slug}/remember

Store new narrative, fact, or procedure memories.

Recent

GET /api/workspaces/{slug}/memories/recent

Load the last memories written to the workspace.

Audit

GET /api/workspaces/{slug}/audit

Inspect workspace-level key usage and memory activity.

Usage

GET /api/workspaces/{slug}/usage

Read per-key API activity, route counts, and the latest service calls.

MCP bridge

POST /api/workspaces/{slug}/mcp

Call selected Engram tools through one hosted bridge.

Bridge tools

The hosted bridge intentionally exposes a smaller, reliable subset of Engram.

status

Return workspace-level memory counts and graph stats.

recall

Run the main Engram retrieval flow against the workspace.

recall_recent

Load the most recent memories for the workspace.

remember

Store a new memory in the workspace.

remember_decision

Store an explicit decision and rationale.

remember_project

Update project-level state for the workspace.

focus_brief

Generate a brief about the most relevant memory context for a task.

hotspots

Identify dense or high-interest areas in the memory graph.

compare_queries

Compare how two queries retrieve and overlap.

Starter skills

These skills are available as JSON or plain markdown for agent bootstrapping.

Workspace Memory

Use the hosted workspace memory service for project recall, remember, and recent context.

/api/skills/workspace-memory /api/skills/workspace-memory.md

Session Handoff

Capture the minimum high-value handoff state before stopping work.

/api/skills/session-handoff /api/skills/session-handoff.md