By utilizing terahertz scanning tunneling microscopy (THz-STM) with a carrier envelope phase shifter for broadband THz pulses, we could successfully control the near-field-mediated electron dynamics in a tunnel junction with sub-cycle precision. Measurements of the phase-resolved sub-cycle electron tunneling dynamics revealed an unexpected large carrier-envelope phase shift between far-field and near-field single-cycle THz waveforms.