Software
Minari
By Farama Foundation, from github.com/Farama-Foundation/Minari (opens in a new tab)
- Humanoids and robot learning
- Tool
- Apache-2.0
Minari is a Python library for offline reinforcement learning research, offering a store of datasets to read from and tools to write new ones. It works like an offline counterpart of Gymnasium.
Facts
- GitHub stars
- 1,731read on 28 Nov 2026
- Last update
- 23 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit ffab07e (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Installs from PyPI with pip, with an optional extra for all dependencies.
- Provides a command line interface to list, download, and show remote and local datasets.
- Loads datasets such as D4RL/door/human-v2 and iterates over their episodes with observations, actions, rewards, and terminations.
- Collects data from a Gymnasium environment with a DataCollector wrapper and saves it as a new dataset.
- Integrates with the training libraries TorchRL, d3rlpy, and AgileRL.
- Includes a tutorial that recreates the Maze2D datasets from D4RL.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's website (opens in a new tab)
- Maintenance
- Active, last commit on 23 Nov 2026.
Use it
How to install it, in the creator's words: The project's website (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/Farama-Foundation/Minari (opens in a new tab)
- The version Robotheca readffab07e (opens in a new tab)
- Latest releasev0.6.0 (14 Nov 2026)
Robotheca read the repository at two versions: the summary at d88d29d and the facts and the README at ffab07e (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Farama Foundation, at commit ffab07e, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
Minari is a Python library for conducting research in offline reinforcement learning, akin to an offline version of Gymnasium or an offline RL version of HuggingFace's datasets library.
The documentation website is at minari.farama.org (opens in a new tab). We also have a public discord server (which we use for Q&A and to coordinate development work) that you can join here: https://discord.gg/bnJ6kubTg6 (opens in a new tab).
Installation
To install Minari from PyPI (opens in a new tab):
pip install minari
This will install the minimum required dependencies. Additional dependencies will be prompted for installation based on your use case. To install all dependencies at once, use:
pip install "minari[all]"
If you'd like to start testing or contribute to Minari please install this project from source with:
git clone https://github.com/Farama-Foundation/Minari.git --single-branch
cd Minari
pip install -e ".[all]"
Command Line API
To check available remote datasets:
minari list remote
To download a dataset:
minari download D4RL/door/human-v2
To check available local datasets:
minari list local
To show the details of a dataset:
minari show D4RL/door/human-v2
For the list of commands:
minari --help
Basic Usage
Reading a Dataset
import minari
dataset = minari.load_dataset("D4RL/door/human-v2")
for episode_data in dataset.iterate_episodes():
observations = episode_data.observations
actions = episode_data.actions
rewards = episode_data.rewards
terminations = episode_data.terminations
truncations = episode_data.truncations
infos = episode_data.infos
...
Writing a Dataset
import minari
import gymnasium as gym
from minari import DataCollector
env = gym.make('FrozenLake-v1')
env = DataCollector(env)
for _ in range(100):
env.reset()
done = False
while not done:
action = env.action_space.sample() # <- use your policy here
obs, rew, terminated, truncated, info = env.step(action)
done = terminated or truncated
dataset = env.create_dataset("frozenlake/test-v0")
For other examples, see Basic Usage (opens in a new tab). For a complete tutorial on how to create new datasets using Minari, see our Pointmaze D4RL Dataset (opens in a new tab) tutorial, which re-creates the Maze2D datasets from D4RL (opens in a new tab).
Training Libraries Integrating Minari
Citation
If you use Minari, please consider citing it:
@software{minari,
author = {Younis, Omar G. and Perez-Vicente, Rodrigo and Balis, John U. and Dudley, Will and Davey, Alex and Terry, Jordan K},
doi = {10.5281/zenodo.13767625},
month = sep,
publisher = {Zenodo},
title = {Minari},
url = {https://doi.org/10.5281/zenodo.13767625},
version = {0.5.0},
year = 2024,
bdsk-url-1 = {https://doi.org/10.5281/zenodo.13767625}
}
Minari is a shortening of Minarai, the Japanese word for "learning by observation".
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.
