Install
openclaw skills install tesla-connectConnect and control Tesla vehicles via the tesla-cli. Handles guided setup (key generation, AgentGen hosting, partner registration, OAuth) and all vehicle co...
openclaw skills install tesla-connectThis skill installs and configures teslacli to connect Claude to your Tesla account. Once setup is complete, Claude can control your vehicle directly.
AGENTGEN_API_KEY) — required for hosting your Tesla virtual key. Get one free at agent-gen.com.curl -fsSL https://raw.githubusercontent.com/Agent-Gen-com/tesla-cli/main/install.sh | sh
Supports macOS (Intel & Apple Silicon) and Linux (x86_64 & ARM64).
Run the interactive setup wizard:
teslacli setup
The wizard walks through six stages automatically:
AGENTGEN_API_KEYclient_id, client_secret, and regionSetup creates config files in ~/.config/teslacli/:
config.toml — app credentials and regiontoken.json — OAuth tokens (auto-refreshing)keys/private.pem — P-256 private key (mode 0600, never leave local machine)keys/public.pem — public key (served via AgentGen)Always wake the vehicle first if it may be asleep, then run your command.
Vehicle:
teslacli vehicle list # List account vehicles
teslacli vehicle data # Full JSON snapshot (battery, location, state)
teslacli vehicle wake # Wake the car
teslacli vehicle lock # Lock doors
teslacli vehicle unlock # Unlock doors
teslacli vehicle flash # Flash headlights
teslacli vehicle honk # Sound horn
Climate:
teslacli climate start # Enable climate
teslacli climate stop # Disable climate
teslacli climate set-temp -t 22.5 # Set cabin temperature (°C)
Charging:
teslacli charge start # Start charging
teslacli charge stop # Stop charging
teslacli charge set-limit -l 80 # Set charge limit (%)
teslacli charge set-amps -a 16 # Set charging current (A)
| Error | Action |
|---|---|
401 Unauthorized | Re-run once — teslacli refreshes the token automatically |
Vehicle unavailable | Run teslacli vehicle wake and retry after 10–15 seconds |
Command timeout | Vehicle may be in a no-signal area; advise the user |
| Token expired (>45 days inactive) | Re-run teslacli setup to re-authenticate |
| Any other error | Show the raw error to the user and ask how to proceed |
~/.config/teslacli/keys/private.pem — not to any service, log, or message.~/.config/teslacli/ as a sensitive directory. Do not read its contents into a response.token.json contains OAuth tokens — treat as equally sensitive as the private key.teslacli setup (select Agent flow, follow wizard prompts)teslacli vehicle wake → teslacli vehicle datateslacli vehicle wake → teslacli climate start → teslacli climate set-temp -t 22teslacli vehicle lockteslacli vehicle wake → teslacli charge set-limit -l 80 → teslacli charge start