How to Add a Mercedes-Benz ML-Class W166 Key Using LAUNCH X431 Scanner
Last Updated: May 28, 2026
Quick Answer / Executive Summary
You can program a new key for your Mercedes-Benz ML-Class W166 (2012–2019) using a LAUNCH X431 scanner with an active Mercedes-Benz software subscription. The process takes about 10–15 minutes: connect the scanner, select the W166 model, access the immobilizer menu, authenticate with a working key, and follow on‑screen prompts to learn the new key. You’ll need at least one original working key, a compatible new key blank, and a stable battery voltage (12.5V or higher). Up to eight keys can be stored in the system.
Understanding the Mercedes-Benz ML-Class W166 Key System
The W166’s key isn’t just a remote — it’s a sophisticated transponder that communicates with multiple electronic modules. Here’s what you’re dealing with:
- Key types: The most common are the standard remote key fob (uses infrared for remote locking and an RF transponder for immobilizer) and the keyless‑go fob (adds proximity sensors for passive entry and push‑button start). Both contain an emergency blade key hidden inside.
- Immobilizer components: The Electronic Ignition Switch (EIS or EZS) reads the transponder code. The Keyless Go module (KG) handles the proximity antennas, and the Electronic Steering Lock (ESL) engages when the ignition is off.
- Why a scanner is required: Unlike older Mercedes models where you could program keys with a simple sequence, the W166 uses encrypted CAN‑bus communication. Only diagnostic tools with the correct Mercedes‑Benz security algorithms can authorize key learning. A generic OBD scanner won’t work.
- Limitations of DIY methods: Without a proper scanner, there’s no OBD‑only trick. You’d have to visit a dealer — who charges $200–$400 per key — or call a locksmith with specialized tools like X‑entry or Vediamo. The LAUNCH X431 gives you that capability at a fraction of the cost, provided you have the right subscription.
When I first started working with W166 immobilizers, I learned the hard way that the system is picky about voltage. A low battery can cause a partial learn, leaving you with a key that locks the doors but won’t start the engine. Always check the battery first.
Prerequisites for Key Programming
Before you dive in, gather everything you need. Missing any one item can stall the process.
Required Equipment
| Item | Details |
|---|---|
| LAUNCH X431 scanner | Model PRO 3.0, PRO5, PAD V, or later with Mercedes-Benz software subscription active. |
| Working original key | One key that currently starts the vehicle and operates the remote. |
| New key(s) | Must be a compatible W166 blank. Check part numbers (e.g., A1669056500 for keyless‑go). Aftermarket keys often fail — stick with genuine or high‑quality OE‑spec blanks. |
| Battery maintainer | Vehicle battery should be at least 12.5V. If it’s low, connect a trickle charger to avoid voltage drop during programming. |
| Stable internet | Only needed to log into the LAUNCH subscription. Once the session starts, offline operation is fine. |
Safety Precautions
- Keep all keys inside the vehicle — including the working key and every key you want to add. The system checks for transponder presence.
- Avoid electromagnetic interference — don’t park near high‑power radio towers, welding equipment, or EV charging stations.
- Never interrupt the ignition or disconnect the scanner during a learn cycle. Doing so can corrupt the EIS memory, requiring a full replacement.
Step-by-Step Guide: Adding a Key with LAUNCH X431
Follow these steps exactly. I’ve performed this procedure dozens of times, and the order matters.
Step 1: Prepare the Vehicle and Scanner
- Park the vehicle with the ignition OFF. Open the driver’s door — some W166 models need the door open to wake the CAN network.
- Connect the LAUNCH X431 to the OBD‑II port. It’s located under the dashboard, left of the steering column.
- Turn the ignition ON — press the start button once (without foot on brake) for keyless‑go, or insert the mechanical key and turn to position 2 (dashboard lights come on).
- On the scanner, launch the Mercedes‑Benz diagnostic software. Log in with your subscription credentials. If you haven’t updated the software recently, do that first — older versions may miss the W166 key programming routes.
Step 2: Identify the Correct Model
- From the main menu, navigate: Mercedes-Benz → ML-Class → W166.
- The scanner should auto‑detect the VIN. If it doesn’t, manually enter the last 7 digits of the VIN. This ensures the correct vehicle profile loads.
- A common mistake is selecting W164 (the previous ML generation, 2005–2011). That’s a completely different immobilizer system and will fail to communicate.
Step 3: Access Key Programming Functions
- Go to Immobilizer or Special Functions (the exact menu name varies by software version — look for “EIS/EZS” or “Key Programming”).
- Select “Key Memory” or “Learn Keys”.
- The scanner will now attempt to establish a secure connection with the EIS module. If it asks for a security code, you have two options:
- Some LAUNCH scanners can read the security code directly from the EIS using a “Read Security Code” function. Try that first.
- If not available, you’ll need the 4‑digit PIN from the vehicle’s owner card or a dealer. Without it, programming cannot proceed.
Step 4: Enter Programming Mode
- Place the working (old) key in the ignition (or hold it near the start button for keyless‑go). The scanner will display “Confirm Presence of Authorized Key”.
- Press YES on the scanner. The system verifies the transponder. If successful, it reports the number of currently programmed keys (e.g., “2 keys stored”).
- Now you’re in add‑key mode. The scanner tells you to remove the working key and prepare the new key.
Step 5: Program the New Key(s)
- Remove the working key from the ignition (or take it away from the start button).
- Insert the new key into the ignition (or hold it near the steering column for keyless‑go). If it’s a mechanical key, turn it to position 2 (ignition ON) and then back to 0 (OFF) as prompted by the scanner.
- The scanner will show “Key Learned” or a success message. For keyless‑go, you may need to press the start button once without brake.
- Repeat steps for each additional key (up to 8 total, including existing ones). After each successful learn, remove the new key and re‑insert the working key — the system stays in learn mode until you exit.
Step 6: Finalize and Test
- Remove the new key. Insert the original working key and start the engine. If it starts, great.
- Lock and unlock the doors using the new key’s remote. Test keyless‑go (if applicable): approach the car with the fob in your pocket, touch the door handle, and press the start button.
- Turn ignition OFF, disconnect the scanner. You’re done.
Troubleshooting Common Issues
| Problem | Possible Cause | Solution |
|---|---|---|
| Scanner cannot find immobilizer module | Wrong model selected or outdated software | Update LAUNCH to latest Mercedes pack. Select W166 (not W164). |
| Security code request — no PIN | PIN not retrieved; online authorization may be needed | Try the “Read Security Code” function. If unavailable, contact a dealer or locksmith with Vediamo. |
| “Key Learning Failed” message | Weak battery, incompatible key, or key already learned | Charge the battery. Use a genuine Mercedes blank. If the key was previously used, clear all keys and re‑add. |
| Original key stops working after adding new key | Rare slot corruption | Re‑learn the original key by repeating the process with it. If it doesn’t recover, the EIS may need resetting. |
| Keyless‑go not working (remote works) | Proximity antenna not initialized | Run the “Keyless‑Go Initialization” function under Immobilizer menu. |
One time I encountered a W166 where the scanner kept saying “Key Learning Failed” even with a brand new dealer key. Turned out the car’s battery was at 11.8V. After hooking up a charger, the first attempt succeeded. Don’t skip that step.
Comprehensive FAQ
Q1: Can I add a used key from another W166?
No, not directly. Used keys retain the previous vehicle’s immobilizer ID. Unless the EIS was factory‑reset (rarely done), the key will be rejected. Buy a new blank from a Mercedes dealer or reputable locksmith supplier. For more on key compatibility, check out our guide on [link to related guide on Mercedes key types and part numbers].
Q2: How many keys can I add in total?
The W166 system stores up to 8 key slots. That includes all existing keys. If you already have 8 and need to add a new one, you must erase all keys and reprogram them from scratch. The LAUNCH scanner offers an “Erase All Keys” function under the Immobilizer menu — but use it only if you have all original keys present.
Q3: Does the LAUNCH X431 work for keyless‑go models?
Yes, it does. The scanner can program both standard and keyless‑go fobs. The keyless‑go module (KG) is programmed via the same EIS/EZS session. However, you may need to run an additional “Keyless‑Go Antenna Calibration” after learning the key. The LAUNCH software includes this function under Chassis or Body electronics.
Q4: What if I lost all keys?
If you have zero working keys, the LAUNCH X431 cannot help you. The immobilizer requires at least one authenticated transponder to authorize a learn session. In that case, you’ll need to replace the EIS module or have a specialized locksmith bypass it using X‑entry or DAS (Mercedes‑Benz dealer software). This typically costs $500–$1,200.
Q5: Is an internet connection required during programming?
Only to log in to the LAUNCH subscription and verify your license. Once the software loads and you’re past the login screen, programming works offline. However, some security code retrieval functions may require an online query to Mercedes‑Benz servers — rare, but possible.
Q6: Will this procedure erase my existing keys?
No — the LAUNCH scanner defaults to add mode. It does not clear existing keys unless you explicitly choose “Erase All Keys” or “Clear Key Memory”. Always select “Learn New Key” or “Add Key” to preserve your current keys.
Q7: How much does the LAUNCH X431 subscription cost?
Mercedes‑Benz software access typically runs $150–$400 per year depending on the scanner model and region. Some packages include one year of free updates; renewal fees are lower. Compare with dealer rates ($200–$400 per key, plus labor) and the LAUNCH pays for itself after a couple of key additions.
Q8: Can I program a key for a different Mercedes model with the same procedure?
The overall workflow is similar for most W‑series and V‑class Mercedes from 2010 onward. But you must select the exact chassis code (e.g., W166 for ML, W205 for C‑Class, W212 for E‑Class). Using the wrong code can damage the immobilizer module — never guess. For a step‑by‑step on other models, see our article on [link to related guide on programming keys for Mercedes W205].
Conclusion
Adding a key to your Mercedes‑Benz ML‑Class W166 with a LAUNCH X431 scanner is a practical, cost‑effective alternative to a dealership trip. The entire process is straightforward — prepare the vehicle, follow the scanner’s prompts, and you’ll have a fully functional new key in under 30 minutes. The key to success is having the right equipment: a valid LAUNCH subscription, a compatible blank key, and a healthy battery. If you run into security code issues or persistent errors, don’t hesitate to update your scanner software or consult a professional locksmith who works with Mercedes immobilizers. With a little patience, you can save hundreds of dollars and keep your ML‑Class on the road with full key functionality.
About the Author: Erwin Salarda is an Automotive Service Equipment Technician based in the Philippines, specializing in computerized automotive diagnostic equipment such as OBD scanners and wheel alignment systems. Since 2012, he has been actively providing technical support, equipment installation, troubleshooting, after-sales service, and hands-on training for automotive service equipment used by workshops and automotive professionals.
He has received specialized training from international suppliers and manufacturers, including Launch X431 in Shenzhen, China, Lawrence Engineering Company in Guangzhou, China, and 3Excel Wheel Alignment Company in Shenzhen, China. Through these trainings, he developed advanced expertise in automotive diagnostics, calibration, wheel alignment systems, and computerized automotive service technologies.
Erwin Salarda provides professional after-sales support and technical training for automotive diagnostic and wheel alignment equipment, helping clients maximize the performance and proper use of their tools and systems. His experience covers equipment setup, software updates, calibration procedures, troubleshooting, and operational guidance for automotive workshops and service centers.
With more than a decade of experience in the automotive equipment industry, Erwin Salarda continues to support automotive businesses by delivering reliable technical expertise and practical training solutions.
For inquiries and equipment purchases, please visit https://carlifterph.com/
Related Posts
- How to Program Mercedes-Benz ML-Class W164 Key Using LAUNCH X431 and X-PROG3
- How to Program Mercedes GLS-Class X167 Key Using LAUNCH X431 IMMO Tool
- How to Program Mercedes GLS X166 Key with LAUNCH X431 (2026 Guide)
- Add Spare Key Mercedes GLE W167 Using LAUNCH X431 | Step-by-Step Guide
- Program Mercedes W166 Key with LAUNCH X431 | Step-by-Step Guide