Earlier quoted context omitted.
> EDIT: And if you're outside of the US, set up a local LLC so that US-based companies can treat you like an independent contracting business. By local, do you mean a US-based company (eg delaware), or local to where you are?
I believe he do mean a US LLC, most defaults to Delaware or Nevada. It has become much easier for NON-US residents to form such entities these days. Doola (formerly StartPack, a YC Company) is a good option. Not affiliated with Doola but the founder is a nice guy. https://www.doola.com
Now, whether you can get around this by being fully remote and effectively saying "no, CaliCorp came to Nevada to do business with me, not the other way around" -- that's an interesting question.