Deploy MiroFish
Swarm-intelligence engine: LLM agents simulate reactions to forecast events
Just deployed
Just deployed
/app/backend/uploads
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-baserecommender 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), andLLM_BOOST_API_KEY,LLM_BOOST_BASE_URLandLLM_BOOST_MODEL_NAMEfor 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.
Template Content
LLM_API_KEY
Required. API key for your OpenAI-compatible LLM provider (billed by that provider).
ZEP_API_KEY
Required. Zep Cloud API key (app.getzep.com) for the knowledge graph and agent memory.

