Quick Answer
You can program a new key for a 2nd-gen Toyota Mirai (2021–2024) using the Launch X431 with an active Immobilizer subscription. The process requires a working master key or a security code for all-keys-lost scenarios. Connect the tool, select Toyota → Mirai → 2nd Gen, navigate to Immobilizer → Key Programming, follow on-screen prompts to register the new key in the designated detection zone (usually the center console), and test all functions. Average time: 15–30 minutes.
Understanding the Toyota Mirai (2nd Gen) Key System
The 2nd-generation Mirai uses a Smart Key System with passive entry and push‑button start. Unlike older Toyota models with a separate transponder chip in the key blade, the Mirai’s fob communicates directly with the vehicle’s immobilizer and body control modules via a low‑frequency (LF) antenna located near the center console.
Key Types and Compatibility
- Smart key fob (OEM): Factory keys with part numbers like 89904-30H10 or 89904-30H20. These contain a transponder chip integrated into the circuit board.
- Aftermarket programmable keys: Several brands (e.g., XTOOL, Tom’s Key) offer compatible fobs. They must be “virgin” or previously erased. Used fobs from other vehicles cannot be reprogrammed to a Mirai.
- Mechanical backup key: Only unlocks the driver’s door—cannot start the vehicle.
Key frequency: 433 MHz (North America) or 315 MHz (some markets). The immobilizer protocol is Toyota Smart Key v2 (TSK‑2).
When Is Key Programming Needed?
- Adding a spare key for convenience.
- Replacing a lost or damaged fob.
- All keys lost (AKL): Requires security PIN retrieval (see troubleshooting section).
- After replacing the immobilizer/ECU or steering column module.
Prerequisites for Launch X431 Key Programming
Required Tools and Equipment
| Tool/Item | Notes |
|---|---|
| Launch X431 (Pro, V, PAD, X, etc.) | Must support Toyota Immobilizer functions |
| Active Immobilizer/Key Programming subscription | Standard subscription is sufficient |
| Working master key | Required for “Add Key” mode |
| New, uncut smart key fob blank | OEM or compatible aftermarket (virgin) |
| 12V battery charger | Crucial – voltage dips during programming cause failures |
Why the battery charger? The immobilizer registration draws higher current, and a weak 12V battery can interrupt the process, bricking the new key.
Software and Connection Setup
- Connect your Launch X431 to Wi‑Fi and open the Diagnostic app.
- Download the Toyota software package (latest version: v22.50+ for 2024 models).
- If prompted, activate your Immobilizer license via the Launch Store.
- Establish an OBDII connection (cable or Bluetooth) – the tool will auto‑detect the vehicle.
Safety and Precautions
- Do not turn off ignition or disconnect the tool during programming.
- Keep all other keys (including smartphone‑sized fobs) at least 10 feet away to avoid signal interference.
- If using a Bluetooth connection, ensure the tool’s battery is above 50% or plugged into a USB power bank.
Step-by-Step Key Programming Procedure
Step 1: Connect Launch X431 to the Vehicle
- Locate the OBD‑II port (driver’s side, under the dashboard, near the hood release).
- Insert the working master key and turn the ignition ON (ready mode – you’ll see “READY” on the instrument cluster).
- Plug the Launch X431 into the OBD port and launch the diagnostic app.
Step 2: Select Vehicle Model and System
- In the tool menu: Toyota → Mirai → 2nd Generation (2021‑2024).
- Confirm the VIN (the tool will read it automatically).
If the VIN is incorrect, manually select the correct model year. - Enter Immobilizer or Anti‑Theft system.
On some tools, this appears as “Smart Key” or “Keyless Entry.”
Step 3: Navigate to Key Programming Functions
- Select Key Programming → Smart Key Registration.
- For a spare key with master present → choose Add New Key.
- For AKL → choose All Keys Lost (you’ll need the security PIN – see troubleshooting).
Step 4: Perform Key Registration (Add New Key)
- Hold the new key fob in the designated detection zone (usually the center console’s cupholder or near the steering column).
- Tap Next on the Launch X431 screen.
The tool will transmit a programming signal—do not move the key. - Wait for the confirmation message: “Registration Complete” or “Key Learned.”
- Remove the new key and repeat for additional keys (up to 4–5 total).
Note: All previously programmed keys must be present; otherwise, they’ll be erased.
Step 5: Verify All Keys Function
- Turn ignition OFF, disconnect the Launch X431, and close all doors.
- Test each key:
- Lock/unlock doors (confirm remote response).
- Start the vehicle (place fob in center console slot and press brake + start button).
- Remote trunk/hatch (if equipped).
- If any key fails, re‑enter programming mode and re‑register that key immediately.
Step 6: Finalize and Exit
- Disconnect the tool safely (unplug OBD, not during a code write).
- Verify the vehicle is disarmed and the alarm doesn’t trigger.
- Store the new key securely.
Troubleshooting Common Issues
Launch X431 Not Communicating with Vehicle
- Check OBD‑II pins: Ensure pin 4 (ground), pin 5 (signal ground), and pin 16 (battery) are making contact.
- Ignition must be ON – the vehicle must be in “READY” mode (not just accessory).
- Update the Launch software: Go to Settings → Software Update → download the latest Toyota package.
- Try a wired cable if using Bluetooth – Bluetooth latency can cause timeouts.
Key Not Recognized After Programming
- Confirm the new key is virgin – used keys cannot be rewritten.
- Replace the key fob battery (CR2032) – a weak battery can cause intermittent communication.
- Place the key in the exact detection zone: For most Mirai models, it’s the center console cupholder (often labeled with a key icon).
Some firmware versions require the key to be held directly above the start button. - Clear old key memory and re‑register all keys:
Go to Immobilizer → Clear All Keys → then re‑register each key one by one.
All Keys Lost Situation
- Obtain the security PIN:
- Dealer: Toyota dealerships can retrieve the PIN via Techstream (requires proof of ownership).
- Launch X431 (online decryption): Some Launch subscriptions include a PIN by VIN service – enter the VIN and pay a small fee (~$10‑$20).
- Alternative tools: Autel or XTOOL can sometimes decode the PIN.
- Follow the “All Keys Lost” procedure:
The tool will erase all stored keys, then prompt you to enter the PIN. After successful PIN entry, program up to 4 new keys in one session.
Critical: Some market versions require two working keys to be programmed in a single session to avoid a security lockout.
Error Codes and Solutions
| Error Code | Meaning | Fix |
|---|---|---|
| B2799 | Immobilizer communication failure | Check ECU power/ground; verify CAN bus continuity. |
| B2780 | Key code registration error | Try a different key blank or update Launch firmware. |
| U0100 | Lost communication with ECU | Inspect OBD‑II pins; check for aftermarket alarm interference. |
Frequently Asked Questions (FAQ)
Can I program a used/aftermarket key for the Mirai 2nd Gen?
Yes, but the key must be new (unused) or previously erased. Used keys from other vehicles have locked memories and cannot be rewritten.
How many keys can be programmed?
Typically 4–5 keys, depending on regional market. The system will notify you when the limit is reached—you cannot exceed this without clearing all keys.
Do I need an internet connection for the Launch X431?
Yes – the programming function requires online authentication for the Immobilizer license, and some PIN retrieval services use cloud decryption.
Is a dealer-level subscription required?
No – a standard Immobilizer/Key Programming subscription (available for most Launch X431 models) is sufficient. You do not need Toyota Techstream.
What to do if programming fails halfway?
Do not turn off ignition. Restart the tool or switch to a different operation mode (e.g., “Add Key” instead of “All Keys Lost”). If the error persists, contact Launch technical support (they offer remote assistance).
Conclusion
Final Tips for Success
- Always connect a 12V battery charger before starting – voltage dips are the #1 cause of failed programming.
- If you obtained a security PIN, store it in a secure (offline) location – you’ll need it for future AKL scenarios.
- Before tackling the Mirai, practice on a known‑working Toyota (e.g., Camry or RAV4) to familiarize yourself with the Launch interface.
Additional Resources
- Launch Official Toyota Immobilizer Manual – detailed wiring diagrams for TSK‑2 systems.
- YouTube walkthroughs: Search “Launch X431 Toyota Mirai key programming 2023” – several technicians show exact cup‑holder placement.
- Toyota Service Information – official immobilizer procedures for specific model years (requires subscription).
Last updated: July 2025
Related Posts
- Launch X431 Guide: Toyota Prius Prime (2024+) Key Programming
- How to Program a Toyota RAV4 Prime (2024+) Key Using Launch X431
- Program Toyota Corolla Cross Key with Launch X431 | Step-by-Step Guide
- Toyota GR86 (Special Edition) Key Programming: Launch X431 Guide
- How to Program a Toyota GR Supra (Manual) Key with Launch X431