---
title: "Deploy KB - Private Knowledge Base"
description: "A private knowledge base for AI tools."
category: "AI/ML"
url: https://railway.com/deploy/kb-private-knowledge-base
---

# Deploy KB - Private Knowledge Base

A private knowledge base for AI tools.

**[Deploy KB - Private Knowledge Base on Railway](https://railway.com/template/kb-private-knowledge-base)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/kb-private-knowledge-base/manifest.json

- **Creator:** Applied Labs
- **Category:** AI/ML

## Template content

### worker

- **Image:** ghcr.io/justinbeaudry/kb-worker@sha256:7cbf258cac509cdd6a620ee9ffffd5acf30c45d85fe7e98fe34d34a4dedf0fae
- **Health check:** /livez

### api

- **Image:** ghcr.io/justinbeaudry/kb-api@sha256:e58cb52a4871355bbc7cb590ff27b24b1be8508f82016b3624ab2f5284ad2110
- **Health check:** /livez
- **Public domain:** Yes

### graph

- **Image:** ghcr.io/justinbeaudry/kb-graph@sha256:9ef1a92a7a38d15d3bfcdc5f86e73d5cc173a96d8581e269792f2126e6631729
- **Health check:** /livez

## Buckets

- **evidence**
- **backups**
- **journal**

## Documentation

# Deploy and Host KB - Private Knowledge Base on Railway

KB gives your AI tools a private memory they can build on. Keep useful decisions, findings, and their sources from AI sessions and other material, then retrieve relevant context when work resumes. Each deployment starts with its own storage and credentials.

## About Hosting KB - Private Knowledge Base

The template provisions an HTTPS API, a private background worker, and a private Neo4j graph with persistent storage. Separate private object buckets hold evidence, the deletion journal, and backups. Deploy into a fresh Railway project, supply an archive keyring for that installation, and run the KB installer from a source checkout. The installer sets up your first KB project and verifies access using a project-scoped credential. You can rerun it after an interruption.

## Common Use Cases

- Carry project decisions and lessons from one AI session to the next.
- Give authorized AI tools scoped access to relevant context and the evidence behind it.
- Collect useful material from notes, AI sessions, or the Web Clipper for later curation.

## Dependencies for KB - Private Knowledge Base Hosting

You need a Railway workspace with persistent storage, plus local tools and keys for the initial setup.

### Deployment Dependencies

- A Railway workspace that supports persistent volumes and object buckets.
- Bun and an authenticated Railway CLI with SSH access for first-time setup.
- An owner public key and a dedicated archive keyring. Keep the owner private key local and store a protected recovery copy of the keyring.

Follow the [Railway setup guide](https://github.com/JustinBeaudry/kb/blob/feat/portable-kb-bootstrap/deploy/railway/template.md) to configure and verify your installation.

## Why Deploy KB - Private Knowledge Base on Railway?

Railway provisions the services and storage together and gives the API an HTTPS endpoint. The same KB images support Docker Compose for self-hosting.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/kb-private-knowledge-base
