← 返回
开发者工具 Key 中文

Tesla

Control your Tesla vehicles — lock/unlock, climate, location, charge status, and more. Supports multiple vehicles via Tesla Fleet API.
控制您的特斯拉车辆——支持锁止/解锁、空调、定位、充电状态等功能。通过 Tesla Fleet API 支持多车辆管理。
mvanhorn
开发者工具 clawhub v1.3.1 1 版本 99805.5 Key: 需要
★ 1
Stars
📥 2,546
下载
💾 49
安装
1
版本
#latest

概述

Tesla

Control your Tesla vehicles from OpenClaw. Supports multiple cars on one account.

> Fleet API Update (2026): Tesla is deprecating direct /command REST calls. Vehicles on firmware 2024.26+

> require the Vehicle Command Protocol (VCP) SDK. The tesla-fleet-api Python package (v1.x+) handles this automatically.

Setup

First-time authentication:

TESLA_EMAIL="you@email.com" python3 {baseDir}/scripts/tesla.py auth

This will:

  1. Display a Tesla login URL
  2. You log in and authorize in browser
  3. Paste the callback URL back
  4. Token cached for future use (~30 days, auto-refreshes)

Environment variables:

  • TESLA_EMAIL — Your Tesla account email
  • Token cached in ~/.tesla_cache.json

Multi-Vehicle Support

Use --car or -c to specify which vehicle:

# List all vehicles
python3 {baseDir}/scripts/tesla.py list

# Commands for specific car
python3 {baseDir}/scripts/tesla.py --car "Snowflake" status
python3 {baseDir}/scripts/tesla.py -c "Stella" lock

Without --car, commands target your first vehicle.

Commands

# List all vehicles
python3 {baseDir}/scripts/tesla.py list

# Get vehicle status
python3 {baseDir}/scripts/tesla.py status
python3 {baseDir}/scripts/tesla.py --car "Stella" status

# Lock/unlock
python3 {baseDir}/scripts/tesla.py lock
python3 {baseDir}/scripts/tesla.py unlock

# Climate
python3 {baseDir}/scripts/tesla.py climate on
python3 {baseDir}/scripts/tesla.py climate off
python3 {baseDir}/scripts/tesla.py climate temp 72

# Charging
python3 {baseDir}/scripts/tesla.py charge status
python3 {baseDir}/scripts/tesla.py charge start
python3 {baseDir}/scripts/tesla.py charge stop

# Location
python3 {baseDir}/scripts/tesla.py location

# Honk & flash
python3 {baseDir}/scripts/tesla.py honk
python3 {baseDir}/scripts/tesla.py flash

# Wake up (if asleep)
python3 {baseDir}/scripts/tesla.py wake

Example Chat Usage

  • "Is my Tesla locked?"
  • "Lock Stella"
  • "What's Snowflake's battery level?"
  • "Where's my Model X?"
  • "Turn on the AC in Stella"
  • "Honk the horn on Snowflake"

API Reference

Uses the unofficial Tesla Owner API documented at:

https://tesla-api.timdorr.com

Privacy & Security

  • Credentials stored locally only
  • Refresh token cached in ~/.tesla_cache.json
  • No data sent to third parties
  • Tokens auto-refresh for ~30 days

版本历史

共 1 个版本

  • v1.3.1 当前
    2026-03-28 15:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,215
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,210
data-analysis

Polymarket

mvanhorn
查询和交易 Polymarket 预测市场——查看赔率、热门市场、搜索事件、浏览订单簿、下单交易及管理持仓。
★ 22 📥 9,057