Self hosting GraphHopper Directions API
The GraphHopper Directions API is a different product than the open source GraphHopper routing engine. The GraphHopper Directions API currently consists of
- the Routing API (based on the GraphHopper routing engine),
- the Matrix API,
- the Geocoding API and
- the Route Optimization API.
Currently they are no longer available for self-hosting. Note: I'm one of the authors.
GraphHopper is a routing service, not a geocoder.
According to this issue the Geocoder is separate from GraphHopper and only available in the Directions API for business.
If you are looking for a free OSM-based geocoding service then take a look at search engines in the OSM wiki.