# tesla-fleet-api

Automates vehicle telemetry checks and remote commands through Tesla Fleet API. It lets your assistant manage battery limits, climate, and locks directly.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 950 installs
- Author: odrobnik
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/odrobnik/tesla-fleet-api-skill/tree/HEAD/SKILL.md
- Updated: 2026-03-30
- HTML: https://affpapa.org/en/nevibecode/skills/tesla-fleet-api

## What it does

The skill equips coding agents with a set of Python scripts to interact with the official Tesla Fleet API. You run `command.py` to trigger HVAC preconditioning, adjust seat climate, lock doors, or wake sleeping vehicles. To inspect battery state or climate statistics, `vehicle_data.py` outputs readable text or raw JSON.

Signed vehicle actions rely on bundled shell scripts `start_proxy.sh` and `stop_proxy.sh` for the local proxy. Runtime files, cached lists, and keys reside in `{workspace}/tesla-fleet-api/`. The tool does not load `.env` files. Parameters must exist as shell environment variables or inside `config.json`.

Running these scripts requires `python3` and `openssl` in your PATH. You also need an active developer application providing `TESLA_CLIENT_ID` and `TESLA_CLIENT_SECRET`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add odrobnik/tesla-fleet-api-skill --skill tesla-fleet-api -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/tesla-fleet-api/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/tesla-fleet-api/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add odrobnik/tesla-fleet-api-skill --skill tesla-fleet-api -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/tesla-fleet-api/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add odrobnik/tesla-fleet-api-skill --skill tesla-fleet-api -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/tesla-fleet-api/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install odrobnik/tesla-fleet-api-skill tesla-fleet-api
```

2. **Manually: put the files in place**
- File: `.github/skills/tesla-fleet-api/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add odrobnik/tesla-fleet-api-skill --skill tesla-fleet-api -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/odrobnik/tesla-fleet-api-skill
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/tesla-fleet-api/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add odrobnik/tesla-fleet-api-skill --skill tesla-fleet-api -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/odrobnik/tesla-fleet-api-skill/tree/HEAD/SKILL.md

## When to use it
- Check battery state and climate telemetry from the terminal
- Trigger remote HVAC start and seat temperature adjustments
- Configure departure preconditioning schedules
- Manage charging limits and wake resting vehicles

## Example prompts
- Check current battery level using vehicle_data.py
- Start climate control at 21 degrees with command.py climate temps 21
- Set battery charge limit to 80 percent

## Similar
- [mcp-builder](https://affpapa.org/en/nevibecode/skills/mcp-builder.md) — skill · 130949 installs
- [claude-api](https://affpapa.org/en/nevibecode/skills/claude-api.md) — skill · 74198 installs
- [lark-im](https://affpapa.org/en/nevibecode/skills/lark-im.md) — skill · 472900 installs
- [lark-event](https://affpapa.org/en/nevibecode/skills/lark-event.md) — skill · 466800 installs
- [caveman-discover](https://affpapa.org/en/nevibecode/skills/caveman-discover.md) — skill · 104400 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
