Self-hosted app·Dashboards, analytics and smart home
TeslaMate hosting in the Swiss Alps.
TeslaMate hosting on a Swiss VPS in ALP1: plan sizing, a Docker Compose file kept off the public internet, encrypted backups, from $12.99/month.
- PostgreSQL
- MQTT
- Docker
- Debian
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes, and it is one of the easier workloads to run on our Cloud VPS range. TeslaMate is four Docker containers, and the plan we recommend is VPS Standard: 4 vCPU, 4 GB of RAM, 160 GB of NVMe and 15 TB of monthly transfer for $12.99 a month, deployed on Debian 13 in ALP1. The project asks for 1 GB of RAM to install and 2 GB to run comfortably, so the $6.99 Starter plan would boot it; Standard is what we would choose for a logger meant to accumulate years of history.
The setting that matters more than the plan is the port binding. TeslaMate's web interface has no login of its own, and the quick-start compose file in the official documentation publishes it, together with Grafana, on every interface of the host. On a home network that is acceptable. On a server with a public address it means anyone who finds port 4000 can see where your car is parked and change how it is logged. In the setup below both ports listen on localhost only, and you reach them through an SSH tunnel or a VPN.
02/06
What TeslaMate is, and why it moves off the Raspberry Pi.
TeslaMate is a self-hosted data logger for Tesla vehicles, started by Adrian Kumpf and now maintained by the teslamate-org project on GitHub, with Jakob Lichterfeld as main maintainer. The core is an Elixir application that polls the Tesla API, switches to Tesla's streaming endpoint while the car is driving, and writes drives, charging sessions, positions, software updates and battery data into PostgreSQL. A bundled Grafana instance draws the dashboards, and a Mosquitto broker publishes live values over MQTT, which is the only integration surface the maintainers support. The code is licensed AGPL-3.0-or-later; the current release is v4.4.0, published on 23 October 2026.
By default TeslaMate uses Tesla's older Owner API, which is still open to private owners. Business fleet accounts have been moved to the official Fleet API, and the TeslaMate documentation is blunt that for everyone else the Fleet API and Fleet Telemetry bring only drawbacks, chiefly lower data resolution and tighter request limits. Third-party proxies such as MyTeslaMate or Teslemetry make the Fleet API easy to plug in, but your vehicle data then passes through their servers, which defeats much of the point of running the logger yourself.
Most people start on a Raspberry Pi at home and move once they notice the gaps. Tesla's API offers no history, so TeslaMate cannot recover a drive or a charge it did not see live: a router reboot or a failing SD card during a holiday leaves a hole that stays. Since v4.0.0 the images no longer support ARMv7 either, so older 32-bit installs have to be rebuilt in any case. A VPS removes the dependency on your home uplink and keeps PostgreSQL on NVMe rather than flash.
Moving the logger does not take any data away from Tesla, which holds the same information on its side. What changes is where your own copy lives — years of GPS tracks between your home, your office and every charger you use — and which law governs the machine it sits on. In ALP1 that is Swiss law. The revised Federal Act on Data Protection has applied since 1 September 2023; the European Commission confirmed on 15 January 2024 that Switzerland still provides an adequate level of protection, so personal data can move here from the EU without additional safeguards; and as of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. Our offshore hosting page sets out what that framework covers and what it does not.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
The upstream requirements are short: Docker with the Compose plugin, a machine that is always on, at least 1 GB of RAM for installation and 2 GB recommended, an amd64 or aarch64 CPU, and outbound internet access. The project FAQ lists the egress flows exactly: HTTPS to auth.tesla.com, owner-api.teslamotors.com, streaming.vn.teslamotors.com and nominatim.openstreetmap.org (reverse geocoding), plus plain HTTP to step.esa.int for elevation data. Nothing has to be open inbound if you use a tunnel or VPN, and only ports 80 and 443 if you publish the interface behind a reverse proxy. MQTT on port 1883 stays inside the Docker network.
| Plan | vCPU / RAM / NVMe | Transfer | Price/month | Fit for TeslaMate |
|---|---|---|---|---|
| VPS Starter | 2 / 2 GB / 80 GB | 10 TB | $6.99 | Meets the 2 GB recommendation with nothing to spare; one car, nothing else on the server |
| VPS Standard | 4 / 4 GB / 160 GB | 15 TB | $12.99 | Our pick: headroom for PostgreSQL's cache, a VPN or reverse proxy, and long dashboard queries |
| VPS Pro | 6 / 8 GB / 320 GB | 20 TB | $22.99 | Only if Home Assistant or other services share the machine |
RAM is the constraint, not CPU or bandwidth. The containers sit mostly idle, but Grafana dashboards that span a year of positions run heavy queries, and they stay quick only while PostgreSQL can keep its indexes in memory; the v4.1.0 release notes also warned that the first start after that upgrade could take several minutes on databases with years of history and slow hardware.
04/06
Deploying it on a VPS in ALP1.
The files below follow the official Docker install and were written against TeslaMate v4.4.0 and the upstream documentation as read on 4 November 2026.
- 01
1. Order the server and install Docker
Deploy VPS Standard with Debian 13. An email address is enough to open the account, as described on our no-KYC hosting page, and you get root over SSH. Install Docker Engine and the Compose plugin from Docker's own Debian repository, following docs.docker.com/engine/install/debian. A host firewall such as ufw will not rescue a careless
ports:line: Docker routes published ports in the nat table, before ufw's chains ever see the packets. The bind address in the compose file is the control that counts. - 02
2. Write the secrets and the compose file
mkdir -p /opt/teslamate && cd /opt/teslamate printf 'TM_ENCRYPTION_KEY=%s\nTM_DB_PASS=%s\nGRAFANA_PW=%s\n' \ "$(openssl rand -hex 32)" "$(openssl rand -hex 24)" "$(openssl rand -hex 16)" > .env chmod 600 .envThen
/opt/teslamate/docker-compose.yml:services: teslamate: image: teslamate/teslamate:4.4.0 restart: always depends_on: - database environment: - ENCRYPTION_KEY=${TM_ENCRYPTION_KEY} - DATABASE_USER=teslamate - DATABASE_PASS=${TM_DB_PASS} - DATABASE_NAME=teslamate - DATABASE_HOST=database - MQTT_HOST=mosquitto - TZ=Europe/Zurich ports: - "127.0.0.1:4000:4000" volumes: - ./import:/opt/app/import cap_drop: - all database: image: postgres:18-trixie restart: always environment: - POSTGRES_USER=teslamate - POSTGRES_PASSWORD=${TM_DB_PASS} - POSTGRES_DB=teslamate volumes: - teslamate-db:/var/lib/postgresql grafana: image: teslamate/grafana:4.4.0 restart: always environment: - DATABASE_USER=teslamate - DATABASE_PASS=${TM_DB_PASS} - DATABASE_NAME=teslamate - DATABASE_HOST=database - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PW} ports: - "127.0.0.1:3000:3000" volumes: - teslamate-grafana-data:/var/lib/grafana mosquitto: image: eclipse-mosquitto:2 restart: always command: mosquitto -c /mosquitto-no-auth.conf volumes: - mosquitto-conf:/mosquitto/config - mosquitto-data:/mosquitto/data volumes: teslamate-db: teslamate-grafana-data: mosquitto-conf: mosquitto-data:It differs from the upstream file in four places. Image tags are pinned, so an upgrade happens when you decide rather than on the next pull; ports 4000 and 3000 are bound to 127.0.0.1; the secrets come from
.envinstead of sitting in the YAML; and the time zone is Europe/Zurich, so drives and charges carry local timestamps instead of UTC. Mosquitto publishes no port at all. - 03
3. Start the stack and sign in
Run
docker compose up -dand watchdocker compose logs -f teslamateuntil the web endpoint reports that it is listening on port 4000. TeslaMate does not generate Tesla tokens itself, so create an access token and a refresh token on your own computer with Tesla Auth (0.13.0 or newer) or the Auth app for Tesla on iOS and macOS. Then open a tunnel from that computer:ssh -N -L 4000:127.0.0.1:4000 -L 3000:127.0.0.1:3000 root@<your-vps-ip>Browse to http://localhost:4000, paste both tokens, and under Settings → URLs set the web app to http://localhost:4000 and the dashboards to http://localhost:3000 so the links between the two work. Grafana's user is
admin, with the password from.env. Create a geofence for home and enter your electricity tariff per kWh, so the cost dashboards can price home charging. - 04
4. Reach it day to day
The SSH tunnel is fine for an occasional look. For a phone, put the server and your devices on WireGuard and bind the two ports to the server's WireGuard address instead of 127.0.0.1. If you need access from any browser, the upstream Traefik guide puts both services behind HTTPS with a Let's Encrypt certificate, adds HTTP Basic Auth in front of TeslaMate, serves Grafana with its own login under /grafana and keeps Mosquitto on loopback; it needs a domain and opens ports 80 and 443. We prefer the VPN. A public Basic Auth prompt with your car's whereabouts behind it is a standing invitation to guess passwords, and a WireGuard port answers nothing to a client without a key.
- 05
5. Back up and upgrade
The maintainers advise moving dumps off the host, and they are right. A nightly cron job can dump the database and hand it to restic, which encrypts it before it reaches an S3-compatible bucket:
#!/bin/sh set -e mkdir -p /root/backup f=/root/backup/teslamate-$(date +%F).sql.gz cd /opt/teslamate docker compose exec -T database pg_dump -U teslamate teslamate | gzip > "$f" restic -r s3:https://<endpoint>/<bucket> backup "$f" restic -r s3:https://<endpoint>/<bucket> forget --keep-daily 14 --keep-monthly 12 --prune find /root/backup -name 'teslamate-*.sql.gz' -mtime +7 -deleteRestic reads the bucket's access keys and its repository password from the environment, and after a one-time
restic initthe bucket only ever stores ciphertext. Use the bucket through the S3 API like this; never mount it under PostgreSQL. Keep a copy of.envapart from the dumps, and for independence from us as a provider, pull an occasional copy home as well.Before each upgrade, take a dump, read the release notes, change the two tags, then run
docker compose pull && docker compose up -d. The release notes earn their reading here. v4.2.0 changed several Home Assistant discovery entities in ways that break automations, and in June 2026 instances on older images began receiving 403 errors from the Owner API, because the Erlang/OTP 26 TLS stack led Tesla's auth server to hand out Fleet-scoped tokens on refresh; v4.0.0 and v4.0.1 fixed it. Owners who did not update lost those weeks of data permanently. A PostgreSQL major-version change is a dump and restore following the upstream guide, not a tag edit.
05/06
Cost.
| Line | Per month |
|---|---|
| VPS Standard — 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps | $12.99 |
| Daily VPS backups (+20 %) | $2.60 |
| Object storage, 250 GB bucket for encrypted dumps | $1.99 |
| Standard + bucket | $14.98 |
| Standard + daily backups + bucket | $17.58 |
Yearly billing takes roughly 25 % off the VPS, which puts Standard at $116.99 a year, or $9.75 a month (the yearly price divided by twelve). If you add only one extra, take the bucket. The VPS backup is convenient for rolling back a broken upgrade, but the encrypted dump in object storage is the copy that survives a deleted server. Every plan and option is on the pricing page.
The $12.99 includes full root, the Debian 13 image, a 1 Gbps port, 15 TB of transfer per month and an IPv4 address; further addresses are $2 a month each, and priority support is $10 a month. We support the server; the containers inside it are yours to run.
Payment is in cryptocurrency only — Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins — with prices and balances kept in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. As a theoretical example, a $100 top-up becomes $110 of balance, which covers eight months of Standard ($103.92).
06/06
Limits and acceptable use.
Log vehicles you own or are entitled to log. A TeslaMate database is a precise movement history of whoever drives the car, which makes it personal data; if that driver is a partner, a relative or an employee, they should know the logger exists, and the duties of the controller under the FADP fall on you rather than on us. Covert tracking of a person is not an acceptable use of our servers, whatever software does it. We act on a decision of a competent Swiss authority, and where use is manifestly unlawful.
Running TeslaMate for other people changes your position. You would then hold their Tesla tokens and their location histories, the AGPL requires you to offer the source of any modified version you run as a network service, and the project's trademark policy restricts how its name may be used. Those obligations are yours, and nothing in our terms waives them.
On a VPS you are the administrator: image updates, host patches, the firewall and the secrets in .env are your responsibility. Transfer on VPS plans is included up to the monthly amount shown rather than unmetered, although for this workload the 15 TB on Standard will not be the limit. Switzerland Hosting is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen, Switzerland). For anything about your server, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Is VPS Starter enough for TeslaMate?
For one car and nothing else on the server, yes: its 2 GB of RAM matches the upstream recommendation. It leaves no room for a VPN, a reverse proxy or a PostgreSQL cache that keeps pace with a growing database, which is why we recommend VPS Standard at $12.99 a month. You can start on Starter and move later with a dump and restore.
Can I move an existing TeslaMate from a Raspberry Pi?
Yes. Dump the database on the Pi with pg_dump, copy the file to the VPS, start the new stack and follow the upstream restore procedure. A plain SQL dump from an older PostgreSQL release generally loads into PostgreSQL 18; if you prefer to stay on the same major version, set the database image tag to match the Pi. Reusing the Pi's ENCRYPTION_KEY lets the new instance read the stored tokens, so you do not need to sign in again.
Will a logger in a data centre keep my car awake?
No more than one at home, because the behaviour depends on TeslaMate's settings, not on where it runs. By default it suspends polling after three minutes of inactivity so the car can fall asleep. The usual reason a car stays awake is a second logger, such as TeslaFi, polling the same vehicle at the same time.
What happens if Tesla closes the Owner API for private owners?
TeslaMate's documentation already describes the move to the Fleet API, either through a third-party provider or directly with your own Tesla developer application. The direct route needs a public domain, your own Fleet Telemetry server and, in the documented setup, a Google Cloud Pub/Sub dispatcher. A VPS can host the server side of that, but expect noticeably more work and coarser data than the Owner API gives today.
Do I need to provide ID to order?
No. An email address is enough to open an account, and payment is in cryptocurrency (Monero, Bitcoin, USDT, Ethereum, Litecoin and others); details are on our no-KYC hosting page. The data inside TeslaMate is tied to your Tesla account in any case, and no hosting arrangement changes that.
Can Home Assistant at home read TeslaMate on the VPS?
Yes, over MQTT, but not by publishing port 1883: the stock Mosquitto configuration in the compose file has no authentication. Connect Home Assistant to the broker through the same WireGuard tunnel, or add a Mosquitto password file before exposing anything. TeslaMate's opt-in Home Assistant discovery, available since v4.1.0, then creates the entities for you. See cloud VPS.
Sources
Every fact on this page, with its source
Verified 31 Oct 2026 unless noted.
Swiss law and authorities
EU and other countries
Industry, providers and software
- TeslaMate releases on GitHub — v4.4.0 (23 October 2026), v4.3.0 (29 September 2026; AGPL-3.0-or-later stated consistently, trademark policy rewritten), v4.2.0 (23 August 2026; Home Assistant discovery changes), v4.1.0 (14 August 2026; first-start note, opt-in Home Assistant discovery), v4.0.0 (June 2026; Owner API 403 fix, ARMv7 dropped)github.com
- TeslaMate repository (maintainers, licence)github.com
Other references
- TeslaMate documentation, Docker install (requirements, reference compose file, warning about exposure beyond the home network)docs.teslamate.org
- TeslaMate documentation, FAQ (required network flows, no historical data from Tesla's API, sleep and polling behaviour, MQTT as the only supported integration)docs.teslamate.org
- TeslaMate documentation, Using the Tesla Fleet API and Telemetry Streaming (Owner API still available to individual users, drawbacks of Fleet API, third-party providers, direct setup requirements)docs.teslamate.org
- TeslaMate documentation, Generating Tokens (Tesla Auth 0.13.0+, Auth app for Tesla)docs.teslamate.org
- TeslaMate documentation, Advanced installation with Traefik, Let's Encrypt & HTTP Basic Authdocs.teslamate.org
- TeslaMate documentation, Backup (pg_dump command, move backups off the host)docs.teslamate.org
- Cause of the June 2026 Owner API 403 errors (OTP 26 TLS stack and Fleet-scoped tokens), TFF Forum TeslaMate thread citing the upstream pull requesttff-forum.de
- Docker documentation, Packet filtering and firewalls (Docker and ufw)docs.docker.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
