Automatically create api key file when not found