Start the server
Binds to http://127.0.0.1:8912 by default. Ports come from server.mcp_port / server.rest_port in config.
# foreground
memorius serve-rest
# background daemon
memorius serve-rest --daemon
# stop the daemon
memorius serve-rest --stop
Flags: --port, --host (default 127.0.0.1), --daemon, --stop, --pid-file, and --tls-cert / --tls-key (PEM) for HTTPS.
Security
| Control | Behavior |
| API key auth | Set MEMORIUS_API_KEY; send as Authorization: Bearer <key>. |
| Rate limiting | 500 requests/minute per IP. |
| Body limit | Maximum request body size enforced by middleware. |
| CORS | Restrictive by default — Obsidian app + localhost only. |
| Daemon mode | --daemon / --stop with PID-file management. |
Read endpoints
| Method | Path | Description |
| GET | /health | Health check (/health/live, /health/ready also exposed). |
| GET | /status | System status. |
| GET | /stats | Full vault + memory + graph stats. |
| GET | /doctor | Run the 6 health checks. |
| GET | /vault | Browse the vault hierarchy. |
| GET | /diaries | List recent diary entries. |
| GET | /memories | List memories with cursor pagination. |
| GET | /memory/{id} | Get one memory by UUID. |
| GET | /contradictions/{id} | Memories that contradict a given memory. |
| GET | /obsidian | List notes in an Obsidian vault. |
| GET | /metrics | Server metrics. |
Write endpoints
| Method | Path | Description |
| POST | /store | Store a memory. |
| POST | /search | Semantic search. |
| POST | /mine | Extract memories from a transcript. |
| POST | /diary | Write a diary entry. |
| POST | /consolidate | Merge duplicate memories (requires confirm=true). |
| POST | /extract | LLM extraction from a conversation. |
| POST | /factcheck | Fact-check a statement against the vault. |
| POST | /context | Formatted context block for injection. |
| POST | /prune | Find and archive stale memories. |
| POST | /obsidian/import | Import Obsidian notes as memories. |
| POST | /obsidian/export | Export memories as Obsidian notes. |
| PATCH | /memory/{id} | Update a memory's content/metadata. |
| DELETE | /memory/{id} | Delete a memory. |
Graph & visualizer
| Method | Path | Description |
| GET | /graph/data | Graph topology as JSON. |
| GET | /graph/view | Served interactive graph visualization. |
| GET | /visualize | Standalone HTML graph export. |
Repository
Memorius is MIT-licensed and fully open source. Star the repo, open an issue, or dig into the source on GitHub.