How can i save the values from the config.html in my extension?

Just keep in mind that anything you put into the config service will be completely public, so for things like API keys you need to be sure that it’s okay for everyone to view that key and potentially misuse it.