Short answer: A locksmith cuts the blade to the factory code from your VIN, then adds the chip to the immobilizer through the diagnostic port. The same tool erases any lost key. Some cars demand a PIN or a timed wait, and the car must be present, since its memory is what changes.
Most people picture a key being copied. With a chip key, standard on most cars since the late 1990s, the copy is the easy half. The other half happens inside the car's computers, so the work gets done beside the car.
Below: the visit in six steps, then where the key code comes from, why the car has to be there, what a dealer does differently, and the makes and years where we point you to the dealer on the first call.
The visit, step by step
Each step below happens at the car, in this order, during one visit.
Get the key code from the VIN
Nearly every car leaves the factory with a key code, a short reference that translates into the depth of each cut. The VIN leads to that code and, on some cars, to the immobilizer PIN. A no-key job starts with proof the car is yours: the title or registration, with an ID whose name matches it.
Cut the blade in the van
A code cutter works to factory depths instead of tracing a worn original, so the blade fits like the first key did when new. The same machine cuts edge-cut blades and mills the center track of a laser-cut key. With no code on file, the cuts can often be read from a working key or decoded at the door lock.
Connect the programmer to the OBD-II port
The port sits under the dash, usually on the driver's side, on nearly every car sold in the US since the 1996 model year. Before it writes anything, the tool reads: the immobilizer system, how many keys are registered and the new key's chip, which is where a used or mismatched key shows up.
Add the key, or erase and start over
With a working key, the new chip takes an empty slot and the keys you have stay put; most Nissan and Infiniti models relearn the whole list instead, so a key left at home drops off. With every key gone, the memory is cleared and the keys present are registered from blank, which drops the lost one.
Wait out the security step
Some systems demand a PIN tied to the VIN, and certain newer Volkswagen and Audi keys add an online step. Others run a timer: roughly 16 minutes on many Toyota and Lexus push-button cars, around seven on many 2016 and newer Mazdas, and roughly 10 minutes or longer on certain older GM and Ford systems.
Pair the remote and test
Remote buttons are often paired as a separate step, and a smart key is enrolled for entry as well as starting. The job is done when the new key starts the engine, locks and unlocks the doors and, on a smart key, opens the handle with the fob in your pocket, all tested with you standing there.
Step 4 is where a spare car key visit and a lost car keys visit part ways: one adds to the car's list, the other rebuilds it, and the lost key ends up one the car no longer recognizes. Many older Ford systems want two keys programmed after a reset before the engine will run.
The waits in step 5 are there on purpose, so nobody can add a key in a minute and drive away. The car sets them, and the lengths are approximate. We price the job knowing the wait is part of it, so it costs you time on the visit and nothing on the bill.
Where the key code comes from
Many automakers release key codes, and the security PINs some immobilizers ask for, to locksmiths registered through NASTF, the National Automotive Service Task Force, generally one VIN at a time. Those requests are generally expected to be backed by the owner's documents, which is part of why the papers come first on a no-key job.
On some cars the programming tool pulls the security data it needs straight from the car's module instead.
Why the car has to be there
What gets programmed is the car. A new key arrives with a chip that belongs to nothing, and the list of keys the engine will accept lives in the immobilizer: depending on the make, in the engine computer, the body control module or a separate unit behind the dash. On most cars the programmer reaches it through the same port repair shops use to read engine trouble codes.
On many systems the car also writes data into the key while registering it, which locks that key to the VIN. That is why a used fob from another car usually refuses a second one.
Programming also runs on the car's own power, with the ignition on for several minutes, so a weak battery gets a jump pack before the tool connects.
What the dealer does differently
The procedure itself is much the same. A dealer technician plugs the automaker's scan tool into the same port, runs the same kind of add-key or reset sequence, and on most cars sits through the same waits. What changes is everything around it: the car must sit in the service bay, the key comes from the parts counter, and programming gets charged separately, typically $100 to $180.
For a spare, that means an appointment and half a day. For a car with no key, the tow truck comes first, at $125 to $200, and a key on order means one to three more days. The van carries key stock and the programmer, so the same work happens in your San Diego County driveway in one visit, with the drive included. Why we cost less covers the rest.
Limits by make, said on the first call
When a car needs the dealer, you hear it on the first call. For most 2014 and newer Mercedes-Benz models we say up front that the key comes through the dealer, and the same for many BMW G-series cars, such as a 2017 or newer 5 Series. With every Volkswagen key lost, a VIN check shows whether its dashboard is a newer type with no aftermarket route.
Some others we check by VIN before quoting. Service information for the Lexus ES and UX from 2019 to 2021 states that a key, once erased, cannot be registered a second time. Recently redesigned Toyotas, the 2022 and newer Tundra and 2024 and newer Tacoma among them, use a newer key system we confirm car by car. And a used fob bought online is, on most makes, locked to its first car, so read us its part number before you pay. The dealer-only keys guide sorts the rest.