Skip to main content

Generating Tokens

Types of tokens

There are two types of tokens:

  • Tokens that only work for the unofficial owners API.
  • Tokens that only work with the fleet API.

As by default TeslaMate uses the owners API, this page will show you how to obtain the first type of token.

How to generate your own tokens

TeslaMate does not have built-in support for creating the initial token. This is because the code required to do this requires regular updates to keep it working properly.

There are multiple apps available to securely generate access tokens yourself, for example:

Tesla Auth is packaged in nixpkgs (currently only in nixos-unstable):

nix shell 'github:nixos/nixpkgs/nixos-unstable#tesla_auth'