self-hosted-openmemory
Deploy, configure, and troubleshoot self-hosted Mem0 server, dashboard, auth, API keys, REST endpoints, Docker Compose services, OpenMemory API/UI/MCP, migrations, backups, and operational safety.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- self-hosted-openmemory
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Deploy, configure, and troubleshoot self-hosted Mem0 server, dashboard, auth, API keys, REST endpoints, Docker Compose services, OpenMemory API/UI/MCP, migrations, backups, and operational safety.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/openmemory-mcp.md3.7 KB
- 参考文档references/rest-api-and-auth.md3.7 KB
- 参考文档references/server-deployment.md4.4 KB
- 参考文档references/troubleshooting.md3.9 KB
- 脚本scripts/check_self_host_env.py3.1 KB
- 脚本scripts/render_docker_env_check.py1.9 KB
03 SKILL.md 正文
self-hosted-openmemory
Use this sub-skill when a task mentions self-hosted Mem0, the Mem0 REST server, Docker Compose, dashboard login, API keys, request logs, Postgres/pgvector, Neo4j, OpenMemory, local MCP hosting, migrations, .env setup, make bootstrap, auth upgrades, backups, or operational troubleshooting.
Route First
- Use this sub-skill for server deployment, dashboard/admin setup, API key issuance, auth defaults, REST routes, OpenMemory API/UI/MCP, Docker services, migrations, and operations.
- Use Server Deployment for
server/style setup, dashboard/auth, bootstrap, request logs, migrations, and operations. - Use OpenMemory MCP for OpenMemory stack, Qdrant-backed local memory app, API/UI layout, and MCP client integration.
- Use REST API and Auth for endpoint families, auth modes, API keys, CORS, request logs, and client configuration.
- Use Troubleshooting for 401s after upgrade, missing secrets, port conflicts, provider failures, migrations, MCP tool visibility, and destructive recovery paths.
Sibling Boundaries
- Route direct Python/TypeScript SDK CRUD/search,
MemoryClient,Memory, async clients, filters, exports, and feedback to../sdk-memory/SKILL.md. - Route OSS provider/vector/embedder/LLM/reranker configuration for in-process
Memory()to../provider-configuration/SKILL.md. - Route terminal
mem0 init/add/search/listworkflows to../cli-memory/SKILL.md. - Route hosted MCP/plugin setup for Claude, Cursor, Codex, OpenCode, Antigravity, OpenClaw, Pi Agent, and Vercel AI SDK to
../integrations-plugins/SKILL.md.
Fast Decision Tree
- Need a hosted-free local service with dashboard and API keys? Use the Mem0 self-hosted server path and start with
server/.envvalidation, thenmake bootstrapor browser setup. - Need local memory app plus MCP server for user-controlled memories? Use OpenMemory and verify API, UI, and Qdrant containers before client wiring.
- Seeing
401after an upgrade? Decide between legacyADMIN_API_KEY, recommended dashboard-created per-user keys, orAUTH_DISABLED=truefor local development only. - Need to reset passwords, prune request logs, wipe volumes, or export backups? Treat those as privileged or destructive operations and confirm target environment first.
- Need in-process Python/Node memory only, without server containers? Route to
sdk-memoryandprovider-configurationinstead.
Bundled Scripts
python scripts/check_self_host_env.py --helpchecks.env-style files for required self-hosted settings without printing secret values.python scripts/render_docker_env_check.py --helpprints a safe checklist for server/OpenMemory Docker Compose readiness and upgrade risks.
Working Rules
- Never invent, print, commit, or echo real provider keys,
JWT_SECRET, admin passwords, API keys, refresh tokens, or database passwords. - Never run destructive commands such as volume resets, password resets, cascade deletes, or backup restores without explicit user confirmation.
- Prefer read-only checks first: env-file validation, port availability, container status, logs, and migration state.
- Keep local development bypasses separate from production guidance;
AUTH_DISABLED=trueis local-only. - Do not tell future agents to run original repo scripts from a source checkout. Use the bundled references and validators here.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).