Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Godot
  3. GodotAIGym

GodotAIGym

MITPython

Turn Godot projects into OpenAI Gym environments for training reinforcement learning models with PyTorch via shared memory.

Visit WebsiteGitHubGitHub
235 stars27 forks0 contributors

What is GodotAIGym?

GodotAIGym is an open-source framework that transforms Godot Engine projects into OpenAI Gym-compatible environments for training reinforcement learning models. It solves the problem of integrating complex, real-time simulations with machine learning pipelines by using shared memory for efficient communication between Godot and PyTorch. This allows developers to use Godot's 3D capabilities as a dynamic training ground for AI agents.

Target Audience

Machine learning researchers and developers working on reinforcement learning who want to use Godot's simulation environment for training, as well as Godot developers interested in integrating AI into their projects.

Value Proposition

Developers choose GodotAIGym because it provides a unique bridge between Godot's powerful game engine and PyTorch's ML ecosystem, enabling high-performance RL training with custom 3D environments without the overhead of traditional communication methods.

Overview

Communicating with godot engine through shared memory

Use Cases

Best For

  • Training reinforcement learning agents in custom 3D Godot simulations
  • Integrating Godot game environments with PyTorch machine learning pipelines
  • Research projects requiring real-time interaction between AI models and game engines
  • Developing AI for Godot-based robotics or physics simulations
  • Creating reproducible RL experiments using Godot as the environment backend
  • Building and testing RL algorithms with visual feedback from Godot

Not Ideal For

  • Developers working on Windows or macOS platforms
  • Projects using newer versions of Godot Engine (e.g., 4.x) or PyTorch
  • Teams seeking plug-and-play integration without compiling Godot from source
  • Non-reinforcement learning applications or real-time game AI without training phases

Pros & Cons

Pros

Efficient Data Exchange

Uses Boost interprocess for shared memory communication, enabling high-speed, low-latency transfer between Godot and Python, crucial for real-time RL training.

Seamless Gym Integration

Converts Godot projects directly into OpenAI Gym environments, allowing for standard RL workflows and compatibility with existing libraries.

PyTorch Compatibility

Designed specifically for PyTorch 1.10, facilitating direct use of this popular ML framework for model building and training.

End-to-End Pipeline

Provides tools for training models in Python and deploying them back to Godot, as demonstrated in the InvPendulum tutorial for a complete RL cycle.

Cons

Platform Limitation

Currently only runs on Linux systems, as stated in the README, which excludes developers on Windows or macOS.

Version Lock-in

Requires specific versions of Godot (3.2) and PyTorch (1.10), which are outdated and may not support newer features or updates.

Complex Setup Process

Necessitates compiling Godot from source and installing Boost libraries, making installation error-prone and time-consuming compared to simpler integrations.

Limited Ecosystem

The project is relatively niche, with dependencies on older software and no native support for GDNative or other modern Godot extensions, as noted in the TODO list.

Frequently Asked Questions

Quick Stats

Stars235
Forks27
Contributors0
Open Issues10
Last commit3 years ago
CreatedSince 2019

Tags

#openai-gym#ai-training#shared-memory#linux#machine-learning#reinforcement-learning#godot-engine#pytorch

Built With

L
Linux
P
Python

Links & Resources

Website

Included in

Godot9.7k
Auto-fetched 1 day ago

Related Projects

SimulaVRSimulaVR

Linux VR Desktop

Stars3,209
Forks112
Last commit28 days ago
godot-pythongodot-python

Python support for Godot 🐍🐍🐍

Stars2,097
Forks154
Last commit7 months ago
WaterwaysWaterways

A tool to generate river meshes with flow and foam maps based on bezier curves.

Stars1,337
Forks94
Last commit10 months ago
Open Source A-RPG DemoOpen Source A-RPG Demo

A-RPG demo made with Godot, MIT-licensed, from our Godot course

Stars1,276
Forks128
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub