Greenstone can act as both an OAI data provider and service provider. As a data provider, it makes metadata from its collections available for harvesting through a built-in OAI server. The server is configured through an oai.cfg file which specifies settings like the repository name and ID. Collections and metadata formats are also configured. As a service provider, Greenstone can harvest metadata from other OAI servers through its librarian interface or command line tools, and import the records into new collections.