Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Run OpenAI Gym environments on an external process or remote machine using gRPC.

Project description

Run OpenAI Gym environments on an external process or remote machine using gRPC.


Install Gym (not required if using Docker) and run:

pip install gymx

It is recommended to use a virtual environment.



To start the server run:

python -m gymx

To use a different port run:

python -m gymx --port=54321

You can also run the server using Docker:

docker run -p 54321:54321 album/gymx


Inside your application use:

from gymx import Env

env = Env('CartPole-v0')

To specify the server address use:

env = Env('CartPole-v0', address='localhost:54321')


  • env.reset(): Reset the environment's state. Returns observation.
  • env.step(action): Step the environment by one timestep. Returns observation, reward, done, next_episode. Unlike the original gym API, it automatically resets the environment when done and returns next episode's observation instead of info.

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
gymx-0.0.1.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page