According to the rigorous physical interpretation of Kohn–Sham (KS) density-functional theory in terms of the components of the true wavefunction, the KS exchange potentialνKSx(r)=δEKSx[ρ]/δρ(r), whereEKSx[ρ] is the exchange energy functional, is the work done to move an electron in a conservative fieldR(r). This field comprises a component EKSx(r) representative of Pauli correlations and anotherZ(1)tc(r) that constitutespartof the correlation contribution to the kinetic energy. The field EKSx(r) is derived via Coulomb's law from the KS Fermi hole charge, and the fieldZ(1)tc(r) from the kinetic-energy-density tensor involving the first-order correction to the KS single-particle density matrix. For systems in which the curls of these component fields separately vanish, the potentialvKSx(r) is the sum of the work doneWKSx(r) andW(1)tc(r) in the fields EKSx(r) andZ(1)tc(r), respectively. In this paper we study the structure of the workWKSx(r) andW(1)tc(r) at a simple-metal surface as represented by the jellium and structureless-pseudopotential models for which the workWKSx(r) andW(1)tc(r) are separately path-independent. A general expression for the field EKSx(r) is derived in terms of momentum-space integrals of the electron orbitals. This enables its easy determination, and thereby determination of the potentialWKSx(r). The field expression further allows for the derivation of theexact analyticalasymptotic structure of the potentialWKSx(r) in the vacuum region, a result valid for thefully self-consistentlydetermined orbitals of both models. With the exact analytical asymptotic structure ofvKSx(r) in the vacuum known, that of the potentialW(1)tc(r) in this region is then determinedanalytically. As is the case forvKSx(r) which decays asymptotically in the vacuum as −αKS/x, the potentialsWKSx(r) andW(1)tc(r) also decay as −αW/xandα(1)tc/x, respectively, the decay coefficients depending upon the metal Fermi energy and barrier height. It is further shown that for metallic densities,WKSx(r) does not approach thevKSx(r) asymptotic metal-bulk value of (−kF/π), so thatWtc(1)(r) is also finite in this region. Thus, at a metal surface, the KS exchange potentialvKSx(r) comprises principally its Pauli componentWKSx(r), with the correlation-kinetic partW(1)tc(r) beingfiniteandlong-rangedin both the vacuum and metal-bulk regions, its contribution diminishing with increasing metal density.