Skip to content

Instantly share code, notes, and snippets.

@jsamuel1
Last active March 11, 2020 03:31
Show Gist options
  • Save jsamuel1/be8d544a266648e4e3124915f4062f8b to your computer and use it in GitHub Desktop.
Save jsamuel1/be8d544a266648e4e3124915f4062f8b to your computer and use it in GitHub Desktop.
Generate Tesla API Token

Generate a tesla token

Runs locally, no installation. enter email/password on commandline. then copy/paste the generated token.

npx generate-tesla-token

Output

Hi! I'm going to generate a Tesla-login ‘token’ for you, which will allow
services to authenticate to Tesla on your behalf without giving them your
login information / password.

 (note: These will only be sent directly to Tesla, and not be saved anywhere!)

? The e-mail address you use to login on Tesla.com: null@dev.com
? The password associated with that e-mail address: [hidden]

✔ Connecting to Tesla.com ...
Here yeh go; your new, artisinal Tesla token:

╭────────────────────────────────────────────────────────────────────╮
│  2ff19fbe315165a4ef00000f1e40b9a3d4caef00000053dcde838a920213cd98  │  (not a real token :)
╰────────────────────────────────────────────────────────────────────╯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment