We study the complexity of constraint satisfaction problems for templates Gamma over the integers where the relations are first-order definable from the successor function. In the case that Gamma is locally finite (i.e., the Gaifman graph of Gamma has finite degree), we show that Gamma is homomorphically equivalent to a structure with one of two classes of polymorphisms (which we call modular max and modular min) and the CSP for Gamma can be solved in polynomial time, or Gamma is homomorphically equivalent to a finite transitive structure, or the CSP for Gamma is NP-complete.
Assuming a widely believed conjecture from finite domain constraint satisfaction (we require the tractability conjecture by Bulatov, Jeavons and Krokhin in the special case of transitive finite templates), this proves that those CSPs have a complexity dichotomy, that is, are either in P or NP-complete.