Deploy Hindsight (w/ access key)
Agent memory over MCP and REST behind your access key, kept in Postgres.
Hindsight UI
Just deployed
Hindsight API
Just deployed
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.

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
- In your Railway project, click Hindsight API and copy its public URL.
- In a terminal, run this with your URL and access key.
my-projectis 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"
- Run
claude mcp list: hindsight shows as Connected, and Claude Code can now retain, recall and reflect.
Connect n8n
- In your workflow's AI Agent node, click + under Tool and add MCP Client Tool.
- 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 behttp://hindsight-api.railway.internal:8888/mcp/my-bank/instead. - Set Tools to Include to Selected and pick
retain,recallandreflect.
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

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
Hindsight API
ghcr.io/vectorize-io/hindsight-api:1.1.0HINDSIGHT_API_LLM_API_KEY
API key for that provider. For a provider without a key (a local Ollama), type any text.
HINDSIGHT_API_TENANT_API_KEY
Your access key: choose a long random string (20+ characters). You sign in to Hindsight UI with it, and API and MCP clients send it as a Bearer token. Keep it secret.

