---
title: "Deploy Supermemory with Cloudflare Zero Trust"
description: "Supermemory memory engine with Cloudflare Zero Trust Access protection."
category: "AI/ML"
url: https://railway.com/deploy/supermemory-with-cloudflare-zero-trust
---

# Deploy Supermemory with Cloudflare Zero Trust

Supermemory memory engine with Cloudflare Zero Trust Access protection.

**[Deploy Supermemory with Cloudflare Zero Trust on Railway](https://railway.com/template/supermemory-with-cloudflare-zero-trust)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/supermemory-with-cloudflare-zero-trust/manifest.json

- **Creator:** rijnhardt
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### supermemory https://supermemory.ai/favicon.ico

- **Source:** supermemoryai/supermemory
- **Start command:** `supermemory-server`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Supermemory with Cloudflare Zero Trust

Self-hosted Supermemory memory engine—ingestion, hybrid semantic search, and full Memory API—protected behind Cloudflare Zero Trust Access.

## Why Deploy

Supermemory brings persistent, semantic memory to your applications. Use it to:
- Store and retrieve documents with hybrid search (keyword + embedding)
- Extract structured insights from unstructured data
- Build AI agents with long-horizon memory and context
- Keep sensitive data on your own infrastructure with full privacy

Cloudflare Zero Trust ensures only authenticated users can access your memory engine.

## Deploy and Host

This template deploys a Supermemory server on Railway with a 10GB persistent volume. Choose your LLM provider during deployment:
- OpenAI (gpt-4o recommended) for production workloads
- Anthropic Claude for privacy-first setups
- Ollama for fully local/offline operation
- Default embeddings (no API keys) for cost-free operation

Cloudflare Zero Trust credentials protect the public endpoint. Set CF_ACCESS_CLIENT_ID, CF_ACCESS_CLIENT_SECRET, and CF_ACCOUNT_ID from your Cloudflare dashboard.

## About Hosting

Railway provides the compute, networking, and persistent storage:
- Compute: CPU/RAM scales automatically with your plan
- Volume: 10GB persistent storage for the embedded graph database
- Networking: Public domain with private database connections and Cloudflare Access overlay
- Monitoring: Health checks on the /health endpoint

## Common Use Cases

- AI-powered customer support: Store interactions, retrieve relevant context for agents
- Research assistant: Ingest PDFs/documents, semantic search across your library
- Knowledge management: Centralized memory for team workflows
- Secure data analysis: Keep sensitive datasets behind Zero Trust

## Dependencies for

Supermemory is self-contained—no external databases required. The embedded graph engine persists to the Railway volume. Optional dependencies:
- LLM API: OpenAI, Anthropic, or Ollama (for intelligence; works without)
- Cloudflare Access: For Zero Trust protection (or skip for open access)

## API Reference

Supermemory exposes the full Memory API:
- POST /v3/documents — Add a document
- POST /v4/search — Hybrid semantic search
- GET /v4/profile — Memory profile
- GET /health — Health check

See Supermemory docs for SDK examples (JavaScript, Python, Go, Rust).

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/supermemory-with-cloudflare-zero-trust
