Railway

Deploy contextmate

Zero-knowledge encrypted sync server for AI agent context

Deploy contextmate

Just deployed

/data

Deploy and Host ContextMate on Railway

ContextMate is a zero-knowledge encrypted sync service for AI agent context — memories, skills, rules, and identity files. Your passphrase never leaves your device; the server only stores encrypted blobs.

About Hosting ContextMate

This template deploys the ContextMate server with persistent storage. Everything works out of the box — no configuration required. A JWT signing secret is auto-generated on first boot and persisted to disk.

After deploying, point your CLI at your new server:

npm i -g contextmate
contextmate setup

Enter your Railway server URL when prompted

Why Deploy

  • Own your data — Run the sync server on your own infrastructure instead of relying on a shared hosted service.
  • Zero-knowledge encryption — AES-256-GCM with Argon2id key derivation. The server never sees your plaintext data.
  • Zero config — JWT secret auto-generates, SQLite database initializes on first request. Just deploy and go.
  • Earn from Railway — Template creators earn a share of usage revenue from deployments.

Common Use Cases

  • Self-hosting for teams that require data sovereignty or compliance
  • Syncing AI agent context (memories, skills, rules) across multiple devices
  • Real-time sync between Claude Code, OpenClaw, Cursor, and other AI agents via WebSocket
  • Running a private MCP-compatible context server for your organization

Dependencies for

Deployment Dependencies

  • Node.js 20+ — Included in the Dockerfile (node:20-slim)
  • SQLite — Embedded, no external database required
  • Persistent volume — Mounted at /data for blobs and database storage. Provisioned automatically by Railway.

No external services, databases, or API keys are required.

Environment Variables

  • JWT_SECRET — Optional. Auto-generated if omitted. Set explicitly for multi-instance deployments.

  • CORS_ORIGINS — Optional. Comma-separated allowed origins for the web dashboard. Allows all if blank.

  • PORT — Server port (default: 3000) Links

  • GitHub

  • Documentation

  • Security Model


Template Content

More templates in this category

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

okisdev
View Template
openui
Deploy OpenUI: AI-powered UI generation with GitHub OAuth and OpenAI API.

zexd
View Template
firecrawl
firecrawl api server + worker without auth, works with dify

Rama