DEV.co
Open-Source DevOps · teslamate-org

teslamate

TeslaMate is a self-hosted data logger for Tesla vehicles that records detailed trip, charge, and battery data into a PostgreSQL database and visualizes it via Grafana dashboards. It publishes vehicle telemetry to a local MQTT broker for integration with home automation systems, and runs on modest hardware like Raspberry Pi.

Source: GitHub — github.com/teslamate-org/teslamate
8.7k
GitHub stars
982
Forks
Elixir
Primary language
AGPL-3.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositoryteslamate-org/teslamate
Ownerteslamate-org
Primary languageElixir
LicenseAGPL-3.0 — OSI-approved
Stars8.7k
Forks982
Open issues68
Latest releasev4.0.1 (2026-06-14)
Last updated2026-07-06
Sourcehttps://github.com/teslamate-org/teslamate

What teslamate is

Built in Elixir with Phoenix LiveView, TeslaMate polls the Tesla API to capture high-precision drive metrics, charge cycles, and state changes while minimizing vampire drain. Data flows through PostgreSQL, with Grafana providing analysis dashboards and MQTT enabling downstream integrations (Home Assistant, Node-Red, Telegram).

Quickstart

Get the teslamate source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/teslamate-org/teslamate.gitcd teslamate# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Personal Tesla Telemetry & Analytics

Home users wanting detailed, privacy-preserving records of drives, charges, efficiency, and battery health without relying on third-party SaaS or proprietary Tesla logging services.

Home Automation Integration

Use MQTT publishing to trigger automations in Home Assistant, Node-Red, or custom workflows based on real-time vehicle state (charging status, location, online/offline status).

Fleet or Multi-Vehicle Monitoring

Track multiple Tesla vehicles from a single self-hosted instance with per-vehicle dashboards, cost tracking, and unified historical analysis.

Implementation considerations

  • Requires PostgreSQL database, Docker runtime (or bare-metal Elixir/Erlang setup), and Grafana for visualization; typical small-to-medium deployment ~5 min init once infrastructure is in place.
  • Tesla API authentication uses OAuth; credentials are stored locally. No built-in encryption at rest for the database—rely on host-level security and network isolation.
  • Data retention is unlimited by default; monitor PostgreSQL disk usage on long-running instances, especially if logging multiple vehicles over years.
  • Contributor License Agreement (CLA) required for code contributions; enforced via cla-assistant to preserve AGPLv3 compliance.
  • OpenSSF Best Practices badge and CI/CD coverage badges indicate quality gates, but review CI workflows and test coverage depth before critical deployments.

When to avoid it — and what to weigh

  • Closed-source or commercial derivative products — AGPLv3 requires any modified version or network service built on TeslaMate to release source code under the same license. Closed-source wrappers or SaaS reselling are not permitted.
  • Low-bandwidth or offline-first environments — Requires persistent internet to reach Tesla API, local PostgreSQL + Grafana infrastructure, and optional MQTT broker. Not suitable for offline-only or severely constrained networks.
  • Minimal operational overhead desired — Self-hosted setup demands database administration, Docker/container knowledge, Grafana configuration, and ongoing security patching. Requires technical operator involvement.
  • Dependency on Tesla API stability guarantees — Relies on undocumented Tesla API; changes or deprecation by Tesla could break data collection without notice. No contractual SLA or API compatibility guarantee.

License & commercial use

Licensed under GNU Affero General Public License v3.0 (AGPLv3). Copyleft license requiring derivative works, modifications, or network-service deployments to release source code under the same license. Trademark policy and Contributor License Agreement (CLA) in place to enforce long-term open-source commitment.

Commercial use for personal or internal fleet monitoring is permitted under AGPLv3. However, any commercial product or SaaS that modifies, wraps, or offers TeslaMate as a service must release its full source code under AGPLv3—no closed-source commercial derivatives allowed. Consult legal counsel before integrating into a revenue-generating offering.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityModerate
DEV.co fitGood
Assessment confidenceHigh
Security considerations

TeslaMate handles Tesla OAuth credentials and stores them locally in the database; no built-in encryption at rest. Credentials are never sent to third parties, but database security depends on host isolation, network ACLs, and PostgreSQL hardening. AGPLv3 copyleft encourages community code review and reduces risk of abandoned malware-prone forks. CAUTION: README warns of deceptive forks and unofficial apps using the TeslaMate name; use only official GitHub repository. No penetration testing or third-party security audit results published.

Alternatives to consider

TeslaFi

Commercial SaaS for Tesla data logging; proprietary, cloud-hosted, closed-source. No privacy control, but minimal operational overhead.

tesla-apiscraper (deprecated/community)

Lightweight alternative for basic Tesla API polling; smaller feature set, less active maintenance. TeslaMate offers richer dashboards and MQTT integration.

Tesla Owners App (official)

Native Tesla mobile app provides real-time vehicle status but no historical data logging, offline dashboards, or home automation integration. TeslaMate fills this gap for power users.

Software development agency

Build on teslamate with DEV.co software developers

If you require privacy-first, self-hosted vehicle telemetry with rich analytics and home automation integration, review TeslaMate's AGPLv3 license terms, operational requirements, and official documentation at docs.teslamate.org before deployment.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

teslamate FAQ

Can I use TeslaMate for a commercial SaaS or subscription service?
No. AGPLv3 requires any network-service deployment (including SaaS) to release full source code to users under the same license. Closed-source commercial wrappers are prohibited. Consult legal counsel for your use case.
Does TeslaMate work offline or without Tesla API access?
No. TeslaMate requires active internet and continuous Tesla API access to fetch vehicle telemetry. If the API is unreachable, data collection pauses. It is not designed for offline-first scenarios.
What database backends are supported?
PostgreSQL only. TeslaMate is tightly coupled to PostgreSQL; no support for MySQL, SQLite, or other databases.
How do I ensure my Tesla credentials are secure?
Credentials are stored locally in the PostgreSQL database and never sent to external services. Secure the database via network isolation, host-level firewalls, and strong PostgreSQL authentication. Enable TLS for any remote access. Review the official docs for hardening steps.

Software development & web development with DEV.co

From first prototype to production, DEV.co delivers software development services around tools like teslamate. Our software development agency staffs experienced software developers and web developers for custom software development, web development, integrations, and ongoing support across open-source devops and beyond.

Evaluate TeslaMate for Your Tesla Fleet Monitoring Needs

If you require privacy-first, self-hosted vehicle telemetry with rich analytics and home automation integration, review TeslaMate's AGPLv3 license terms, operational requirements, and official documentation at docs.teslamate.org before deployment.