Skip to content

Software

Donkeycar

From github.com/autorope/donkeycar (opens in a new tab)

  • Cars
  • Framework
  • Runs on hardware you can build
  • MIT

Donkeycar is a minimalist Python library for building and experimenting with self-driving robot cars, aimed at hobbyists, students and researchers.

Facts

GitHub stars
3,552read on 28 Nov 2026
Last update
2 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner
Hardware it needs, as the project states it
It requires a built car with a camera and motors, though a simulator can be used before building a robot.

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 4d63a54 (opens in a new tab), on 6 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Lets you build a small robot car and teach it to drive itself, starting from configurable templates.
  • Organizes a car's behavior as a pipeline of software parts that run in order on each pass of the vehicle loop.
  • Supports many cameras (including 3D cameras and lidar), GPS receivers, game and RC controllers, and motor drivetrains.
  • Records telemetry such as camera images and steering and throttle inputs for training.
  • Provides three autopilot types: deep learning (TensorFlow, TensorFlow Lite, PyTorch), GPS path following, and computer vision.
  • Includes a web UI, an onscreen touch controller, and a simulator with online virtual race league 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 README (opens in a new tab)
Maintenance
Active, last commit on 2 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 4d63a54

Robotheca read the repository at two versions: the summary at ba25266 and the facts and the README at 4d63a54 (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 @autorope, at commit 4d63a54, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Donkeycar: a python self driving library

Donkeycar is a minimalist and modular self driving library for Python. It is developed for hobbyists and students with a focus on allowing fast experimentation and easy community contributions. It is being actively used at the high school and university level for learning and research. It offers a rich graphical interface (opens in a new tab) and includes a simulator (opens in a new tab) so you can experiment with self-driving even before you build a robot.

Quick Links

donkeycar

Use Donkeycar if you want to:
What do you need to know before starting? (TL;DR nothing)

Donkeycar is designed to be the 'Hello World' of automomous driving; it is simple yet flexible and powerful. No specific prequisite knowledge is required, but it helps if you have some knowledge of:

  • Python (opens in a new tab) programming. You do not have to do any programming to use Donkeycar. The file that you edit to configure your car, myconfig.py, is a Python file. You mostly just uncomment the sections you want to change and edit them; you can avoid common mistakes if you know how Python comments (opens in a new tab) and indentation (opens in a new tab) works.
  • Raspberry Pi. The Raspberry Pi is the preferred on-board computer for a Donkeycar. It is helpful to have setup and used a Raspberry Pi, but it is not necessary. The Donkeycar documentation describes how to install the software on a RaspberryPi OS, but the specifics of how to install the RaspberryPi OS using Raspberry Pi Imager (opens in a new tab) and how to configure the Raspberry Pi using raspi-config (opens in a new tab) is left to the Raspberry Pi documentation, which is extensive and quite good. I would recommend setting up your Raspberry Pi using the Raspberry Pi documentation and then play with it a little; use the browser to visit websites and watch YouTube videos, like this one taken at the very first outdoor race (opens in a new tab) for a Donkeycar. Use a text editor to write and save a file. Open a terminal and learn how to navigate the file system (see below). If you are comfortable with the Raspberry Pi then you won't have to learn it and Donkeycar at the same time.
  • The Linux command line shell (opens in a new tab). The command line shell is also often called the terminal. You will type commands into the terminal to install and start the Donkeycar software. The Donkeycar documentation describes how this works. It is also helpful to know how navigate the file system and how to list, copy and delete files and directories/folders. You may also access your car remotely (opens in a new tab); so you will want to know how to enable and connect WIFI and how to enable and start an SSH (opens in a new tab) terminal or VNC (opens in a new tab) session from your host computer to get a command line on your car.
Get driving.

After building a Donkeycar (opens in a new tab) and installing (opens in a new tab) the Donkeycar software you can choose your autopilot template (opens in a new tab) and calibrate (opens in a new tab) your car and get driving (opens in a new tab)!

Modify your car's behavior.

Donkeycar includes a number of pre-built templates (opens in a new tab) that make it easy to get started by just changing configuration. The pre-built templates are all you may ever need, but if you want to go farther you can change a template or make your own. A Donkeycar template is organized as a pipeline of software parts (opens in a new tab) that run in order on each pass through the vehicle loop, reading inputs and writing outputs to the vehicle's software memory as they run. A typical car has a parts that:

If there isn't a Donkeycar part that does what you want then write your own part (opens in a new tab) and add it to a vehicle template (opens in a new tab).

#Define a vehicle to take and record pictures 10 times per second.

import time
from donkeycar import Vehicle
from donkeycar.parts.cv import CvCam
from donkeycar.parts.tub_v2 import TubWriter
V = Vehicle()

IMAGE_W = 160
IMAGE_H = 120
IMAGE_DEPTH = 3

#Add a camera part
cam = CvCam(image_w=IMAGE_W, image_h=IMAGE_H, image_d=IMAGE_DEPTH)
V.add(cam, outputs=['image'], threaded=True)

#warmup camera
while cam.run() is None:
    time.sleep(1)

#add tub part to record images
tub = TubWriter(path='./dat', inputs=['image'], types=['image_array'])
V.add(tub, inputs=['image'], outputs=['num_records'])

#start the drive loop at 10 Hz
V.start(rate_hz=10)
Installation

Donkeycar uses uv (opens in a new tab) for environment management. Install uv first:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then create a persistent virtual environment and activate it on login by adding the source line to your shell profile.

Raspberry Pi

Camera support (picamera2, libcamera) requires system packages that are not on PyPI. Install them first:

sudo apt install python3-libcamera python3-picamera2

Then create the venv using the system Python (3.13 on Raspberry Pi OS Trixie) with --system-site-packages so the venv can see the camera libraries:

uv venv ~/env --python 3.13 --system-site-packages
echo 'source ~/env/bin/activate' >> ~/.zshrc
source ~/env/bin/activate

User install (from PyPI):

uv pip install donkeycar[pi]

Developer install (from a git clone):

uv pip install -e ".[pi,dev]"
Mac
uv venv ~/.venvs/donkeycar --python 3.12
echo 'source ~/.venvs/donkeycar/bin/activate' >> ~/.zshrc
source ~/.venvs/donkeycar/bin/activate

User install (from PyPI):

uv pip install donkeycar[macos]

Developer install (from a git clone):

uv pip install -e ".[macos,dev]"
PC (Linux/Windows)
uv venv ~/.venvs/donkeycar --python 3.12
echo 'source ~/.venvs/donkeycar/bin/activate' >> ~/.zshrc
source ~/.venvs/donkeycar/bin/activate

User install (from PyPI):

uv pip install donkeycar[pc]

Developer install (from a git clone):

uv pip install -e ".[pc,dev]"

Once the venv is activated in your shell profile the donkey command is available from any directory without needing uv run.

See home page (opens in a new tab), docs (opens in a new tab) or join the Discord server (opens in a new tab) to learn more.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.