tesla-fleet-api
Tesla Fleet API library for Python
Decision gist · record as of 2026-08-14
Yes, if you need to control Tesla vehicles or energy sites programmatically. The library is actively maintained, has no known vulnerabilities, and offers both cloud and local Bluetooth pathways with automatic failover. The Python 3.13+ requirement is restrictive but matches current best practice. Install it if you're building Tesla integrations; skip it if you only need read-only telemetry or cannot upgrade to Python 3.13.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.13+; all API calls are async and require an aiohttp ClientSession.
- Low friction: pure Python wheel with no compiled dependencies.
- Active maintenance—last commit 2026-08-13, released 1 day ago.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note material changes.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 94,955 downloads/mo, #13,295 on PyPI
Alternatives
Verify before relying
pip install tesla-fleet-api
import asyncio
import aiohttp
from tesla_fleet_api import TeslaFleetApi
async def main():
async with aiohttp.ClientSession() as session:
api = TeslaFleetApi(
access_token="<token>",
session=session,
region="na"
)
vehicles = await api.vehicles.list()
print(vehicles)
asyncio.run(main())- Whether Teslemetry and Tessie integrations require separate API credentials or configuration beyond the Fleet API token.
- Specific latency and reliability characteristics of local Bluetooth vs. cloud failover routing in practice.
- Whether the keepalive interval behavior (default ~20 seconds) can be tuned or disabled per-vehicle instance.
What it is and what it does
Tesla Fleet API is a Python client for Tesla's official Fleet API, designed to let developers control Tesla vehicles and energy infrastructure programmatically. It wraps the cloud-based Fleet API with support for signed commands (cryptographic verification of mutations), local Bluetooth communication for vehicles, and a routing layer that automatically fails over between local and cloud backends. The library also integrates with Teslemetry and Tessie services as alternative backends.
The package is built on async/await patterns using aiohttp and includes specialized classes for vehicles (TeslaFleetApi, VehicleBluetooth, VehicleSigned), energy sites (EnergySites), and routers that compose multiple backends. It handles Bluetooth transport errors, connection state, and command confirmation ladders for reliability. All API interactions are asynchronous, and the library manages BLE keepalive, key generation, and failover logic internally.
Use it for
- Build a home automation system that controls Tesla vehicles and Powerwall/energy sites via local Bluetooth when available, falling back to cloud API.
- Implement a fleet management dashboard that lists vehicles, sends signed commands (lock/unlock, climate control), and monitors energy site status.
- Create a local-first Tesla vehicle integration for Home Assistant or similar platforms, prioritizing Bluetooth over cloud to reduce latency and API calls.
- Develop a monitoring service that listens to unsolicited Bluetooth broadcasts for real-time vehicle status updates without polling.
- Integrate Tesla vehicle control into a custom mobile or web app using signed commands for security-sensitive operations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to control Tesla vehicles or energy sites programmatically.
The library is actively maintained, has no known vulnerabilities, and offers both cloud and local Bluetooth pathways with automatic failover. The Python 3.13+ requirement is restrictive but matches current best practice. Install it if you're building Tesla integrations; skip it if you only need read-only telemetry or cannot upgrade to Python 3.13.
Install
tesla-fleet-api on PyPI
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance—last commit 2026-08-13, released 1 day ago. Requires Python 3.13+, which narrows compatibility to current versions only.
Requires Python 3.13+; all API calls are async and require an aiohttp ClientSession.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and note material changes.
Quickstart
pip install tesla-fleet-api
import asyncio
import aiohttp
from tesla_fleet_api import TeslaFleetApi
async def main():
async with aiohttp.ClientSession() as session:
api = TeslaFleetApi(
access_token="<token>",
session=session,
region="na"
)
vehicles = await api.vehicles.list()
print(vehicles)
asyncio.run(main())
Verify before relying
- Whether Teslemetry and Tessie integrations require separate API credentials or configuration beyond the Fleet API token.
- Specific latency and reliability characteristics of local Bluetooth vs. cloud failover routing in practice.
- Whether the keepalive interval behavior (default ~20 seconds) can be tuned or disabled per-vehicle instance.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.13 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesaiohttpaiofilesaiolimitercryptographyprotobuftesla-protocolbleakbleak-retry-connector |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 94,955 / month, #13,295 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.13 |
Evidence: tesla_fleet_api-1.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “tesla fleet api python”
- tesla-fleet-apiProvides Python bindings to Tesla's Fleet API for controlling…
- teslajsonpyAn async Python library for interacting with the Tesla API, designed…
- fleet-pythonFleet SDK provides programmatic access to Fleet's environment…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also fleet-python · hyundai-kia-connect-api · myskoda · renault-api · teslajsonpy · govee-ble · xiaomi-ble · subarulink · aiobmsble · python-otbr-api