Tesla Auth
Securely generate API tokens for third-party access to your Tesla.
Multi-factor authentication (MFA) and Captcha are supported.
Download
Precompiled binaries are currently only available for x86-64.
Usage
❯ tesla_auth --help
Usage: tesla_auth [-d]
Tesla API tokens generator
Options:
-d, --debug print debug output
--help display usage information
Steps
- Run the
tesla_auth
executable (either by double-clicking it or directly in a terminal) - Enter your Tesla account credentials (and MFA code if necessary)
- You'll get a final window where you can select and copy the access token and refresh token
Platform-specific dependencies
macOS
WebKit is native on macOS so no additional dependencies are required.
Windows
WebView2 is powered by Microsoft Edge (Chromium). At the moment it requires a preview version of Edge which can be downloaded here: Microsoft Edge Insider Channels
Linux
WebKitGTK is required for WebView. So please make sure the following packages are installed:
Arch Linux / Manjaro:
sudo pacman -S webkit2gtk libappindicator-gtk3
Debian / Ubuntu:
sudo apt install libwebkit2gtk-4.0-dev libappindicator3-dev
Fedora
sudo dnf install gtk3-devel webkit2gtk3-devel libappindicator-gtk3-devel
License
Apache-2.0/MIT