Namespaces
Remem uses workspaces as the top-level customer boundary and namespaces as the isolation boundary inside one workspace. Use namespaces when you want multiple agents, teams, or workflows to share one workspace but not all read and write the same memory.Hierarchy
default namespace. Additional namespaces are created under that same workspace.
What a namespace isolates
Inside a workspace, namespace scope applies to:- documents and chunks
- query results
- extracted facts and entities
- PageIndex trees/nodes
- audit and lifecycle records tied to tenant content
Read and write model
Namespaces are enforced through API-key grants.| Operation | Behavior |
|---|---|
Write (ingest) | Targets exactly one namespace |
Write with no namespace field | Falls back to the API key’s default_namespace_id |
Read (query, search) with no namespaces field | Searches all namespaces the caller can read |
Read with namespaces: ["*"] | Also means all readable namespaces |
| Read with explicit keys | Intersected with the caller’s readable grants |
read_writeread_only
403. If the key does not exist or is archived, Remem returns 404.
Stable key vs display name
Each namespace has:key: stable API-facing identifier likework,research,team.alphaname: human-readable label shown in the portal
Managing namespaces in the portal
In the Remem portal, open Dashboard -> Namespaces to:- list active namespaces in the current workspace
- create a namespace
- rename a namespace
- archive or restore a namespace
- the key’s default namespace
- which namespaces it can read or write
Management API
Namespace management uses a portal JWT, not avlt_... API key.
List namespaces
Create a namespace
Update a namespace
Create a namespace-scoped API key
Update API key scopes
If you omit
scopes when creating a key, Remem grants read_write on the workspace’s default namespace. It does not automatically grant every namespace in the workspace.Data-plane API usage
Write into one namespace
Use the namespace key on ingest:namespace, Remem writes into the API key’s default namespace.
Read from one namespace
Read across several namespaces
Read across all readable namespaces
CLI usage
The CLI uses namespace keys:- repeat
--namespacefor multiple namespace keys - quote
'*'so your shell does not expand it - writes without a namespace rely on the API key’s default namespace
MCP usage
The packaged MCP server supports namespace-aware read and write tools.Configure a default write namespace
remem_ingest when the tool call omits namespace.
Read with namespace scope
Write with explicit namespace
REMEM_DEFAULT_NAMESPACE omit a namespace, the backend falls back to the API key’s default namespace.
OpenClaw plugin behavior
The OpenClaw plugin currently does not expose explicit namespace config fields. It inherits namespace behavior from the API key you give it:- searches run across all namespaces that key can read
- creates/updates fall back to the key’s default namespace
- Create a dedicated API key for the OpenClaw agent.
- Set that key’s default namespace to the agent’s write target.
- Grant only the namespaces the agent should read.
Recommended patterns
- Give each autonomous agent its own namespace.
- Use a separate shared namespace for handoff or supervisor visibility.
- Keep personal/private notes in a namespace served by a different API key.
- Use
read_onlygrants for supervisor or analyst agents that should aggregate without writing.