DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to self-host governed memory on Postgres with Halofy

Run a durable kernel on Postgres and pgvector with Docker Compose, backups, and generated keys.

Short answer: Read the self-hosting guide at docs/self-hosting.md in the Halofy repository; then set up Postgres with pgvector as the guide describes; generate keys for your agents and operators using npx tsx src/cli.ts keygen from the kernel folder. All steps.

Credentials. Generated keys and the Postgres password control access to all organizational context, so store them in a secret manager and rotate them according to your policy.

Who it is forAn IT or platform engineer who must keep organizational context on their own infrastructure for a team of agents.

The problemA local demo database does not meet the durability, backup, and key management needs of a shared organizational deployment.

The outcomeA self-hosted kernel with Postgres as the authority, generated keys, Docker Compose, and a documented backup and restore path.

What you need first

  • Git installed to clone the repository
  • npm available to install and run the kernel
  • A terminal on your machine; no API key or database server is needed for the offline demo

Steps

  1. Read the self-hosting guide at docs/self-hosting.md in the Halofy repository
  2. Set up Postgres with pgvector as the guide describes
  3. Generate keys for your agents and operators using npx tsx src/cli.ts keygen from the kernel folder
  4. Start the stack with Docker Compose as the guide describes
  5. Test a backup and a restore before connecting production agents

Prompt for your agent

In the halofy repository, read docs/self-hosting.md and list the steps needed to run the kernel on Postgres with Docker Compose. Verify that the guide covers backups and restores before reporting the plan.

Caveat. The README points to docs/self-hosting.md for the Postgres and Docker Compose steps, so the exact commands are not included here and must be taken from that guide.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for halofyai/halofy and "Self-host governed memory on Postgres"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer