Skip to main content

Tesla API Client

Project description


This library allows access to the unofficial Tesla API for reading data and issuing commands to Tesla vehicles.

Quick Start

import tesla_client

# Define an Account subclass of your own to provide an access_token
class MyTeslaAccount(tesla_client.Account):
    def get_access_token(self) -> str:
        return your_oauth_solution.get_up_to_date_access_token()

account = MyTeslaAccount()

# Access a vehicle in this account
vehicle = account.get_vehicles()[0]

# Fetch some data from the vehicle

# Send a command to the vehicle

The Tesla API is not officially supported by Tesla, Inc. It may stop working at any time. For detailed documentation of API commands, see Thanks to Tim Dorr for his work in documenting the unofficial API.

Tesla, Inc. does not endorse or support this python library.



  • Tesla removed support for grant_type=password. This version uses grant_type=authorization_code


  • grant_type=password

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tesla_client-2.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

tesla_client-2.1.0-py3-none-any.whl (483.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page