Self-host teslamateapi
v1.25.0REST API for TeslaMate vehicle data
- Stars
- 257
- Port
- 8080 (HTTP API)
- Requires
- MQTT Broker, PostgreSQL
tobiasehlert/teslamateapiWhat is teslamateapi?
TeslaMateApi is a Go-based RESTful API that connects to a self-hosted TeslaMate instance's PostgreSQL database and MQTT broker to serve vehicle data as JSON. It provides endpoints for cars, battery health, charges, drives, vehicle status, software updates, and global settings. Commands such as wake up, climate control, door lock/unlock, and charging can be sent to the vehicle when enabled via environment variables. Authentication is handled via a user-defined API token (minimum 32 characters) passed as a Bearer token, custom header, or query parameter. The project is deployed via Docker (image tobiasehlert/teslamateapi) with docker-compose, requiring a PostgreSQL database and MQTT broker (typically the same ones used by TeslaMate). It is licensed under MIT and actively maintained.
Should you self-host teslamateapi?
teslamateapi scores 46/100 on selfhost.directory (how scoring works) and ranks #3 of 5 in Vehicle Management. It has 257 GitHub stars.
It shipped 6 stable releases in the past year. The latest, v1.25.0, came out on 7 July 2026. New versions land roughly every 3 weeks.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is TeslaMate (74/100, 9 196 stars). It scores higher overall, so compare the two before you pick. See teslamateapi vs TeslaMate side by side.
Features
- REST API
teslamateapi README
More in Vehicle Management
TeslaMate Chinese DashboardsSelf-hosted Chinese localization of TeslaMate's Grafana dashboards with 46 translated panels, 13 original analyses, GCJ-02 map correction, and time-of-use pricing.
torqvoiceSelf-hosted workshop management for auto repair shops with work orders, invoicing, vehicle histories, customer portal, and tire storage.
Kia Uvo & Hyundai BluelinkA Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
LubeLoggerSelf-hosted, open-source web app for vehicle maintenance records, fuel economy, reminders, multi-user logins, CSV import, an API and OIDC SSO.
mygarageSelf-hosted vehicle tracker for households: service history, fuel, tires, insurance, docs, live OBD2. Docker, SQLite/Postgres, OIDC, PWA.
TeslaMateOpen-source, self-hosted logger that records your Tesla's drives, charges and battery data to Postgres and adds bundled Grafana dashboards plus MQTT output.
0 comments