Purpose
Use tessie-api to list vehicles, inspect status/state, and run explicit Tessie vehicle commands.
Tooling
Use:
tessie-api <subcommand> [options]
Core subcommands:
authorize-urlset-token --token '<TOKEN>'disconnectverifyvehiclesstatus --vin '<VIN>'state --vin '<VIN>'command --vin '<VIN>' --command <command_name> [--wait-for-completion] [--extra-query k=v]request --method GET --path '/<VIN>/battery' [--query k=v] [--json-body '{"...":"..."}']
JSON output contract:
authorize-url: parseok,authorize_url, andconnect_urlset-token: parseokandactiondisconnect: parseok,action,path, andremovedverify: parseok,action, anderror- all read/command calls: parse top-level
ok,status, andbody - common
bodyfields includeresults[],battery_level,battery_range,status, andresult
Auth
Manage Tessie auth through the CLI helpers only.
Auth contract:
- Run
tessie-api verifybefore Tessie API use when connection state is unknown. - If no API key is configured, run
tessie-api authorize-url. Whenconnect_urlis present, replace<connect_url>with the returned URL and share exactly this Markdown link:[Connect Tessie](<connect_url>); do not paste the raw URL separately. - The user can generate a token at
https://dash.tessie.com/settings/api. - If the user provides a key through the CLI flow, store it only through
tessie-api set-token --token '<TESSIE_API_TOKEN>'; do not write auth files directly. - Remove stored auth only through
tessie-api disconnect. - Never print token values.
Operating Rules
- If VIN is not given, call
vehiclesand ask user to pick one when multiple exist. - Use
statusorstatebefore impactful commands when the current vehicle condition matters. honk,flash,remote_boombox, software-update scheduling or cancellation, and fleet telemetry configuration may proceed from a clear, unambiguous request without an additional confirmation. Other vehicle commands and raw API writes use the connector approval gate; invoke the resolved command directly and do not add a duplicate chat confirmation. Never invent a command or infer a physical action the user did not request.- Use
command --command <name>only for explicit Tessie command names. Do not invent a mandatory pre-wake flow or undocumented helper behavior. - On HTTP or API errors, report
statusandbodyclearly. Common cases are401,408, and503. - Never print token values.
- Read results preserve Tessie's raw timestamps and add semantic UTC and user-local forms for state observations, last-seen values, and record creation/update times.