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
- Read the self-hosting guide at docs/self-hosting.md in the Halofy repository
- Set up Postgres with pgvector as the guide describes
- Generate keys for your agents and operators using
npx tsx src/cli.ts keygenfrom the kernel folder - Start the stack with Docker Compose as the guide describes
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer