Self-Hosted Backend
Run your own Agentic Memory backend and point the OpenClaw plugin at it.
What you need
- Neo4j 5.x+ with GDS and vector index support
- Python 3.11+ environment for
am-server - A valid embedding provider API key (Gemini by default)
- OpenClaw host with plugin install support
1. Start Neo4j
docker compose up -d neo4jDefault connection: bolt://localhost:7687 with user neo4j and password password.
2. Start am-server
python -m am_server.serverBy default the server listens on http://127.0.0.1:8765. Use environment variables or a .env file to configure Neo4j credentials, API keys, and auth.
3. Configure the OpenClaw plugin
openclaw agentic-memory doctor --self-hosted --backend-url http://127.0.0.1:8765 openclaw agentic-memory setup --self-hosted --backend-url http://127.0.0.1:8765Environment variables
| Variable | Purpose |
|---|---|
| NEO4J_URI | Neo4j Bolt URI |
| NEO4J_USER | Neo4j username |
| NEO4J_PASSWORD | Neo4j password |
| GEMINI_API_KEY | Embedding provider key (default) |
| AM_SERVER_API_KEYS | Comma-separated bearer tokens for /openclaw/* and /metrics |
Deployment runbook
For production deployments, health checks, rollback steps, and capacity planning, see the full Self-Hosted Setup guide.