Replace API keys with env variables