my-tesla
Control Tesla vehicles from macOS via the Tesla Owner API using teslapy (auth, list cars, status, lock/unlock, climate, charging, location, and extras). Use when you want to check your car state or run safe remote commands. Designed for Parth Maniar (@officialpm) with local-only auth caching, confirmation gates for disruptive actions, and chat-friendly status output.
Why use this skill?
Control your Tesla vehicle directly from macOS. Manage climate, check battery, and lock your car securely with the my-tesla skill for OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/danman60/tesla-skillWhat This Skill Does
The my-tesla skill provides a robust interface for controlling your Tesla vehicle directly from your macOS terminal or via the OpenClaw agent ecosystem. Built on top of the powerful teslapy library, this skill allows users to interact with the official Tesla Owner API to perform essential remote tasks. Whether you need to monitor battery levels, adjust climate control, lock and unlock doors, or check your vehicle's current location and charging status, this tool offers a secure and streamlined experience. Designed specifically for privacy-conscious users, the skill utilizes local-only authentication caching and implements confirmation gates for disruptive commands, ensuring that sensitive vehicle operations remain under your direct supervision.
Installation
To get started, ensure you have Python 3.10 or higher installed on your system. First, install the skill via the OpenClaw registry using the command: clawhub install openclaw/skills/skills/danman60/tesla-skill. Once installed, set the TESLA_EMAIL environment variable to your Tesla account email. Perform the one-time authentication by running TESLA_EMAIL="[email protected]" python3 {baseDir}/scripts/tesla.py auth. A URL will be provided; navigate to it, log in, and paste the resulting callback URL back into your terminal. We highly recommend running chmod 0600 on the generated cache file at ~/.tesla_cache.json to secure your credentials.
Use Cases
- Pre-trip Preparation: Warm or cool your vehicle cabin remotely before you leave the house.
- Charge Monitoring: Check the current state of charge and estimate time to completion without needing to open the official Tesla app.
- Security Management: Verify if your vehicle is locked or secure it instantly if you suspect you forgot.
- Data Analysis: Generate structured, machine-readable JSON reports of your car's status for integration into automated home dashboards.
Example Prompts
- "Can you check if my car is locked and how much battery I have left?"
- "Heat up the car to 72 degrees and report back when it's ready."
- "What is the current status of my Model 3 and is it currently plugged in?"
Tips & Limitations
Note that this skill relies on the Tesla Owner API, which may occasionally trigger a vehicle 'wake' event; use the --no-wake flag for status reports if you wish to avoid battery drain on a sleeping car. For security, disruptive actions like unlocking the car are protected by confirmation gates. Always prioritize keeping your ~/.tesla_cache.json file restricted to your user account only.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-danman60-tesla-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api