Skip to main content
By default, plyra-memory runs entirely locally. Server mode connects the library to a running plyra-memory-server instance, enabling:
  • Multi-agent memory sharing — multiple agents share a memory space
  • Multi-tenant isolation — each API key has its own isolated workspace
  • Cross-process recall — memory survives process restarts and redeploys
  • Centralised management — one server, multiple teams or customers

Connect

Set two environment variables:
No code changes. The library detects PLYRA_SERVER_URL and routes all remember(), recall(), and context_for() calls to the server.

When to use server mode

Get an API key

Generate an API key

Create a live API key in seconds. Shown once — store it securely.

Test the connection

Switching between modes

Your code is identical in both modes.