# Stable Baselines3

> Reliable reinforcement learning algorithms in PyTorch

Source: https://talira.ai/catalog/stable-baselines3-qsc1m7fr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / ml / reinforcement learning](https://talira.ai/categories/ai/ml/reinforcement-learning)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [DLR-RM](https://talira.ai/orgs/dlr-rm.md)

Stable Baselines3 (SB3) is an MIT Python library of tested reinforcement learning algorithms in PyTorch, the next major version of Stable Baselines. It implements A2C, DDPG, DQN, HER, PPO, SAC and TD3 behind one common interface, with custom environments and policies, Dict observation spaces, callbacks, TensorBoard logging and integrations with Weights & Biases and Hugging Face. Newer and experimental algorithms (Recurrent PPO, CrossQ, TQC, QR-DQN) are in the separate SB3 Contrib package, and RL Baselines3 Zoo is its training framework with tuned hyperparameters.

## Links

- Website: https://stable-baselines3.readthedocs.io/
- GitHub: https://github.com/DLR-RM/stable-baselines3

## Problems it solves

- train a PPO agent on my own environment in Python
- reliable implementations of reinforcement learning algorithms to build on
- compare RL algorithms on a Gym environment without writing them myself

## Features

- A2C, DDPG, DQN, HER, PPO, SAC and TD3 behind one interface
- custom environments, policies and callbacks
- TensorBoard logging, Weights & Biases and Hugging Face integrations
- performance of each algorithm tested and reported

## Limitations

- Development now focuses on bug fixes and maintenance; newer algorithms go to SB3 Contrib.[^1]
- Needs Python 3.11 or later and PyTorch 2.8 or later.[^1]

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.63, adoption 0.83, momentum 0.68, community 0.90, backing 0.30, extensibility 0.00.

- last commit yesterday
- 5 commits in the last 90 days
- latest release v2.9.2 34 days ago
- 14.1k GitHub stars
- 175 contributors
- backed by DLR-RM

## Alternatives

- [PettingZoo](https://talira.ai/catalog/pettingzoo-31a1gxaq.md): Python library of multi-agent reinforcement learning environments with a standard API, the multi-agent counterpart of Gymnasium.
- [Gymnasium](https://talira.ai/catalog/gymnasium-zzeh3njn.md): The standard Python API for single-agent reinforcement learning environments, formerly OpenAI Gym
- [Unity ML-Agents Toolkit](https://talira.ai/catalog/unity-ml-agents-toolkit-tk6bd28y.md): An open source toolkit that turns Unity scenes into environments for training game and simulation agents with reinforcement and imitation learning.
- [Agent Lightning](https://talira.ai/catalog/agent-lightning-ct9367pe.md): Microsoft's lightweight reinforcement learning framework for training LLM agents inside their real harnesses
- [FinRL](https://talira.ai/catalog/finrl-scxcxhsm.md): Deep reinforcement learning framework for quantitative trading research

## Sources

[^1]: https://github.com/DLR-RM/stable-baselines3/blob/master/README.md (checked 30 Nov 2026)
[^2]: https://github.com/DLR-RM/stable-baselines3/blob/master/LICENSE (checked 30 Nov 2026)
