whatisgithub

What is lerobot?

sergiomorozco/lerobot — explained in plain English

Analysis updated 2026-05-18

0PythonAudience · researcherComplexity · 4/5LicenseSetup · hard

In one sentence

A Python library from Hugging Face for training and deploying real world robots using shared datasets, models, and a common hardware interface.

Mindmap

mindmap
  root((LeRobot))
    What it does
      Controls diverse robot hardware
      Standardizes robotics datasets
      Trains state of the art policies
    Tech stack
      Python
      PyTorch
      Hugging Face Hub
    Use cases
      Train imitation learning policies
      Control low cost robot arms
      Share robotics datasets publicly
    Audience
      Robotics researchers
      ML engineers
    Ecosystem
      Wide hardware support
      Extensible robot interface
      Discord community

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Train a robot policy using imitation learning or reinforcement learning with shared, ready to use tools.

USE CASE 2

Control different robot hardware, from low cost arms to humanoids, through one common Python interface.

USE CASE 3

Browse and stream large robotics datasets hosted on the Hugging Face Hub without downloading them all first.

USE CASE 4

Add support for a custom robot by implementing LeRobot's Robot interface and reusing its training tools.

What is it built with?

PythonPyTorchHugging Face Hub

How does it compare?

sergiomorozco/lerobot0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyhardmoderatemoderate
Complexity4/52/54/5
Audienceresearchergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Full use requires compatible robot hardware and PyTorch, though the base package installs easily via pip.

Use freely, including commercially, as long as you follow the Apache 2.0 license terms and keep attribution notices.

So what is it?

LeRobot is a Python library from Hugging Face aimed at making real world robotics research and building easier to get into, by providing shared models, datasets, and tools built on PyTorch. The core idea is to lower the barrier for people who want to work with robots, whether that means training a robot to perform a task or contributing data and models that others can reuse. The library gives you a single, hardware agnostic way to control very different robots through a common Python interface, ranging from inexpensive robotic arms to more advanced humanoid robots. It supports a long list of hardware out of the box, including SO100, LeKiwi, Koch, HopeJR, several other robot arms, gamepads, keyboards, and phones, and it is built to be extended so you can plug in your own custom robot using the same interface. A major part of the project is the LeRobotDataset format, a standardized way of storing robotics data using video files for what the robot sees and separate data files for its state and actions, all hosted on the Hugging Face Hub so people can browse and stream large robotics datasets without downloading everything up front. The library also includes tools for editing these datasets, such as deleting episodes or merging datasets together. On the modeling side, LeRobot implements a wide range of policies in PyTorch, covering imitation learning, reinforcement learning, vision language action models, world models, and reward models, with training handled through a single command line script once a dataset and policy type are chosen. Installation is done through pip, and after that a single command reports information about your setup. The project is released under the Apache 2.0 license and has an active Discord community for support.

Copy-paste prompts

Prompt 1
Walk me through installing LeRobot with pip and running the info command.
Prompt 2
Explain how to load and inspect a LeRobotDataset from the Hugging Face Hub.
Prompt 3
Show me how to train a policy on my own robot data using the lerobot-train command.
Prompt 4
Help me implement the Robot interface to connect a custom robot arm to LeRobot.

Frequently asked questions

What is lerobot?

A Python library from Hugging Face for training and deploying real world robots using shared datasets, models, and a common hardware interface.

What language is lerobot written in?

Mainly Python. The stack also includes Python, PyTorch, Hugging Face Hub.

What license does lerobot use?

Use freely, including commercially, as long as you follow the Apache 2.0 license terms and keep attribution notices.

How hard is lerobot to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is lerobot for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.