An effective atomic pseudopotential for passivation of semiconductor surfaces is presented. It is shown that the spherical approximation used in the effective and empirical pseudopotential methods is not suitable for describing passivants and that, instead, they have to be regarded as complex quantities. Since the new pseudopotentials cannot be handled as usual bulk ones, the way of implementing them in atomistic methods is described here, together with a methodology for extracting them trough an analytic connection to density functional theory, meaning that these surface potential keeps the ab inito identity. The effectiveness and high transferability of the approach is demonstrated by generating passivant potentials for six different semiconductor compounds (GaAs, AlAs, Si, Ge, CdSe and ZnO) and testing them on different kinds of surfaces, including a passivated 68 atoms CdSe quantum wire in wurtzite structure, obtaining always an excellent agreement to density functional theory calculations done on the same systems.