To add the credentials in the Kubermatic UI as presets, encode it as base64 and copy it:
base64 -w 0 credentials.json
Then create a file kubermatic-setup-file/kubermatic.presets.yaml
based on your Kubermatic Docs > Advanced > Presets
Afterwards apply the file:
kubectl -n kubermatic -f kubermatic-setup-file/kubermatic.presets.yaml
Now you will be able to see a selection menu of the configured presets on the next cluster you will create, try it out!