Farama-Foundation/MAgent2

An engine for high performance multi-agent environments with very large numbers of agents, along with a set of reference environments

What it solves

MAgent2 provides a specialized platform for research into many-agent reinforcement learning. It solves the difficulty of simulating and managing large numbers of individual agents interacting within a shared gridworld environment, specifically for competitive or battle-based scenarios.

How it works

It functions as a library that creates grid-based environments where many pixel agents can operate simultaneously. It uses the PettingZoo API to standardize how these agents interact, making it easy for researchers to plug these environments into existing reinforcement learning workflows.

Who it’s for

This project is for researchers and developers working on artificial intelligence, specifically those studying collective intelligence, multi-agent systems, and reinforcement learning in complex, high-density environments.

Highlights

  • Supports large-scale simulations with many individual agents.
  • Built on the PettingZoo API for broad compatibility.
  • Actively maintained fork of the original MAgent codebase.
  • Includes ready-to-use reference environments for competitive scenarios.

Related

  • Project
  • Project
  • Project
  • Project
  • Project