Skip to main content

Factorio Learning Environment

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

factorio_learning_environment-0.4.3.tar.gz (49.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file factorio_learning_environment-0.4.3.tar.gz.

File metadata

  • Download URL: factorio_learning_environment-0.4.3.tar.gz
  • Upload date:
  • Size: 49.3 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for factorio_learning_environment-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c87fc742a2bb4e0f73adc765823e22d95517558e41be137c8de873e558cce29e
MD5 00c4eea3c0ae4b3326e999a9747b100f
BLAKE2b-256 fb7d153523744f94785e26181c6000876fb244b1bb0b5e2465e45a13abed7a7f

See more details on using hashes here.

File details

Details for the file factorio_learning_environment-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: factorio_learning_environment-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for factorio_learning_environment-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 507badb0a0448aac513d630a89e6fe4406ed0467cf05c96b4afa4901469099a0
MD5 cb2603fd6a64a6f99b587c3b0a68ba67
BLAKE2b-256 fe391d8af5e0b88067ae322557c8d739afa1dbd4283f250a1c94a3bb81290903

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page