MiniGrid — Minimalistic Gridworld Environments
Farama Foundation's Apache-2.0 fast gridworld RL environments for goal-conditioned, partially observable, and language-conditioned agent research.
MiniGrid — Minimalistic Gridworld Environments
MiniGrid is a collection of fast, minimalistic grid-world environments for reinforcement learning research, maintained by the Farama Foundation. Environments are partially observable, goal-conditioned, and designed to test key capabilities of intelligent agents: navigation, object manipulation, memory, planning, and instruction following. BabyAI (included) extends MiniGrid with natural language instruction following.
Key Features
- 30+ gridworld environments with randomized level generation
- Partial observability: agents see a small ego-centric view of the grid
- Object types: doors, keys, balls, boxes — enabling pick-up, unlock, and carry tasks
- Mission strings: natural language goal descriptions for language-conditioned RL
- Extremely fast: Python-only, no C++ — thousands of steps/second
- Gymnasium-compatible API
Quick Start
pip install minigrid
import gymnasium as gym
env = gym.make("MiniGrid-DoorKey-8x8-v0", render_mode="human")
obs, info = env.reset()
print("Mission:", obs["mission"]) # e.g. "open the door"
for _ in range(500):
action = env.action_space.sample() # 0-6: turn left/right, forward, pickup, drop, toggle, done
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, info = env.reset()
env.close()
npx ai-supply add minigrid-gridworld-environments
Curated mirror of the open-source MiniGrid (Apache-2.0). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/minigrid-gridworld-environments/check). Click a policy:
Consume MiniGrid — Minimalistic Gridworld Environments programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/minigrid-gridworld-environments
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/minigrid-gridworld-environments/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add minigrid-gridworld-environments
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/minigrid-gridworld-environments/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "minigrid-gridworld-environments" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.