Software
HighwayEnv
By Farama Foundation, from github.com/Farama-Foundation/HighwayEnv (opens in a new tab)
- Cars
- Simulator
- MIT
A collection of Gym-style environments for autonomous driving and tactical decision-making tasks, covering driving scenarios such as highways, intersections, roundabouts, and parking.
Facts
- GitHub stars
- 3,344read on 28 Nov 2026
- Last update
- 23 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Beginner
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 84291fd (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides 10 driving scenario families, including highway, intersection, merge, roundabout, parking, racetrack, and u-turn.
- Several environments also offer fast, continuous-control, connected-lane, multi-agent, generic, large, or oval variants.
- Environments are created through the Gymnasium API with gym.make and support reset and step for reinforcement learning loops.
- Agents can be trained with Stable Baselines3, and the documentation includes example trained agents using DQN, DDPG, Value Iteration, and MCTS.
- Installable from PyPI with pip or uv, primarily supporting Linux and macOS with best-effort Windows support.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. 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/HighwayEnv (opens in a new tab)
- The version Robotheca read84291fd (opens in a new tab)
- Latest releaseBug fixes regarding intersection env & enhancements regarding community contributions (7 Aug 2026)
Robotheca read the repository at two versions: the summary at 2a268f3 and the facts and the README at 84291fd (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 84291fd, under MIT (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)
Image (opens in a new tab) (opens in a new tab)
<em>An episode of one of the environments available in HighwayEnv.</em>
A collection of environments for autonomous driving and tactical decision-making tasks. Originally developed by Edouard Leurent (opens in a new tab) and currently maintained by Jin Huang (opens in a new tab).
The documentation website is at highway-env.farama.org (opens in a new tab), and we have a public discord server (which we also use to coordinate development work) that you can join here: https://discord.gg/bnJ6kubTg6 (opens in a new tab)
Installation
To install HighwayEnv, use:
pip install highway-env
or with uv (opens in a new tab):
uv add highway-env # adds to project dependencies and installs (preferred)
uv pip install highway-env # or install without adding to a project (pip install)
We support Linux and macOS primarily, with Windows support maintained on a best-effort basis.
Environments
HighwayEnv includes 10 driving scenario families: highway, intersection, exit, lane-keeping, merge, parking, racetrack, roundabout, two-way, and u-turn, with several environments also offering fast, continuous-control, connected-lane, multi-agent, generic, large, or oval variants. The full list with descriptions and configuration options is available in the documentation (opens in a new tab).
Usage
import gymnasium as gym
import highway_env
gym.register_envs(highway_env)
# Initialise the environment
env = gym.make("highway-v0", config={"lanes_count": 3}, render_mode="human")
# Reset the environment to generate the first observation
obs, info = env.reset()
for _ in range(1000):
# this is where you would insert your policy
action = env.action_space.sample()
# step (transition) through the environment with the action
# receiving the next observation, reward and if the episode has terminated or truncated
obs, reward, terminated, truncated, info = env.step(action)
# If the episode has ended then we can reset to start a new episode
if terminated or truncated:
obs, info = env.reset()
env.close()
See the documentation (opens in a new tab) for more examples including how to train agents with Stable Baselines3 and Google Colab notebooks. For examples of trained agents (DQN, DDPG, Value Iteration, MCTS), see the Agent Examples (opens in a new tab) page.
Documentation
Read the documentation online (opens in a new tab).
Development Roadmap
Here is the roadmap (opens in a new tab) for future development work.
Citating
If you use HighwayEnv in your work, please consider citing it with:
@misc{highway-env,
author = {Leurent, Edouard},
title = {An Environment for Autonomous Driving Decision-Making},
year = {2018},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/Farama-Foundation/HighwayEnv}},
}
Publications
A list of publications using HighwayEnv can be found in the documentation (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.