---
title: "Deploy MiroFish"
description: "Swarm-intelligence engine: LLM agents simulate reactions to forecast events"
category: "AI/ML"
url: https://railway.com/deploy/mirofish-1
---

# Deploy MiroFish

Swarm-intelligence engine: LLM agents simulate reactions to forecast events

**[Deploy MiroFish on Railway](https://railway.com/template/mirofish-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/mirofish-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### MiroFish https://cdn.jsdelivr.net/gh/666ghj/MiroFish@7657031ac01184afe2cb220f5ee3545573b5e843/frontend/public/icon.png

- **Source:** https://github.com/aalfath/mirofish-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

### Backend https://cdn.jsdelivr.net/gh/666ghj/MiroFish@7657031ac01184afe2cb220f5ee3545573b5e843/frontend/public/icon.png

- **Source:** https://github.com/aalfath/mirofish-railway-template
- **Health check:** /health

## Documentation

# Deploy and Host MiroFish on Railway

MiroFish is an open-source (AGPL-3.0) swarm-intelligence engine. You upload documents and describe a scenario. It builds a knowledge graph, turns the people and organisations in it into LLM agents, lets them post and react on simulated Twitter-like and Reddit-like platforms, and writes a prediction report you can question.

## About Hosting MiroFish

This template runs two services built from a public GitHub repo. **MiroFish** is the Vue web UI, served by Caddy behind a login with a generated password. **Backend** is upstream's Flask API and OASIS simulation runner on Python 3.11 with CPU-only PyTorch, reached over the private network. Its volume keeps projects, simulations, reports, logs and the model cache. You bring two keys: an OpenAI-compatible LLM key and a Zep Cloud key (free tier available). After deploying, open the MiroFish URL and log in as `admin` with `AUTH_PASSWORD` from that service's Variables tab. When we move the pinned version, Railway shows an update notice on your project.

## Common Use Cases

* Rehearse how the public might react to an announcement, policy draft or news story before you publish it
* Explore audience reactions to a product launch using personas drawn from your own briefing documents
* Run classroom or research experiments on opinion dynamics and LLM agent behaviour

## Dependencies for MiroFish Hosting

* An OpenAI-compatible LLM API key (OpenAI, DashScope, OpenRouter, DeepSeek or a self-hosted vLLM); the model must support JSON output
* A Zep Cloud API key from app.getzep.com for the knowledge graph and agent memory

### Deployment Dependencies

* MiroFish source: https://github.com/666ghj/MiroFish (pinned commit 7657031, 2026-10-02)
* Template repo, changelog and update notes: https://github.com/aalfath/mirofish-railway-template
* Zep Cloud: https://app.getzep.com/

### Implementation Details

* **Memory:** the web UI, uploads, graph building and reports run in 0.5 GB per service. The simulation step loads the 1.1 GB `Twitter/twhin-bert-base` recommender model, which needs about 2.2 GB of RAM, so give Backend at least 3 GB before you run simulations.
* **Optional settings** (add them on Backend): `OASIS_DEFAULT_MAX_ROUNDS` (default 10; more rounds mean more LLM calls), and `LLM_BOOST_API_KEY`, `LLM_BOOST_BASE_URL` and `LLM_BOOST_MODEL_NAME` for a second LLM used by the parallel Reddit agents.
* LLM and Zep usage are billed by those providers. Start small: upstream recommends fewer than 40 rounds.

## Why Deploy MiroFish on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying MiroFish on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## 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/mirofish-1
