Clients will have intellectual rights on anything produced for them. Removal of that data from their systems and storing it elsewhere will be a violation.
Using your own equipment other than maybe your monitor, mouse, or keyboard will be a no go. I don't know of any serious workplace that would let you do otherwise.
Even if you are a self employed contractor you will need to remote in to their virtual environment and work in that.