---
title: "Deploy Acontext Agent Context Platform"
description: "Agent context management with sessions, queues and object storage."
category: "AI/ML"
url: https://railway.com/deploy/acontext-agent-context-platform
---

# Deploy Acontext Agent Context Platform

Agent context management with sessions, queues and object storage.

**[Deploy Acontext Agent Context Platform on Railway](https://railway.com/template/acontext-agent-context-platform)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/acontext-agent-context-platform/manifest.json

- **Creator:** orenaksakal
- **Category:** AI/ML

## Template content

### rabbitmq

- **Image:** rabbitmq:4-management@sha256:ffd1b50c522ad20172ffd6716a2f41db375c7269560c8f3fb9a694e210ef0852

### acontext

- **Source:** orenaksakal/railway-templates
- **Health check:** /healthz
- **Public domain:** Yes

### postgres

- **Image:** pgvector/pgvector:pg16@sha256:ccc6e83d6e35e931dc7c5def2022729d5a6c370318d099181995567ff1fb4d6b

### ui

- **Image:** ghcr.io/memodb-io/acontext-ui:latest@sha256:b303d1f1894bbe356e4f70483c06a7bfe9c38bcf46a5fff5de2d8826e87ef436

### api

- **Image:** ghcr.io/memodb-io/acontext-api:latest@sha256:e6e6b4a15999db7447fc9e460b4e18400c742e1bf1989d9bc29abd030ccd9341
- **Public domain:** Yes

### storage

- **Source:** orenaksakal/railway-templates
- **Public domain:** Yes

### jaeger

- **Image:** jaegertracing/all-in-one:1.75.0@sha256:e493bff54e457ba5827f82418d744a322165cd5d46146607fb76489bfb2a8885

### core

- **Source:** orenaksakal/railway-templates

### redis

- **Image:** redis:7.4@sha256:71da9275c5f3fcb97d0fa0c8c5b36cc995327265420f17a04bfd544f458059f7
- **Start command:** `sh -c 'exec redis-server --bind 0.0.0.0 :: --appendonly yes --maxmemory-policy noeviction --requirepass "$REDIS_PASSWORD"'`

## Documentation

# Deploy and Host Acontext Agent Context Platform on Railway

Agent context management with sessions, queues and object storage.

**Deployment template.** Deployment incurs Railway charges. Supply your own required model, search and external-service credentials; no example provider credentials are included.

## About Hosting Acontext Agent Context Platform

This template provisions 9 services in one Railway project, with image digests or upstream source revisions pinned, generated internal credentials, linked environment variables and the persistent paths listed below. Public HTTP routes use Railway HTTPS. SQL and internal dependency endpoints stay private. Keep stateful services single-replica and configure your own backup policy.

## Live verification — 2026-09-08

All nine services started. Core database/queue initialization, API health, authenticated session create/list, public UI and gateway authentication passed. Provider-backed processing, external Cloudflare sandbox execution, full UI administration, signed assets and restore were not tested.

## Setup

Enter core.LLM_API_KEY and core.CLOUDFLARE_WORKER_URL for an existing Acontext sandbox Worker. Worker deployment is a separate prerequisite. Open acontext with the gateway access credentials. Create/select a project in the dashboard and use its project API key for API clients. ROOT_API_BEARER_TOKEN is an internal administrative credential; never put it into browser code.

## Dependencies for Acontext Agent Context Platform Hosting

### Deployment Dependencies

| Service | Source | Persistent volume | Public HTTP |
|---|---|---|---|
| postgres | pgvector/pgvector:pg16 (digest pinned) | /var/lib/postgresql/data | Private only |
| redis | redis:7.4 (digest pinned) | /data | Private only |
| rabbitmq | rabbitmq:4-management (digest pinned) | /var/lib/rabbitmq | Private only |
| storage | repository adapter: shared/round4-storage/Dockerfile | /data | 9000 |
| jaeger | jaegertracing/all-in-one:1.75.0 (digest pinned) | None | Private only |
| core | repository adapter: templates/acontext/Core.Dockerfile | None | Private only |
| api | ghcr.io/memodb-io/acontext-api:latest (digest pinned) | None | 8029 |
| ui | ghcr.io/memodb-io/acontext-ui:latest (digest pinned) | None | Private only |
| acontext | repository adapter: shared/round4-gateway/Dockerfile | None | 8080 |

## Required inputs

`core.LLM_API_KEY`, `core.CLOUDFLARE_WORKER_URL`

Generated credentials: `postgres.POSTGRES_PASSWORD`, `redis.REDIS_PASSWORD`, `rabbitmq.RABBITMQ_DEFAULT_PASS`, `storage.MINIO_ROOT_USER`, `storage.MINIO_ROOT_PASSWORD`, `api.ROOT_API_BEARER_TOKEN`, `api.ROOT_SECRET_PEPPER`, `acontext.ACCESS_PASSWORD`. Keep them private and preserve relevant encryption keys with backups. Every editor variable includes a description.

## Scope and limitations

Nine services. MinIO replaces upstream SeaweedFS for S3-compatible storage; bucket initialization is included. Public S3 endpoint supports signed asset URLs while the core uses the private endpoint. Jaeger is private, memory-only and capped at 10,000 traces; traces are intentionally ephemeral. Core config is an empty mapping so environment variables supply credentials. Sandbox execution cannot work until the external Worker is configured. Validate current UI/API root-token and pepper handling before release.

## Recommended acceptance checks

Clean image builds; DB migrations and vector extension; API auth; context/session lifecycle; worker queue processing; S3 upload and signed download; Cloudflare sandbox execution; UI login; private trace access; persistence and restore.

## Operations

Keep database and internal service endpoints private. Railway provides HTTPS for the explicitly exposed HTTP services. Back up the listed persistent volumes and database exports, preserve encryption keys, and test a restore before relying on this instance. Review upstream migrations before upgrades. Single-volume services use one replica; no multi-region or high-availability guarantee is made. A gateway health response only proves the gateway is alive.

## Sources

- [Upstream project](https://github.com/memodb-io/Acontext)
- [Reviewed source snapshot](https://github.com/memodb-io/Acontext/tree/259d73bfdebeed35ec2d4211ddc060a2d4126bc6)
- Image digest pins: `images.round4.lock.json` in the template source repository. Source snapshots are research references; image digests do not prove the image was built from that same commit.
- Base-image pins do not lock every package installed by apt/apk/pip. See the verification scope above before relying on this deployment.

## Common Use Cases

- Store agent sessions and manage context through the Acontext API.
- Connect your own model provider and external sandbox Worker to context processing.

## Why Deploy Acontext Agent Context Platform on Railway?

Railway groups service deployment, logs, private networking, generated environment references and persistent volumes in one project. This community template supplies the configuration and setup notes; Railway resource charges and external provider costs remain separate. No fixed cost or capacity guarantee is made.


## 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/acontext-agent-context-platform
