Skip to main content

Factorio Learning Environment

Leaderboard | Paper | Website | Documentation | Discord (#factorio-learning-env)

An open source framework for developing and evaluating LLM agents in the game of Factorio.

Claude Opus 4.1 Plays Factorio

Quick Links

Installation

Prerequisites

  • Docker
  • Python 3.10+
  • Factorio (version 2.0.73 or later), only for optional rendering.
# Core FLE SDK package
pip install factorio-learning-environment

# With optional features
pip install factorio-learning-environment[eval]      # For running experiments
pip install factorio-learning-environment[mcp]       # For MCP protocol support  
pip install factorio-learning-environment[psql]      # For PostgreSQL support
pip install factorio-learning-environment[eval,mcp,psql]  # All features

# Using uv (recommended)
uv sync

Quickstart

Use the CLI:

# Activate venv
source .venv/bin/activate

# Start Factorio cluster
fle cluster start

# Run evaluation trajectories (requires [eval] dependencies)
fle eval --config configs/gym_run_config.json

Environment

FLE is an agent evaluation environment built on the game of Factorio, a popular resource management simulation game.

Agents interact with FLE by code synthesis through a REPL (Read-Eval-Print-Loop) pattern:

  1. Observation: The agent observes the world through the output streams (stderr/stdout) of their last program.
  2. Action: The agent generates a Python program to perform their desired action.
  3. Feedback: The environment executes the program, assigns variables, add classes/functions to the namespace, and provides an output stream.

Contributing

Join our team and contribute to one of the AI research community's most challenging problems - building open-ended / unsaturateable evals for post-AGI frontier models. If you want to contribute, please read CONTRIBUTING.md first.

Ask DeepWiki

Metadata

Release files for factorio-learning-environment 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for factorio-learning-environment 0.4.3
File Size Uploaded Provenance Actions
factorio_learning_environment-0.4.3.tar.gz 49.3 MB Without provenance Details for factorio_learning_environment-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for factorio-learning-environment 0.4.3
File Interpreter ABI Platform Actions
factorio_learning_environment-0.4.3-py3-none-any.whl Python 3 none any Details for factorio_learning_environment-0.4.3-py3-none-any.whl

Total release size: 51.5 MB

Release files / factorio_learning_environment-0.4.3.tar.gz

Download URL factorio_learning_environment-0.4.3.tar.gz
Size 49.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c87fc742a2bb4e0f73adc765823e22d95517558e41be137c8de873e558cce29e
BLAKE2b-256 checksum
How to use checksums
fb7d153523744f94785e26181c6000876fb244b1bb0b5e2465e45a13abed7a7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / factorio_learning_environment-0.4.3-py3-none-any.whl

Download URL factorio_learning_environment-0.4.3-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
507badb0a0448aac513d630a89e6fe4406ed0467cf05c96b4afa4901469099a0
BLAKE2b-256 checksum
How to use checksums
fe391d8af5e0b88067ae322557c8d739afa1dbd4283f250a1c94a3bb81290903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for factorio-learning-environment 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page