Complete Guide · Updated April 2026

MiroFish AI — Predict anything
with swarm intelligence

Everything you need to know about MiroFish: what it is, how to use it, how to set up API keys, and how to run it in your browser without installation.

Based on MiroFish v0.1 · GitHub: 666ghj/MiroFish · 39,000+ stars

Contents
  1. What is MiroFish?
  2. How does it work?
  3. How to use MiroFish
  4. API key setup
  5. Run in browser (no install)
  6. MiroFish offline
  7. How much does it cost?
  8. Use cases
  9. FAQ

What is MiroFish AI?

MiroFish is an open-source swarm intelligence simulation engine that predicts future outcomes by simulating how thousands of AI agents interact with each other. Instead of asking a single AI model to guess what happens next, MiroFish builds a miniature digital society and watches what emerges.

It was built in just ten days by Guo Hangjiang, a 20-year-old undergraduate student at Beijing University of Posts and Telecommunications. After hitting #1 on GitHub's global trending list in March 2026 — surpassing repositories from OpenAI, Google, and Microsoft — it secured $4.1 million in funding within 24 hours.

The core idea: Rather than extrapolating numbers, MiroFish builds a "parallel digital world" populated by agents with unique personalities, memories, and behavioral logic — then runs it forward at accelerated speed to generate predictions.

The project is fully open-source under the AGPL 3.0 license and available on GitHub at github.com/666ghj/MiroFish. The simulation engine is powered by OASIS, a peer-reviewed framework from the CAMEL-AI research community capable of scaling to one million agents.

Open Source AGPL 3.0 Python + Node.js 39,000+ GitHub stars $4.1M funded
Want to skip the setup? ThousandMinds lets you run MiroFish directly in your browser — no installation, no terminal, no Docker. Just add your API keys and start simulating. Try it free →

How does MiroFish work?

MiroFish operates through a five-stage pipeline that transforms any document into a full predictive simulation.

Stage 1 — Upload seed material

You provide a "seed document" — this can be a news article, financial report, policy draft, or even a novel. MiroFish accepts PDFs, text files, and markdown.

Stage 2 — Knowledge graph construction

Using GraphRAG (Graph-based Retrieval Augmented Generation), MiroFish extracts entities, relationships, and pressures from your document and builds a structured knowledge graph. This becomes the "reality" the simulation is built on.

Stage 3 — Agent generation

From the knowledge graph, MiroFish automatically generates thousands of AI agent personas. Each agent receives a unique personality, background, initial stance, and social relationships with other agents. Their long-term memory is managed by Zep Cloud.

Stage 4 — Dual-platform simulation

The simulation runs simultaneously on two platforms: a Twitter-like environment (fast, viral, short-form) and a Reddit-like environment (threaded, deep debate). Agents post, comment, argue, form opinions, and influence each other across both platforms.

Stage 5 — Prediction report

A dedicated ReportAgent analyzes the emergent outcomes and produces a structured, human-readable forecast. You can also directly query individual agents or inject new variables mid-simulation from a "god's-eye view."

Important: MiroFish produces plausible scenario explorations, not hard probability estimates. It's a tool for surfacing dynamics you might otherwise miss — not a crystal ball.

How to use MiroFish

There are three ways to use MiroFish, depending on your technical comfort level.

Option A — Use it in your browser (no installation)

The easiest way. Platforms like ThousandMinds host MiroFish for you — you just sign up, add your API keys, and start simulating immediately. No terminal, no Docker, no configuration files.

Try MiroFish in your browser at ThousandMinds — free to start, bring your own API keys.

Option B — Install locally (Mac / Linux / Windows)

For developers who want to run MiroFish on their own machine:

  1. Install Node.js 18+, Python 3.11+, and uv (Python package manager)
  2. Clone the repository: git clone https://github.com/666ghj/MiroFish.git
  3. Copy the example config: cp .env.example .env
  4. Add your API keys to the .env file (see API key setup below)
  5. Run: npm run setup:all then npm run dev
  6. Open http://localhost:3000 in your browser

Option C — Docker deployment

For server deployment or if you prefer containerized environments:

git clone https://github.com/666ghj/MiroFish.git cd MiroFish cp .env.example .env # Edit .env with your API keys docker compose up -d

MiroFish API key setup

MiroFish requires two external API services to function: an LLM provider and Zep Cloud for agent memory.

1. LLM API key (OpenAI or compatible)

MiroFish works with any OpenAI-compatible API. The recommended options are:

In your .env file, set these three variables:

LLM_API_KEY=sk-your-openai-key-here LLM_BASE_URL=https://api.openai.com/v1 LLM_MODEL_NAME=gpt-4o-mini

2. Zep Cloud API key

Zep Cloud manages the long-term memory of each agent — allowing them to remember previous simulation rounds and evolve their behavior over time. The free tier at app.getzep.com is sufficient for basic simulations.

ZEP_API_KEY=z_your-zep-key-here
Cost tip: The developers recommend starting with fewer than 40 simulation rounds to manage API costs. A 20-round simulation with 100 agents costs roughly $0.50–1.50 using gpt-4o-mini.

Run MiroFish in your browser — no installation

One of the most common questions about MiroFish is how to use it without installing Python, Node.js, Docker, or configuring anything on your computer.

The answer: use a hosted version. ThousandMinds provides MiroFish as a browser-based service — you bring your own API keys (OpenAI + Zep), and we handle all the infrastructure.

Method Installation required Technical knowledge Cost
ThousandMinds (hosted) None None Free + API costs
Local install (npm) Node.js, Python, uv Terminal required Free + API costs
Docker Docker Desktop Command line Free + API costs

Run MiroFish in your browser right now

No installation. No terminal. Just sign up, add your API keys, and start your first simulation in under 5 minutes.

Start for free →

MiroFish offline — can you run it without internet?

MiroFish itself can run locally on your machine, but it requires an active internet connection during simulations because it calls external LLM APIs (OpenAI or similar) and the Zep Cloud memory service for each agent interaction.

A fully offline version would require:

Some community forks have added support for local LLMs. For most users, running it locally via npm or Docker while connected to the internet is the practical "offline" experience — no cloud hosting dependency, but API calls still go out.


How much does MiroFish cost?

MiroFish itself is completely free and open-source. The costs come from the external APIs it uses.

LLM API costs (your OpenAI bill)

gpt-4o-mini is the most cost-efficient option. Avoid gpt-4o for large simulations unless budget is not a concern.

Zep Cloud costs

The free tier at Zep Cloud includes a monthly episode quota that covers simple simulations. For heavy usage, paid plans start at around $20/month.

Hosted access (ThousandMinds)

Using ThousandMinds to run MiroFish in your browser costs €10/month — you bring your own API keys so there are no hidden LLM charges on top. Your API costs go directly to OpenAI/your chosen provider.


What can you use MiroFish for?

MiroFish is described as a tool that can "predict anything" — here are the most practical applications:

Public opinion simulation

Upload a news article or press release. Simulate how different population segments will react, which narratives will gain traction, and where polarization might emerge — before publishing.

Market sentiment analysis

Feed in a financial signal (earnings report, Fed announcement, regulatory change). Watch simulated traders, analysts, and retail investors react and predict how sentiment evolves.

PR crisis management

Test how your brand handles a crisis scenario in simulation before it happens. Adjust messaging strategies and see which responses de-escalate fastest.

Policy testing

Governments, think tanks, and researchers can simulate how a proposed policy change ripples through a population before implementation.

Marketing strategy

Upload a campaign brief and simulate how your target audience reacts before spending any budget.

Creative exploration

The MiroFish team famously fed the first 80 chapters of Dream of the Red Chamber (an 18th-century Chinese novel with a lost ending) and simulated how the story would conclude based on character behavior.


Frequently asked questions

What is the quickest way to use MiroFish?
The fastest option is a hosted platform like ThousandMinds — sign up, enter your OpenAI and Zep Cloud API keys, and you can run your first simulation in under 5 minutes with zero installation. If you prefer self-hosting, the Docker route is fastest: clone the repo, fill in your .env file, and run docker compose up -d. The npm local install takes slightly longer due to Python dependency setup.
Is MiroFish available in English?
The original MiroFish interface from GitHub is primarily in Chinese. The README-EN.md provides English documentation, but the UI itself remains in Chinese. Hosted platforms like ThousandMinds are building English-language interfaces on top of the MiroFish engine.
Is MiroFish safe? Can I trust it with my API keys?
The original MiroFish is open source — you can inspect every line of code on GitHub. If you self-host it, your API keys never leave your own machine. When using hosted platforms, look for ones that encrypt keys at rest and use HTTPS — ThousandMinds encrypts all stored keys with AES-256.
How accurate are MiroFish predictions?
MiroFish has not published benchmarks comparing its predictions to real-world outcomes. The honest framing is that it surfaces plausible scenarios and dynamics — it's a tool for exploring "what if" questions, not a system that delivers probability estimates. One developer reportedly used it with a Polymarket trading bot and reported profit, but individual results vary significantly.
What is the difference between MiroFish and ChatGPT?
ChatGPT uses a single AI model to answer questions based on its training data. MiroFish spawns thousands of autonomous AI agents that interact with each other inside a simulated world — the prediction emerges from their collective behavior, not from one model's guess. Think of ChatGPT as asking one expert, and MiroFish as running a social simulation with thousands of people.
Can I use MiroFish with models other than OpenAI?
Yes. MiroFish works with any LLM that exposes an OpenAI-compatible API. This includes Alibaba Qwen (recommended by the developers), OpenRouter, Together AI, Groq, and local models via Ollama. You simply change the LLM_BASE_URL in your configuration.
Is there a MiroFish app for iPhone or Android?
There is no official MiroFish mobile app. The best mobile experience is through browser-based hosted platforms — ThousandMinds is accessible from any mobile browser without any installation.
What is Zep Cloud and why does MiroFish need it?
Zep Cloud is a memory service for AI agents. MiroFish uses it to give each agent persistent long-term memory — so agents remember what happened in earlier rounds and can evolve their opinions and behavior over time. Without Zep, agents would have no continuity between simulation steps. The free tier at app.getzep.com is enough for basic simulations.
Where can I find MiroFish on Reddit?
MiroFish discussions can be found in the GitHub Discussions tab at github.com/666ghj/MiroFish/discussions, as well as on Reddit in communities like r/MachineLearning, r/artificial, and r/LocalLLaMA. Search for "MiroFish" on Reddit to find the latest threads.

Ready to try MiroFish without the setup?

ThousandMinds gives you browser-based access to MiroFish. Bring your OpenAI and Zep keys — we handle everything else.

Start your first simulation →