Skip to content
saudademjj edited this page Dec 5, 2026 · 2 revisions

Factorio AI Commander

Factorio AI Commander is an AI engineer teammate for Factorio 2.1 and Space Age. Type what you want in chat, for example @ai build 0.5/s green science, and it reads the map, works out the ratios, picks a site, lays out the production lines and builds them with its own character. No cheats are needed, and achievements stay enabled.

This wiki is a practical guide. The README gives the overview, and the docs/ folder holds the reference pages that ship with the code.

Status: under active development. Expect rough edges, and back up your saves.

Start here

I want to… Page
Play on Windows with the least setup Getting Started on Windows
Use the command line, Linux or a dedicated server Command-Line Setup
Choose a language model and set its API key Model Providers
Drive it from Claude Desktop, Cursor or Claude Code Using MCP Clients
Learn the chat commands, map tags and mod settings Playing with the AI
Change config.toml or environment variables Configuration
Fix a problem Troubleshooting
Build from source or cut a release Building and Releasing

中文说明:简体中文

How the pieces fit

 Factorio 2.1 ── factorio_ai_bridge (Lua mod)
                        ▲
                        │ RCON (/fai JSON-RPC)
                        ▼
 fai (Rust) ── fai-agent  ◄── language model   ← "@ai ..." in chat
            ├─ fai-mcp    ◄── MCP clients
            └─ fai-launcher (Windows GUI)
  • factorio_ai_bridge is a small mod inside the game. It runs the build queue, controls the AI character and reports events. It stays deterministic, so multiplayer games keep in sync.
  • fai is a set of native programs that plan and drive the work over RCON: a CLI (fai), the in-game agent (fai-agent), an MCP server (fai-mcp), an RCON self-test (fai-rcon) and a Windows launcher (fai-launcher).

Module layout: docs/ARCHITECTURE.md. All 15 tools and their parameters: docs/TOOLS.md.

Clone this wiki locally