The recommended method of providing the library with your API key is by placing your key in a file at ~/.sunlight.key. Alternatively you can use an environment variable named SUNLIGHT_API_KEY or set sunlight.config.API_KEY within your program.

After setting your API key simply importsunlight and start using the APIs: