Library / SDK
autorope/donkeycar avatar
autorope/donkeycar

Donkeycar: a Python self-driving stack you assemble yourself

Open source hardware and software platform to build a small scale self driving car.

3,548 stars1,367 forksPythonMIT

At a glance

What is it?
Donkeycar is an MIT-licensed Python library and hardware reference for building a small self-driving car. It suits hobbyists, students and university labs that want a modular parts pipeline they can edit, not a sealed product.
Who is it for?
Adopt Donkeycar if you want a small car you can teach with a camera, a game controller and a Python config file, and you are willing to read docs.donkeycar.com rather than expect a single installer. Do not adopt it if you need a supported commercial vehicle, a guaranteed inference latency, or an actively developed project with a published support contract: the last push was on 2026-09-19 and the packaging metadata still labels the project Beta.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 5 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • autorope/donkeycar3,548 ★ · +40
Star history
Repository2026-09-242026-11-24
autorope/donkeycar3.5k3.5k

40 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem Donkeycar solves, and who it is actually for

Building a self-driving toy car from scratch means writing a camera capture loop, a controller reader, a motor driver, a data recorder and a training script before you can test a single idea. Donkeycar ships those as one library. The README calls it a minimalist and modular self driving library for Python, developed for hobbyists and students, and says it is used at high school and university level. That framing is accurate about the audience: this is not a product for a fleet operator.

The unit of work is a car you own. You supply the chassis, the on-board computer (the README names the Raspberry Pi as the preferred one, and the packaging metadata carries a separate nano extra for Jetson boards), the camera and the steering hardware. Donkeycar supplies the software that turns those into a vehicle loop. The README lists the intended uses plainly: build a robot and teach it to drive itself, experiment with autopilots, GPS, computer vision and neural networks, and compete in races such as DIY Robocars.

Where it earns its place is the middle of the learning curve. A student who has never recorded a labelled driving dataset can record one, train a model on it and watch the car drive, without writing the plumbing. A researcher who wants to swap the model can replace one part in a pipeline instead of forking a whole application.

The parts pipeline: how a Donkeycar template actually runs

A Donkeycar application is a pipeline of parts. The README describes them as running in order on each pass through the vehicle loop, reading inputs and writing outputs to the vehicle's software memory as they run. That is the whole architecture, and it is worth being precise about the consequences.

On each loop iteration, one part might grab a frame from the camera and write it into memory. Another reads a game controller and writes steering and throttle. A third reads the image and writes a steering and throttle prediction. A fourth reads whichever of those values is active and drives the motors. Because parts communicate through shared memory rather than by calling each other, you can insert, remove or reorder them by editing the template, and a part written for one car often drops into another.

The costs of that design are real. Ordering is your responsibility, and a part that reads a key nobody has written yet will not announce itself as a design error. The README points at a list of supported part categories: cameras including 3D cameras and lidar, GPS receivers, game controllers (PS3, PS4, XBox, WiiU, Nimbus and Logitech Bluetooth, plus any controller that works with Raspberry Pi), drivetrain actuators for both the ESC and steering servo layout common to RC cars and differential drive, and stores for telemetry data such as camera images, steering and throttle.

The README also notes a WebUI that accepts browser-compatible game controllers and an on-screen touch controller for phones. There is a simulator, which the README presents as a way to experiment with self-driving before you build a robot. That matters for anyone deciding whether to buy parts first.

Installing Donkeycar and running your first vehicle loop

The README does not give a one-line install. It links to the build hardware guide and the software install guide at docs.donkeycar.com, and the packaging metadata is the authoritative source for what the package expects. The project metadata requires Python 3.12.0 or newer and below 3.14, and declares 3.12 and 3.13 classifiers. If your board runs an older Python, resolve that before anything else.

The distribution name on PyPI is donkeycar. The base dependencies are small (numpy, pillow, tornado, requests, pandas, pyyaml and others), but the hardware and training dependencies live in optional extras: pi, nano and pc. A desktop used for training is the pc extra, which pins tensorflow and tf-keras at 2.19.*.

bash
pip install donkeycar
pip install "donkeycar[pc]"

The first command installs the library. The second adds the training stack. Expect a large download on the pc extra because of TensorFlow; the pi extra instead pulls opencv-contrib-python, gpiozero and the Adafruit sensor packages, and the nano extra pins numpy to 1.23.* and pandas to 2.0.* for Jetson boards.

Configuration is a Python file, not a YAML or TOML document. The README says the file you edit to configure your car is myconfig.py, that you mostly uncomment the sections you want to change, and that knowing how Python comments and indentation work avoids common mistakes. That is a deliberate choice and it is also a trap for anyone who edits indentation while uncommenting.

The repository also ships a Dockerfile and a Makefile. The Makefile defines two targets, tests and package, and the test target runs the suite through uv.

bash
make tests
make package

The Dockerfile in the repository is stale relative to the current metadata: it starts from python:3.6 and installs the tf extra, while pyproject.toml requires Python 3.12 and above and defines pc rather than tf. Treat the Dockerfile as a historical artifact, not as the supported install path. After the software is in place, the README's own sequence is to choose an autopilot template, calibrate the car, and get driving, with each step linked from docs.donkeycar.com.

Where Donkeycar is the wrong tool

The packaging metadata classifies the project as Development Status 4 - Beta. That is the project's own label, and it should set expectations: interfaces between parts and templates can move between releases. The release cadence visible in the repository is roughly two releases a year, with 5.4.0 dated 2026-08-22, so an upgrade is a periodic event you plan for rather than a continuous stream.

Do not reach for Donkeycar if you need a deterministic control loop with a documented worst-case latency. Nothing in the README or the packaging metadata states a loop rate, a frame budget or a maximum inference time, and the answer depends entirely on which board, camera and model you chose. A team that needs to prove a timing bound has to measure it on their own hardware.

Do not use it as a general robotics framework. It has no arm manipulation, no multi-robot coordination and no planner in the sense a ROS user means. The parts list is camera, GPS, controller, actuator and store. If your problem is not a small car that follows a learned or PID-driven path, the abstraction will fight you.

There is also a hardware reality the README is honest about. It says the specifics of installing Raspberry Pi OS with Raspberry Pi Imager and configuring the Pi with raspi-config are left to the Raspberry Pi documentation, and it recommends getting comfortable with the Pi, a text editor and the Linux shell first, including SSH or VNC access to the car. If you are not willing to do that, Donkeycar is not a shortcut around it.

Donkeycar compared with Gym-DonkeyCar and a ROS-based stack

Gym-DonkeyCar appears in the related searches for this project, and it is the natural comparison because it is the simulator side of the same ecosystem. The difference in approach is the boundary of the abstraction. Donkeycar is the vehicle: parts that read a camera and a controller and write to motors, running on a physical board, plus a simulator for experimenting before you build. Gym-DonkeyCar exposes the simulated car as a Gym environment, so the interface is step and reset and the output is a reward, which is what you want if you are training a reinforcement learning agent. If your goal is to drive a real car you built, Donkeycar is the layer that touches the hardware; if your goal is to publish an RL result in a simulated environment, the Gym interface is the one your tooling expects.

The second comparison is a ROS 2 stack with a camera node, a controller node and a motor node. ROS gives you a message bus, a launch system, recorded bags and a large package ecosystem. Donkeycar gives you a Python list of parts and a config file, and the README explicitly aims at people who may have no programming background. The trade is scale against accessibility. ROS will outgrow Donkeycar on any multi-sensor, multi-node robot. Donkeycar will get a high school student driving in an afternoon, which is the stated purpose.

Maintenance cost, releases and the MIT licence

The last push to the default branch was on 2026-09-19, four days before the date used here, and the repository is not archived. The most recent release is 5.4.0, dated 2026-08-22, following 5.3.0 on 2026-03-29 and 5.2.0 on 2025-08-05. That is a project with a pulse, but the gap between 5.2.0 and 5.3.0 is roughly eight months, so pin your dependency and read the release notes before jumping.

Upgrade cost concentrates in two places. The first is the optional extras: the pc extra pins tensorflow and tf-keras at 2.19.*, and the nano extra pins numpy to 1.23.* and pandas to 2.0.*, which will conflict with anything else in the same environment that wants newer versions. Use a virtual environment per car. The second is myconfig.py. Because it is a Python file you edit by uncommenting, a template change between releases can leave your uncommented block referring to a key the new template no longer defines, and nothing will stop you.

The licence is MIT, declared in both the LICENSE file and the pyproject.toml license field. In practical terms that is permissive: you can modify and redistribute the software, including in a commercial product, provided you keep the copyright notice and licence text. The repository does not state a policy on contributions of hardware designs beyond the CONTRIBUTING.md file and the arduino/ directory, and the README does not document any trademark or branding restriction. That is a description of what the files say, not legal advice; check the LICENSE text and your own counsel before shipping a product.

Editorial conclusion

Adopt Donkeycar if you want a small car you can teach with a camera, a game controller and a Python config file, and you are willing to read docs.donkeycar.com rather than expect a single installer. Do not adopt it if you need a supported commercial vehicle, a guaranteed inference latency, or an actively developed project with a published support contract: the last push was on 2026-09-19 and the packaging metadata still labels the project Beta. Verify first that your Python is 3.12 or 3.13, that the pi or nano extra resolves on your board, and that the parts pipeline in your chosen template matches the hardware you actually bought.

Frequently asked questions

What is Donkeycar?

It is an open source hardware and software platform for building a small scale self driving car, written in Python and licensed under MIT. The README describes it as a minimalist and modular self driving library for hobbyists and students, with a parts pipeline, a graphical interface and a simulator.

How do I install Donkeycar?

The README points to the software install guide at docs.donkeycar.com rather than giving a one-line command. The package is distributed as donkeycar and requires Python 3.12.0 or newer and below 3.14, with hardware and training dependencies split into the pi, nano and pc extras.

Which file do I edit to configure a Donkeycar?

The file is myconfig.py. The README states that you mostly uncomment the sections you want to change and edit them, and that knowing how Python comments and indentation work helps you avoid common mistakes.

Does Donkeycar work without a physical car?

Yes. The README states that the project includes a simulator so you can experiment with self-driving even before you build a robot, and it links to online simulator races through the virtual race league.

Which game controllers does Donkeycar support?

The README lists PS3, PS4, XBox, WiiU, Nimbus and Logitech Bluetooth controllers, plus any game controller that works with Raspberry Pi. It also describes a WebUI that accepts browser-compatible controllers and an onscreen touch controller for phones.

Official sources

  1. autorope/donkeycar on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/autorope-donkeycar.svg)](https://hysenlabs.com/projects/autorope-donkeycar)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/autorope-donkeycar.svg)](https://hysenlabs.com/projects/autorope-donkeycar)

Was this useful?