New
Apps 6,408Makers 6,387This week 12
Promote your app−30%
Factoriax screenshot 1
1views in
the last 30 days

Factoriax

A GPU accelerated reinforcement learning simulator where the factory must grow!

Built with Claude Code

by mickeybeurskens · Unclaimed · from NLNetherlands · added Nov 3, 2026
no ratings0 comments

"The Factory must grow!"

Factoriax is a GPU accelerated factory building simulator for reinforcement learning research in the style of the game Factorio, written in JAX.

A Factoriax factory: miners on ore patches, belts that carry ore to furnaces and assemblers, and a player among them

Read the documentation here. You can find the paper here, and an online version of the paper with an interactive demo here.

Why Factoriax?

Factorio is quite a cool game with an enormous amount of emergent gameplay complexity, and it is interesting to use it as a benchmark to evaluate AI systems. However, even though the game is famous for being carefully optimized, training Reinforcement Learning agents on the base game is very slow. Factoriax is basically a simplified version of the core Factorio game mechanics that can run millions of game ticks per second on higher end GPUs (as of writing), while also running quickly enough to train models on local laptop GPUs. This allows researchers to test their RL ideas in Factoriax at scale, while allowing students to get familiar with RL concepts without the need for enormous GPU clusters.

And honestly, Factorio is just a lot of fun. Even though the Factoriax implementation of the original game mechanics is quite minimal, I hope it does some justice to the original game.

Installation

To install the most recent release from PyPi, run this command:

pip install factoriax

To install it with uv, run this command instead:

uv add factoriax

GPU Support

Factoriax installs the CPU version of JAX by default. Read the JAX documentation to find the version of JAX for your hardware. If your system supports CUDA13, run this command after you install Factoriax:

pip install "jax[cuda13]"

To do the same with uv, run this command:

uv pip install "jax[cuda13]"

Most Recent Build For Research

Install an editable build if you want the most recent commit on main. Install an editable build also if you want to change the source code of Factoriax while you work on your own project.

git clone https://github.com/mickeybeurskens/factoriax.git
pip install -e ./factoriax

To do the same with uv, run these commands:

git clone https://github.com/mickeybeurskens/factoriax.git
uv add --editable ./factoriax

Development Build

The development build keeps the development packages in sync. Do not use it if you include Factoriax as a dependency of your own project.

git clone https://github.com/mickeybeurskens/factoriax.git
uv sync

uv sync removes the GPU version of JAX. To keep the GPU version, run this command instead:

uv sync --extra cuda

Play The Game

Factoriax has a human playable interface, called the playground. It contains a human playable version of Factoriax and a level editor.

To open the playground, run this command:

python -m factoriax.playground

More information is available in the documentation.

Build An Environment

import jax

from factoriax.make import env_from_name

env, params = env_from_name("EasyRocket-v1")
obs, state = env.reset_env(jax.random.PRNGKey(0), params)

Three scenarios have an id: MinerBootstrap-v1, EasyRocket-v1, and Rocket-v1. The function factoriax.engine.envs.registry.list_scenarios returns each id with its specification.

Development

To run the tests, the linter, and the documentation build, run these commands:

uv run pytest
uv run ruff check factoriax tests

Citation

Factoriax was initially submitted in a workshop paper at the 19th European Workshop on Reinforcement Learning (EWRL 2026). If you use Factoriax in your research then please cite:

@inproceedings{beurskens2026factoriax,
  title     = {{Factoriax: A GPU-Accelerated Factorio-Style Simulator for Reinforcement Learning}},
  author    = {Beurskens, Mickey and Tomilin, Tristan and Sim{\~a}o, Thiago D.},
  booktitle = {19th European Workshop on Reinforcement Learning (EWRL)},
  year      = {2026},
  address   = {Lille, France},
  url       = {https://github.com/mickeybeurskens/factoriax}
}

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#reinforcement-learning · #simulation · #gpu