Skip to content
provrbPublic

About

OBDium. The free, open-source on-board diagnostics software. Where silence falls, truth rises.

Topics

Resources

Contributing

Stars

512 stars

Watchers

16 watching

Forks

Latest commit

 

History

282 Commits

Folders and files

Repository files navigation

AppImage

OBDium

The leading modern open-source app for car diagnostics, now with a built-in MCP server.

A Rust-based vehicle diagnostics tool designed to connect with ELM327 adapters, offering live OBD-II data, fault code analysis, offline VIN decoding, and a built-in MCP server that lets AI agents work with your vehicle.

Version Platform License Total Downloads

About · Download · Quick Start · User Manual · Sponsor

Click to view app screenshots!

connect-screen

Connection Screen - Choosing a Serial Port

connected-screen

Connection Screen - Connected

obd-overview

OBD Overview Screen

trouble-codes

Trouble Codes - The Freeze Frame Saved With a Code, and an Explanation for This Car

explain-popup

Trouble Codes - Choosing an AI to Explain a Code

graphs

Live Graphs - Four Readings at Once

agent

Agent Access (MCP) - An AI Agent Reading Live Data

readiness-tests

I/M Readiness Test Status

supported-pids

PID List - Every Known PID and Whether This Vehicle Supports It

vin-decoding

OBDium VIN Decoder

settings

Preferences Screen

Table of Contents

About

OBDium is a fast, modern and extensible Rust-based diagnostic tool for interfacing with OBD-II systems via ELM327 serial adapters fully offline. It provides live access to vehicle sensor data, in-depth diagnostics, and accurate VIN decoding without relying on external crates for critical parsing logic.

OBDium also ships with a built-in MCP (Model Context Protocol) server, so AI agents like Claude Code, Claude Desktop, Cursor, and others can read your vehicle's trouble codes and live data directly through the app while you watch every request they make.

The goal with OBDium is to fill a gap in the ecosystem, providing the best free, open-source, and easy-to-use vehicle diagnostics tool.

Features

Feature Description
Trouble Codes Read stored, pending and permanent codes from every module (Powertrain, Chassis, Body and Network), with a description, what each status means, and which codes are manufacturer-specific. Copy a code in one click, and clear codes when you're done.
Freeze Frame See what the car's sensors read at the moment it set a code (engine speed, load, temperatures, fuel trims and more), shown under that code.
Shareable Reports Export codes as a readable text report to hand to a mechanic or post on a forum, or as JSON for other tools.
Code Explanations Optional. What a code means on your car, whether it's safe to drive, the likely causes and what to check first, written as you watch by the AI you choose. One switch hides every AI feature.
Live Data Read and decode standard OBD-II PIDs (engine, fuel, air, exhaust, diagnostics and more) on the OBD Overview.
Live Graphs Graph up to four readings at once, drag a reading onto a graph to swap it, and see the latest, lowest and highest value of each.
I/M Readiness Check whether the emissions monitors have finished their tests, for spark and compression ignition engines.
PID List and Custom PIDs Browse every known PID and whether your vehicle supports it, and add your own PIDs to track.
VIN Decoding Decode a VIN offline with a custom parser and SQLite lookups built from the NHTSA's vPIC database.
Built-in MCP Server Let AI agents work with your vehicle. Connect Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI or Gemini CLI with one switch, watch every request live, and keep clearing codes and raw commands locked until you allow them.
Demo Mode Replay recorded vehicle responses, including trouble codes and a freeze frame, to try every screen without a car.
Fully Offline Everything the app needs ships with it, so it works with no internet connection. Only the optional code explanations go online.
Cross-platform A modern interface built with Tauri, available on macOS, Windows 10 and 11, and Linux.

Download

You can download the latest release here.

Quick Start

For a full user manual, view the docs here.

Connecting to a vehicle

  1. Run the application
  2. Connect your ELM327 adapter to your vehicles OBD-II port and device
  3. Turn on your ignition or start your vehicle
  4. Navigate to the Connection panel:
    • Select your serial port. Ports that answered as an adapter are marked ELM327 and listed first. You can click the refresh button to reload and rediscover serial ports
    • If your adapter's port is marked NO REPLY, you can still select it and choose its Baud Rate yourself. If the port is not listed at all, choose Other Port at the bottom of the list and type its name
    • Optionally change or leave the OBD-II Protocol and Baud Rate settings as is
  5. Click Connect and wait for the notification telling you the connection was established

Understanding each feature

  • OBD data will be recorded in the OBD Dashboard
  • Scan for, read, clear and export trouble codes in the Trouble Codes panel.
    • Click a code to open it. Stored codes show the freeze frame the car saved with them.
    • Export saves a text report (or JSON, picked in the save dialog).
  • View graphs for live data in the Graphs panel.
    • Click a reading in the list to graph it, and click it again to close its graph. Up to four graphs can be open at once.
    • Drag a reading onto a graph to replace what it shows.
  • Let an AI agent use your vehicle connection in the Agent panel.
  • Decode a VIN to receive model-specific information in the VIN Decoding panel.
  • To stop tracking a metric, click on the card it's being displayed in, in the OBD Dashboard
    • Resume tracking by clicking on it again at the very bottom of the dashboard.
  • Modify preferences like units, privacy, or startup settings in the Settings panel.
  • View an index of all PIDs in the PID List panel.
  • Add a custom PID to track in the PID List panel.

Using OBDium with an AI agent

OBDium runs an MCP server inside the app, so an AI agent can use the same vehicle connection you have open.

  1. Connect to a vehicle (or use Demo mode)
  2. Navigate to the Agent panel
  3. Flip the switch beside your agent. OBDium starts the server and sets the agent up for you
    • Supported out of the box: Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI, and Gemini CLI
    • For any other agent, click Copy URL and add it as an MCP server over HTTP
  4. Restart your agent so it picks up OBDium
  5. Ask your agent about your vehicle. Every request it makes shows up under Activity

Agents can read the connection status, vehicle info, trouble codes, readiness tests, supported PIDs, and live sensor values. Clearing trouble codes and sending raw commands stay disabled until you turn on Let agents change the vehicle.

The server only accepts connections from your own computer.

Reading trouble codes

  1. Connect to a vehicle (or use Demo mode) and open the Trouble Codes panel
  2. Click Scan. OBDium reads stored, pending and permanent codes from every module that answers
  3. Click a code to open it:
    • What its status means, which system it belongs to, and whether it's a manufacturer-specific code (their meaning depends on the make)
    • For a stored code, When this code was set: the freeze frame the car saved at that moment, such as engine speed, vehicle speed, coolant temperature, fuel trims and battery voltage. Useful for repeating the conditions on a test drive
  4. Click the copy icon beside a code to copy it, the filters on the right to show only one status, and Export to save a report
  5. Hold Clear to clear the codes. Permanent codes stay until the car re-tests and passes

Explaining trouble codes

Explanations are optional. Turn on Settings → Hide AI features to remove them, their settings and the Agent panel entirely.

Press Explain on an open code for what it means on your car, whether it's safe to drive, the most likely causes and what to check first. The explanation appears as it's written. Pick the AI under Settings → Code Explanations, or in the popup that opens the first time:

  • An API with your own key: Claude, OpenAI or Gemini. The key is stored in your system keychain, and each explanation costs a few cents on that account.
  • An agent app you already have: Claude Code or Codex. OBDium runs it in the background with your existing sign-in, in an empty temporary folder: Claude Code with all of its tools switched off, Codex in its read-only sandbox. If Claude Code isn't signed in, Sign in and explain opens its sign-in page in your browser and explains the code once you're done.

OBDium sends the codes and your car's year, make, model, engine and transmission, never the VIN. Explanations are saved per vehicle, so opening a code again doesn't ask again, and they're included in exported reports.

Agents connected over MCP can explain codes too: the explain_code prompt (/mcp__obdium__explain_code P0300 in Claude Code) gives the agent the same context, and its answer appears on the Trouble Codes panel through the show_code_explanation tool.

Demo mode

Demo mode is a unique feature that replays requests and simulates receiving a vehicle's live OBD-II data completely locally by reading an OBDium requests.json file.

You can record your own requests when connected to an actual vehicle by navigating to the Settings panel and toggling the Record OBD Responses option. By default, the file containing your recorded responses will be in a subfolder called data in the directory the app is ran in. You can change this by clicking the Choose a File button below.

To replay already recorded requests simply:

  1. Download an existing recorded requests file. You can use another OBDium users requests file or use the one here
    • You can also share your vehicles recorded requests for people from the community to use!
  2. Drag and drop the file into your data directory
    • This allows you to use your own recorded requests from your vehicle at a later time without having to be hooked up
  3. Navigate to the Connection panel
  4. Select "DEMO MODE" under the serial port dropdown
  5. Click 'Connect'

Data will start popping up and simulate a real vehicle. The included file also has trouble codes and a freeze frame, so you can try the Trouble Codes panel without a car. Clearing codes has no effect in demo mode, since the recordings don't change.

Build from Source

Instructions on how to download the source code and build the application manually.

Command-Line Installation
  1. Install Rust
    Download and install from rust-lang.org.

  2. Install Tauri

    cargo install tauri-cli --version "^2.0.0"
  3. Clone the repository

    git clone https://github.com/provrb/obdium.git
    cd obdium

With this you can:

  1. Build the project

    cargo tauri build
  2. Find the application:

    • The application binary will be located in: backend/target/release
    • Windows' MSI and NSIS installers will be located in: backend/target/release/bundle
    • Linux bundles will be located in:
      • backend/target/release/bundle/deb
      • backend/target/release/bundle/rpm
      • backend/target/release/bundle/appimage

OR

  1. Run the project in developer mode

    cargo tauri dev --no-watch

Implementation and Logic

This project required extensive research into concepts like ELM327, the OBD-II protocol, and response decoding. Below is a brief explanation of the implementation and logic behind OBDium.

Implementation Logic
  1. All real-time vehicle communication is done through the OBD struct. To initiate communication, OBDium establishes a serial port connection to the ELM327 adapter. Vehicle data is requested using PIDs (Parameter IDs) and service numbers. An example request to get the Engine Coolant Temperature would look as such: 0105. A full list of standard OBD-II PIDs can be found here.

  2. Responses from the vehicle are returned as hexadecimal-encoded strings. In general, responses contain particular bytes: 'A' refers to the byte at index 0, which spans to 'E' at byte index 4. Finally, a specific equation is used alongside these special bytes (A, B, C, D, E) to calculate the expected result. See the implementation of the response logic at 'src/response.rs'. For Engine Coolant Temperature it would be A - 40.

  3. For the VIN parsing implementation, I spent several hours reverse engineering the National Highway Traffic Safety Administration’s Product Information Catalog Vehicle Listing (vPIC) MSSQL implementation to work with SQLite and Rust. Now, from just a simple VIN, the exact, make, model and year of that vehicle can be decoded, providing specific details like airbag locations, the number of engine cylinders, or if the vehicle comes equipped with traction control.

  4. The MCP server lives in 'src/mcp' and is served over HTTP on your own computer only. Its tools use the same OBD connection as the dashboard, pausing the dashboard's background polling while an agent's request runs. Each tool call is forwarded to the Agent panel so you can see what the agent asked for and what it received.

For any questions about the implementation or logic behind OBDium, feel free to create a Discussion or open an Issue!

Contributing

Please view the CONTRIBUTING file for more information.

License

This project is licensed under GPL-3.0. See LICENSE for details.

About

OBDium. The free, open-source on-board diagnostics software. Where silence falls, truth rises.

Topics

Resources

Contributing

Stars

512 stars

Watchers

16 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages