TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/commaai/openpilot/llms.txt
Use this file to discover all available pages before exploring further.
tools/ directory in the openpilot repository contains the full set of developer utilities for working with CAN data, replaying drives, visualizing logs, running the simulator, and debugging car controls. These tools are designed to run on your development machine rather than on the comma device itself, and they give you a local environment that closely mirrors what openpilot sees while driving.
System requirements
openpilot is developed and tested on Ubuntu 24.04, which is the primary supported platform for the developer tools. Most tools also work on macOS. Windows users can use WSL 2 with theUbuntu-24.04 distribution for a near-native experience.
If you are running WSL 2 and see performance issues with UI or simulator graphics, set
GALLIUM_DRIVER=d3d12 before running GUI commands, or add export GALLIUM_DRIVER=d3d12 to your ~/.bashrc.Setting up your development environment
Directory structure
Major tools
Cabana
View, decode, and plot raw CAN bus messages from recorded drives or live from a connected comma device or panda. Integrates with the opendbc DBC library for signal decoding.
PlotJuggler
Visualize openpilot log time series data. Includes custom plugins for parsing openpilot log formats and pre-built layouts for common tuning workflows.
Replay
Replay any recorded drive and mock all openpilot services, letting you run and test openpilot code against real data without hardware.
Simulator
Run openpilot in the MetaDrive simulator via the bridge in
tools/sim/. Supports joystick input and dual camera mode.All tools at a glance
| Tool | Location | Purpose |
|---|---|---|
| Cabana | tools/cabana/ | CAN message viewer and DBC editor |
| PlotJuggler | tools/plotjuggler/ | Time series log visualization |
| Replay | tools/replay/ | Drive replay and service mocking |
| Simulator | tools/sim/ | Run openpilot in MetaDrive |
| Joystick | tools/joystick/ | Debug controls with a joystick or keyboard |
| Camerastream | tools/camerastream/ | Stream cameras over the network |
| Webcam | tools/webcam/ | Run openpilot on a PC with standard webcams |
| Scripts | tools/scripts/ | Miscellaneous developer utility scripts |
