Set provider programmatically

but i could not find anything in the docs