We propose an on-chip optical waveguide for Bose-Einstein condensates based on the evanescent light fields created by surface states of a photonic crystal. It is shown that the modal properties of these surface states can be tailored to confine the condensate at distances from the chip surface significantly longer that those that can be reached by using conventional index-contrast guidance. We numerically demonstrate that by index-guiding the surface states through two parallel waveguides, the atomic cloud can be confined in a two-dimensional trap at about 1$mu$m above the structure using a power of 0.1mW.