Deploy Ownstate

Self-hosted institutional memory and context for secure AI agents.

Deploy Ownstate

Just deployed

/app/.fastembed_cache

Just deployed

/var/lib/postgresql

Just deployed

/app/.fastembed_cache

Deploy and Host Ownstate on Railway

Ownstate is a self-hosted institutional memory and context layer for AI agents. It records evidence, resolves repository and project scope, retrieves relevant knowledge, and keeps durable state outside any individual model runtime.

About Hosting Ownstate

This template deploys the complete production topology: a public Rust API, a private background worker, and a private PostgreSQL 18 database with pgvector. Railway generates independent API, admin, and database credentials, connects services over its private network, and attaches persistent volumes for database data and Fastembed model caches. The API runs migrations and exposes /ready for deployment health checks. The worker processes asynchronous knowledge jobs without a public endpoint.

Common Use Cases

  • Give Codex, Claude, OpenCode, and other agents durable project context through Ownstate.
  • Preserve evidence, decisions, artifacts, and institutional knowledge across sessions and model changes.
  • Run a private memory service without depending on proprietary Ownstate infrastructure or a hosted model provider.

Dependencies for Ownstate Hosting

  • A Railway account with capacity for three services and persistent volumes.
  • A local MCP client for Ownstate’s stdio MCP binary; the Railway template exposes the HTTP API, not the stdio process.

Security and Operations

Only the API is public. Keep pgvector and the worker private, give routine clients only OWNSTATE_API_TOKEN, and reserve OWNSTATE_ADMIN_TOKEN for explicit human administration. Enable Railway backups before storing important data. Ownstate intentionally exposes no MCP or model-controlled operation that deletes recorded evidence.

Why Deploy Ownstate on Railway?

Railway provisions the application, worker, private pgvector database, generated credentials, health checks, and durable storage together. After deployment, copy the API domain and routine API token into your trusted client configuration, verify /ready, and connect your MCP client.


Template Content

More templates in this category

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

okisdev
116
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
7
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
82