Deploy Hindsight (w/ access key)

Agent memory over MCP and REST behind your access key, kept in Postgres.

Deploy Hindsight (w/ access key)

Just deployed

/var/lib/postgresql/data

Deploy and Host Hindsight (w/ access key) on Railway

Hindsight gives AI agents long-term memory they store and recall over REST or MCP. This template locks the API, MCP and web UI behind one access key you choose, and keeps memories in a private Postgres that survives redeploys.

Hindsight agent memory behind your access key

About Hosting Hindsight (w/ access key)

Choose your access key on the deploy form, with your LLM provider and its key. Sign in to Hindsight UI with the access key, or connect an agent below. Needs the Hobby plan: Hindsight API idles at about 0.85 GB.

Connect Claude Code

  1. In your Railway project, click Hindsight API and copy its public URL.
  2. In a terminal, run this with your URL and access key. my-project is the memory bank; Hindsight creates it on first use.
claude mcp add --transport http hindsight https://YOUR-API-URL/mcp/my-project/ --header "Authorization: Bearer YOUR-ACCESS-KEY"
  1. Run claude mcp list: hindsight shows as Connected, and Claude Code can now retain, recall and reflect.

Connect n8n

  1. In your workflow's AI Agent node, click + under Tool and add MCP Client Tool.
  2. Set Endpoint to https://YOUR-API-URL/mcp/my-bank/ and Authentication to Bearer Auth, then create a credential with your access key as the Bearer Token. If n8n runs in this Railway project, the endpoint can be http://hindsight-api.railway.internal:8888/mcp/my-bank/ instead.
  3. Set Tools to Include to Selected and pick retain, recall and reflect.

Common Use Cases

  • Memory for Claude Code across sessions
  • Agents that remember each customer
  • Shared knowledge for n8n agents

Dependencies for Hindsight (w/ access key) Hosting

  • Hindsight API
  • Hindsight UI
  • Postgres

Deployment Dependencies

Implementation Details

Hindsight (w/ access key) architecture

Memories live in the Postgres volume. To change the access key, edit HINDSIGHT_API_TENANT_API_KEY on Hindsight API; clients then need the new key.

Why Deploy Hindsight (w/ access key) on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Hindsight (w/ access key) on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

Updated 2026-10-30: First release, Hindsight 1.1.0.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
NEW
Weaviate
Vector database with hybrid search and an API key-protected API

zer0person
1
View Template
Möbius v0.1 Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

bento
1