How it works
MemWire has a built-in four-level isolation hierarchy. Every memory, graph node, graph edge, and knowledge chunk is tagged with up to four identifiers:Levels explained
| Level | Identifier | Typical use |
|---|---|---|
| Organisation | org_id | Top-level billing or company boundary |
| Workspace | workspace_id | Team, project, or environment (prod vs staging) |
| Application | app_id | Individual product or service |
| User | user_id | End-user required on every call |
user_id is always required; the others default to None.
Code example
Agent isolation
Passagent_id to further scope memories to a specific AI agent within a user session:
Configuration reference
| Parameter | Default | Description |
|---|---|---|
org_id | "default" | Organisation identifier set at config level. |
database_url | None | SQLAlchemy URL. Defaults to sqlite:///memwire_{org_id}.db. |

