unity-technologies/ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 41 minutes ago
Added to GitGenius on September 3rd, 2026
Created on September 8th, 2017
Open Issues & Pull Requests: 21 (+0)
GitHub issues: Enabled
Number of forks: 4,486
Total Stargazers: 19,661 (+0)
Total Subscribers: 555 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 34.0 hours
Mean response time: 10.1 days
90th percentile: 30.1 days
Tracked items: 62

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 12% of issues opened in the past year have been closed. Three people close 61% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 21 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (73)
  • stale (69)
  • request (26)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Unity ML-Agents Toolkit is an open-source framework that enables games and simulations built in Unity to serve as training environments for intelligent agents using deep reinforcement learning and imitation learning.

The toolkit addresses the challenge of training AI agents by providing a bridge between game development and machine learning research. It supplies PyTorch-based implementations of state-of-the-art algorithms that allow developers to train agents directly within Unity environments. The approach works by exposing game state to a Python training API, enabling agents to learn through reinforcement learning, imitation learning from demonstrations, or neuroevolution. Trained agents can then be deployed back into games for NPC control, automated testing, or design evaluation.

Game developers and hobbyists should consider this toolkit if they need to train agents for 2D, 3D, or VR/AR games without building training infrastructure from scratch. It suits projects requiring single-agent, multi-agent cooperative, or competitive scenarios. The toolkit supports multiple deep reinforcement learning algorithms including PPO, SAC, and MA-POCA, along with imitation learning through behavioral cloning and GAIL. Researchers benefit from the simple Python API and the ability to wrap environments as gym or PettingZoo instances, making it compatible with standard reinforcement learning workflows. The included example environments and curriculum learning support help accelerate development of complex agent behaviors.

The project maintains active development with regular releases and comprehensive documentation hosted through Unity's official package documentation system. The toolkit provides native cross-platform support through its inference engine, allowing trained agents to run efficiently across different platforms without requiring the full training pipeline at runtime.