$npx skillfedfor your agent

tesla-fleet-api

Tesla Fleet API library for Python

With conditionsPyPI InternetReleased Aug 202695.0K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tesla_fleet_api-1.9.0-py3-none-any.whl
v1.9.0 · released 2026-08-13 · Python >=3.13 · 8 runtime deps: aiohttp, aiofiles, aiolimiter, cryptography, protobuf, tesla-protocol, bleak, bleak-retry-connector

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.13
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
aiohttpaiofilesaiolimitercryptographyprotobuftesla-protocolbleakbleak-retry-connector
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads94,955 / month, #13,295 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
tesla fleet api pythontesla vehicle control librarytesla bluetooth communicationtesla energy site apitesla signed commandstesla cloud local routingtesla fleet management
Topics
tesla-integrationiot-controlasync-http

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 Worth it
PyPI · Internet · released Aug 2026

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.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

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.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also fleet-python · hyundai-kia-connect-api · myskoda · renault-api · teslajsonpy · govee-ble · xiaomi-ble · subarulink · aiobmsble · python-otbr-api