Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehic...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install tesla-fleet-api或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install tesla-fleet-api⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/tesla-fleet-api/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: tesla-fleet-api description: Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehicle, charge controls). Covers onboarding (developer app registration, regions/base URLs), OAuth token flows (third-party + partner tokens, refresh rotation), required domain/public-key hosting, and using Tesla's official vehicle-command/tesla-http-proxy for signed vehicle commands. version: 1.5.2 homepage: https://github.com/odrobnik/tesla-fleet-api-skill metadata: openclaw: emoji: "🚗" requires: bins: ["python3", "openssl"] env: ["TESLA_CLIENT_ID", "TESLA_CLIENT_SECRET"] optionalEnv: ["TESLA_AUDIENCE", "TESLA_REDIRECT_URI", "TESLA_DOMAIN", "TESLA_BASE_URL", "TESLA_CA_CERT", "TESLA_ACCESS_TOKEN", "TESLA_REFRESH_TOKEN", "TESLA_SCOPE"]
---
Control Tesla vehicles via the official Fleet API.
| Script | Purpose | |--------|---------| | command.py | Vehicle commands (climate, charging, locks, etc.) | | vehicle_data.py | Read vehicle data (battery, climate, location, etc.) | | vehicles.py | List vehicles + refresh cache | | auth.py | Authentication and configuration | | tesla_oauth_local.py | OAuth helper with local callback server | | start_proxy.sh | Start the signing proxy (for vehicle commands) | | stop_proxy.sh | Stop the signing proxy |
---
Setup is documented in SETUP.md:
State directory: {workspace}/tesla-fleet-api/
config.json (provider creds + non-token config)auth.json (tokens)vehicles.json (cached vehicle list)places.json (named locations)proxy/ (TLS material for signing proxy)No .env file loading — credentials in config.json or environment variables.
---
Execute commands on your Tesla. Vehicle is auto-selected if you only have one.
command.py [VEHICLE] <command> [options]
VEHICLE - Vehicle name or VIN (optional if single vehicle)command.py honkcommand.py flash honk (vehicle "flash", command "honk")---
command.py climate start
command.py climate stop
command.py flash climate start # specific vehicle
command.py climate temps <driver_temp> [passenger_temp]
command.py climate temps 21 # both seats 21°C
command.py climate temps 22 20 # driver 22°C, passenger 20°C
command.py climate keeper <mode>
Modes: off, keep, dog, camp
---
command.py seat-heater --level <level> [--position <position>]
command.py seat-heater -l <level> [-p <position>]
Levels: | Value | Name | |-------|------| | 0 | off | | 1 | low | | 2 | medium | | 3 | high |
Positions: | Value | Names | |-------|-------| | 0 | driver, front_left, fl | | 1 | passenger, front_right, fr | | 2 | rear_left, rl | | 3 | rear_left_back | | 4 | rear_center, rc | | 5 | rear_right, rr | | 6 | rear_right_back | | 7 | third_left | | 8 | third_right |
Examples:
command.py seat-heater -l high # driver (default)
command.py seat-heater -l medium -p passenger
command.py seat-heater --level low --position rear_left
command.py seat-heater -l 2 -p 4 # medium, rear center
command.py seat-heater -l off -p driver # turn off
---
command.py seat-cooler --level <level> [--position <position>]
command.py seat-cooler -l <level> [-p <position>]
Same levels and positions as seat heater.
Examples:
command.py seat-cooler -l medium -p driver
command.py seat-cooler -l high -p passenger
---
command.py seat-climate [--position <position>] <mode>
command.py seat-climate [-p <position>] <mode>
Modes: auto, on, off
Examples:
command.py seat-climate auto # driver auto
command.py seat-climate -p passenger auto
command.py seat-climate -p driver off # disable auto
---
command.py steering-heater <on|off>
Examples:
command.py steering-heater on
command.py steering-heater off
---
Modern API for scheduling departure preconditioning (replaces deprecated set_scheduled_departure).
command.py precondition add --time <HH:MM> [--days <days>] [--id <id>] [--one-time] [--disabled]
command.py precondition add -t <HH:MM> [-d <days>] [--id <id>]
Days options: | Value | Description | |-------|-------------| | all | Every day (default) | | weekdays | Monday through Friday | | weekends | Saturday and Sunday | | mon,tue,wed,... | Specific days (comma-separated) |
Day names: sun, mon, tue, wed, thu, fri, sat (or full names)
Examples:
command.py precondition add -t 08:00 # every day at 8am
command.py precondition add -t 08:00 -d weekdays # Mon-Fri
command.py precondition add -t 07:30 -d mon,wed,fri
command.py precondition add -t 09:00 --one-time # one-time only
command.py precondition add -t 08:30 --id 123 # modify existing schedule
command.py precondition add -t 08:00 --disabled # create but disabled
command.py precondition remove --id <id>
Examples:
command.py precondition remove --id 123
command.py precondition remove --id 1
---
command.py charge start
command.py charge stop
command.py charge limit <percent>
Percent must be 50-100.
Examples:
command.py charge limit 80
command.py charge limit 90
command.py flash charge limit 70 # specific vehicle
---
command.py lock # lock all doors
command.py unlock # unlock all doors
command.py honk # honk the horn
command.py flash # flash the lights
command.py wake # wake vehicle from sleep
With vehicle name:
command.py flash wake # wake vehicle named "flash"
command.py flash flash # flash lights on vehicle "flash"
---
Fetch vehicle data with human-readable output by default.
vehicle_data.py [VEHICLE] [flags] [--json]
VEHICLE - Vehicle name or VIN (optional if single vehicle)--json = raw JSON output| Flag | Long | Data | |------|------|------| | -c | --charge | Battery level, charge limit, charging status | | -t | --climate | Interior/exterior temp, HVAC status | | -d | --drive | Gear, speed, power, heading | | -l | --location | GPS coordinates | | -s | --state | Locks, doors, windows, odometer, software | | -g | --gui | GUI settings (units, 24h time) | | | --config-data | Vehicle config (model, color, wheels) |
# All data
vehicle_data.py
vehicle_data.py flash
# Specific data
vehicle_data.py -c # charge only
vehicle_data.py -c -t # charge + climate
vehicle_data.py flash -c -l # charge + location
# Raw JSON
vehicle_data.py --json
vehicle_data.py -c --json
🚗 My Tesla (online)
VIN: 5YJ... (redacted)
⚡ Charge State
────────────────────────────────────────
Battery: [███████████████░░░░░] 78%
Limit: 80%
State: Charging
Power: 11 kW (16A × 234V × 3φ)
Added: 37.2 kWh
Remaining: 10m
Range: 438 km (272 mi)
Cable: IEC
...安装 Tesla Fleet API 后,可以对 AI 说这些话来触发它
Help me get started with Tesla Fleet API
Explains what Tesla Fleet API does, walks through the setup, and runs a quick demo based on your current project
Use Tesla Fleet API to use when integrating with Tesla's official Fleet API to read vehicl...
Invokes Tesla Fleet API with the right parameters and returns the result directly in the conversation
What can I do with Tesla Fleet API in my marketing & growth workflow?
Lists the top use cases for Tesla Fleet API, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/tesla-fleet-api/ 目录(个人级,所有项目可用),或 .claude/skills/tesla-fleet-api/(项目级)。重启 AI 客户端后,用 /tesla-fleet-api 主动调用,或让 AI 根据上下文自动发现并使用。
Tesla Fleet API 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Tesla Fleet API 可免费安装使用。请查阅仓库了解许可证信息。
Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehic...
Tesla Fleet API 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Tesla Fleet API
Identifies repetitive steps in your workflow and sets up Tesla Fleet API to handle them automatically