Read car data through your KTuner dongle, analyze it, and write a new .kcl tune file to review and flash in KTuner. Built for AI agents.
pip install vehra-agent-tune Copy PIP instructions
Tune your car with the KTuner you already own, with an AI agent doing the analysis.
agent-tune is a command-line tool for KTuner owners. It reads live data from your car through the KTuner dongle, analyzes logs the way a tuner would, and writes a new .kcl tune file with the changes you agree on. You open that file in KTuner, review it, and flash it yourself.
It is built to be driven by an AI agent: every command prints JSON, and the bundled skill and MCP server teach the agent the tuning workflow and the safety rules. It works just as well by hand.
agent-tune never flashes anything. It never writes to the dongle or the ECU, and it never overwrites your original tune.
KTuner only. This project works with KTuner hardware and the KTuner app. It is not affiliated with or endorsed by KTuner.
Python 3.11+ and uv. Tested on Windows, where KTuner runs; log and tune-file analysis is plain Python and runs anywhere.
uv tool install "vehra-agent-tune[mcp]" Drop [mcp] if you only want the command line. The package is published on PyPI as vehra-agent-tune; the command it installs is agent-tune. To install the latest commit instead:
Pick whichever fits your agent. All of them run the same code.
Then ask something like: "Record 10 minutes of driving, analyze it, and suggest safe changes to my tune at C:\Tunes\stock.kcl."
Live channels: RPM, measured and commanded lambda, MAF g/s and Hz, MAP, TPS, ignition timing, STFT and LTFT, coolant, intake air, speed, battery, knock control and fuel status. They match what KTuner displays; they are not an independent sensor calibration. Knock count, VTEC state, cam angles, commanded throttle and gear are not available over USB yet, so use a KTuner CSV export when you need them. Timing decisions need the knock count.
agent-tune is verified on one car so far, but it is built so you can try yours and report back.
If it works, open an issue or a pull request with the fingerprint from tune check and the car details so the family can be added. CONTRIBUTING.md has the steps. Please never share tune files, VINs or serial numbers.
Cell ids look like ign-max-h-6000-100 (table, cam branch, RPM, column) and accept glob patterns. Add --unverified to tune commands for a file outside the verified families. tune set never overwrites the source file.
Tuning for power can damage an engine. Timing is where engines get hurt.
uv sync --extra mcp uv run pytest CONTRIBUTING.md explains how to add a platform or a .kcl family. SECURITY.md states what the tool does and does not do on the wire.
MIT. See LICENSE. The VEHRA name and logo are trademarks of Vehra and are not covered by the license; see docs/brand.
ai-agent datalog ecu honda ktuner mcp skill tuning
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.




