{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "avijit07x-claude-db--share-memory-across-machines-with-postgres",
 "repo": "Avijit07x/claude-db",
 "repo_url": "https://github.com/Avijit07x/claude-db",
 "repo_slug": "avijit07x-claude-db",
 "title": "Share Claude Code memory across machines on Postgres",
 "page_title": "How to share Claude Code memory across machines on Postgres with Claude DB",
 "summary": "Move Claude DB from local SQLite to a shared Postgres or MongoDB database.",
 "who": "A developer or small team who uses Claude Code on more than one machine and wants one memory store.",
 "problem": "The default SQLite store lives on one machine, so decisions and maps made on a laptop are missing on a desktop.",
 "outcome": "Memory is kept in a Postgres or MongoDB database you run, so every machine using Claude DB reads the same store.",
 "steps": [
  "`npm install -g claude-db`",
  "`cd your-project`",
  "`claude-db install --project`",
  "Run `claude-db use pg` or `claude-db use mongodb` and follow the prompts to point Claude DB at your database. (inferred, check the README)",
  "Run `claude-db doctor` to check the setup, then `claude-db status` to confirm what is recorded."
 ],
 "agent_prompt": "In the repo <repo-path>, switch claude-db to the database <pg-or-mongodb> and run claude-db doctor. Expected output is a passing setup check and a status line showing the chosen database. Verify that claude-db status reports the same memory count on a second machine after one chat is recorded.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README gives the command only as a table entry, so the exact connection steps are in the documentation site and you should confirm them there.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 22.16 or newer",
  "A git repository for your project",
  "Claude Code installed and able to run hooks",
  "Optional: a Postgres or MongoDB database if you want to share memory across machines"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "A shared Postgres or MongoDB connection needs database credentials, so store them outside the repo and never commit them."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/avijit07x-claude-db/share-memory-across-machines-with-postgres/",
 "md": "https://dedupedai.com/use-cases/avijit07x-claude-db/share-memory-across-machines-with-postgres/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/avijit07x-claude-db--share-memory-across-machines-with-postgres.json",
 "api_version": "v1"
}
